Template:Lang

From Team Fortress Wiki
Revision as of 00:36, 7 August 2010 by Seb26 (talk | contribs) (Bug: pages with no translation defined show blank, need to force them to show English in that event.)
Jump to: navigation, search

{{{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}}
  }}
}}