This template is protected from editing.

Difference between revisions of "Template:Lang cat"

From Team Fortress Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
{{#switch: {{{1}}}
+
{{#switch: {{{2}}}
| force = [[Category:{{{2}}}]]
+
| force = [[Category:{{{1}}}]]
 
| #default= [[Category:{{{1}}}{{#switch: {{SUBPAGENAME}}
 
| #default= [[Category:{{{1}}}{{#switch: {{SUBPAGENAME}}
 
| af = /af
 
| af = /af

Revision as of 03:43, 11 August 2010

ERROR

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

Examples

Placing

{{Lang Cat|Scout}}

on Force-A-Nature/ru adds

[[Category:Scout/ru]]

to the page.