Difference between revisions of "Template:Lang"

From Team Fortress Wiki
Jump to: navigation, search
(Bug: pages with no translation defined show blank, need to force them to show English in that event.)
Line 55: Line 55:
 
| blank
 
| blank
 
| none  
 
| none  
| #default = {{{en|{{{1|}}}}}}
+
| #default = {{{en|{{{1}}}}}}
 
}}<noinclude>
 
}}<noinclude>
 
== Usage ==
 
== Usage ==

Revision as of 00:36, 7 August 2010

{{{1}}}

Usage

The main purpose of this template is to keep translations and template code together in one single template. So when the coding is updated, consistency is kept across all language translations.

  • Using {{lang}} will switch translations based on the value of {{SUBPAGENAME}}.
  • To define an English translation, you can use {{lang|en=Welcome}} or simply {{lang|Welcome}}.
Example
{{Ambox
| contents = {{ambox/message
  | 1 = {{lang|de=Sprache|ja=言語|pl=Język}}
  | 2 = {{lang|de=Willkommen|ja=Irashaimasu|pl=Witaj}}
  }}
}}