This template is protected from editing.

Template:Lang

From Team Fortress Wiki
Revision as of 07:45, 7 August 2010 by Seb26 (talk | contribs) (better documentation)
Jump to: navigation, search

Usage

The main purpose of this template is to retain consistency across multiple translated pages. Using {{lang}} will switch translations based on the value of {{SUBPAGENAME}}.

  • To define a language, simply use the code | xx = and then add your translation after (replacing xx with the correct code from below).
Available languages af, ar, az, bcc, bg, br, ca, cs, da, de, el, es, fa, fi, fr, gl, gu, he, hu, id, it, ja, ka, ko, ksh, kw, mk, ml, mr, ms, nl, no, oc, pl, pt, ro, ru, si, sk, sq, sr, sv, ta, th, tr, uk, vi, yue, zh, zh-hans, zh-hant, zh-tw

Options

  • Forcing a particular language: use the parameter |force = to force the template to display a particular language (useful on some English pages). This overrides {{SUBPAGENAME}}.
{{lang|force=en}}

Examples

{{Ambox
| contents = {{ambox/message
  | 1 = {{lang|de=Sprache|ja=言語|pl=Język}}
  | 2 = {{lang|de=Willkommen|ja=Irashaimasu|pl=Witaj}}
  }}
}}