This template is protected from editing.

Difference between revisions of "Template:Lang cat"

From Team Fortress Wiki
Jump to: navigation, search
m
(simplify)
Line 1: Line 1:
[[Category:{{#switch: {{SUBPAGENAME}}
+
[[Category:{{{1}}}{{if lang}}|{{BASEPAGENAME}}]]<noinclude>{{protected|small=1}}
| af = {{{1}}}/af
 
| ar = {{{1}}}/ar
 
| az = {{{1}}}/az
 
| bcc = {{{1}}}/bcc
 
| bg = {{{1}}}/bg
 
| br = {{{1}}}/br
 
| ca = {{{1}}}/ca
 
| cs = {{{1}}}/cs
 
| da = {{{1}}}/da
 
| de = {{{1}}}/de
 
| el = {{{1}}}/el
 
| es = {{{1}}}/es
 
| fa = {{{1}}}/fa
 
| fi = {{{1}}}/fi
 
| fr = {{{1}}}/fr
 
| gl = {{{1}}}/gl
 
| gu = {{{1}}}/gu
 
| he = {{{1}}}/he
 
| hu = {{{1}}}/hu
 
| id = {{{1}}}/id
 
| it = {{{1}}}/it
 
| ja = {{{1}}}/ja
 
| ka = {{{1}}}/ka
 
| ko = {{{1}}}/ko
 
| ksh = {{{1}}}/ksh
 
| kw = {{{1}}}/kw
 
| mk = {{{1}}}/mk
 
| ml = {{{1}}}/ml
 
| mr = {{{1}}}/mr
 
| ms = {{{1}}}/ms
 
| nl = {{{1}}}/nl
 
| no = {{{1}}}/no
 
| oc = {{{1}}}/oc
 
| pl = {{{1}}}/pl
 
| pt = {{{1}}}/pt
 
| ro = {{{1}}}/ro
 
| ru = {{{1}}}/ru
 
| si = {{{1}}}/si
 
| sk = {{{1}}}/sk
 
| sq = {{{1}}}/sq
 
| sr = {{{1}}}/sr
 
| sv = {{{1}}}/sv
 
| ta = {{{1}}}/ta
 
| th = {{{1}}}/th
 
| tr = {{{1}}}/tr
 
| uk = {{{1}}}/uk
 
| vi = {{{1}}}/vi
 
| yue = {{{1}}}/yue
 
| zh = {{{1}}}/zh
 
| zh-hans = {{{1}}}/zh-hans
 
| zh-hant = {{{1}}}/zh-hant
 
| zh-tw = {{{1}}}/zh-tw
 
| #default = {{{1}}}
 
}}|{{BASEPAGENAME}}]]<noinclude>{{protected}}
 
 
== Usage ==
 
== Usage ==
The main purpose of this template is to retain consistency across multiple translated pages. Using {{tl|Lang Cat}} will switch translations based on the value of <code><nowiki>{{SUBPAGENAME}}</nowiki></code>.
+
* Placing {{tlx|lang cat|Scout}} adds ''[[Force-A-Nature/ru]]'' to [[:Category:Scout/ru]], and adds ''[[Force-A-Nature]]'' to  [[:Category:Scout]].
 
 
* To define a language, simply use the code <code>| xx = </code> and then add your translation after (replacing xx with the correct code from below).
 
 
 
{| class="wikitable grid" style="margin: 1em 0;"
 
! 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
 
<pre>
 
{{Lang Cat|Scout}}
 
</pre>
 
on ''[[Force-A-Nature/ru]]'' adds
 
<pre>
 
[[Category:Scout/ru]]
 
</pre>
 
to the page, while placing
 
<pre>
 
{{Lang Cat|Scout}}
 
</pre>
 
on ''Scout/Rainbows'' adds
 
<pre>
 
[[Category:Scout]]
 
</pre>
 
.
 
  
 
[[Category:Templates|Lang cat]]
 
[[Category:Templates|Lang cat]]
 
[[Category:Language templates|Lang cat]]
 
[[Category:Language templates|Lang cat]]
 
</noinclude>
 
</noinclude>

Revision as of 06:00, 12 August 2010

[[Category:{{{1}}}|Lang cat]]

Usage