Template:Lang

From Team Fortress Wiki
Revision as of 00:39, 7 August 2010 by Seb26 (talk | contribs) (This *should* fix it.)
Jump to: navigation, search

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