This template is protected from editing.

Difference between revisions of "Template:Lang cat"

From Team Fortress Wiki
Jump to: navigation, search
m (Protected "Template:Lang Cat" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
m
Line 56: Line 56:
 
<noinclude>{{protected}}
 
<noinclude>{{protected}}
 
== Usage ==
 
== Usage ==
The main purpose of this template is to retain consistency across multiple translated pages. Using {{tl|lang}} will switch translations based on the value of <code><nowiki>{{SUBPAGENAME}}</nowiki></code>.
+
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>.
  
 
* 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).
 
* 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).
Line 70: Line 70:
 
{{Lang Cat|Scout}}
 
{{Lang Cat|Scout}}
 
</pre>
 
</pre>
on [[Force-A-Nature/ru]] adds
+
on ''[[Force-A-Nature/ru]]'' adds
 
<pre>
 
<pre>
 
[[Category:Scout/ru]]
 
[[Category:Scout/ru]]
 
</pre>
 
</pre>
to the page.
+
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 03:51, 11 August 2010

[[Category:{{{1}}}]]

Usage

The main purpose of this template is to retain consistency across multiple translated pages. Using {{Lang Cat}} 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, while placing

{{Lang Cat|Scout}}

on Scout/Rainbows adds

[[Category:Scout]]

.