This template is protected from editing.

Difference between revisions of "Template:Lang cat"

From Team Fortress Wiki
Jump to: navigation, search
(Lang cat is lang.)
 
m (fix)
 
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:{{{1}}}{{lang|
+
{{#if:{{{1|}}}
| af = /af
+
| {{#switch:{{lc:{{{namespace-overrride|{{NAMESPACE}}}}}}}<!--
| ar = /ar
+
 
| az = /az
+
    // Blacklist certain namespaces from being placed in categories. -->
| bcc = /bcc
+
 
| bg = /bg
+
  | user
| br = /br
+
  | team fortress wiki
| ca = /ca
+
  | user talk
| cs = /cs
+
  | team fortress wiki talk
| da = /da
+
  | category talk
| de = /de
+
  | help talk
| el = /el
+
  | mediawiki talk
| es = /es
+
  | template talk
| fa = /fa
+
  | file talk
| fi = /fi
+
  | talk = <!-- null -->
| fr = /fr
+
 
| gl = /gl
+
  | true
| gu = /gu
+
  | 1
| he = /he
+
  | yes
| hu = /hu
+
  | y
| id = /id
+
 
| it = /it
+
  | blank
| ja = /ja
+
  | none
| ka = /ka
+
  | #default = [[Category:{{{1}}}{{if lang}}{{#if:{{{sort|}}}|{{!}}{{{sort|{{BASEPAGENAME}}}}}|<!--No sort specified-->}}]]<!--
| ko = /ko
+
-->}}
| ksh = /ksh
+
}}<noinclude>{{doc begin}}
| kw = /kw
+
{{tl|lang cat}} places pages in their correct language category. It should only be used directly on [[:Category:Templates|templates]].
| mk = /mk
+
 
| ml = /ml
+
=== Usage ===
| mr = /mr
+
* On [[Scattergun]], {{tlx|lang cat|Scout}} will add the page to [[:Category:Scout]]
| ms = /ms
+
* On [[Scattergun/fr]], {{tlx|lang cat|Scout}} will add the page to [[:Category:Scout/fr]]
| nl = /nl
+
* On [[Scout]], {{tlx|lang cat|Scout|3=sort= &amp;nbsp;}} will add the page to [[:Category:Scout]], but will use a space character as the sort key so it appears first in the category listing.<br />Note: The space before the &amp;nbsp; tag is important.
| no = /no
+
 
| oc = /oc
+
'''Advanced usage'''
| pl = /pl
+
* By default {{tl|lang cat}} will ignore any Talk page or page in the User or Team Fortress Wiki namespace. However, this can be overriden for specific instances by setting the parameter {{code|namespace-override}} to {{code|true}}.
| pt = /pt
+
* A specific sort-key can also be defined with the parameter {{code|sort}}. Keep in mind that using this parameter will use the specified sortkey for ''every'' page that the template is used on.
| ro = /ro
+
 
| ru = /ru
+
[[Category:Templates|Lang cat]]
| si = /si
+
[[Category:Language templates|Lang cat]]
| sk = /sk
+
[[Category:Categorization templates|Lang]]
| sq = /sq
+
</noinclude>
| sr = /sr
 
| sv = /sv
 
| ta = /ta
 
| th = /th
 
| tr = /tr
 
| uk = /uk
 
| vi = /vi
 
| yue = /yue
 
| zh = /zh
 
| zh-hans = /zh-hans
 
| zh-hant = /zh-hant
 
| zh-tw = /zh-tw
 
| #default =
 
}}]]
 

Latest revision as of 20:02, 29 April 2013

Documentation for Lang cat

{{lang cat}} places pages in their correct language category. It should only be used directly on templates.

Usage

Advanced usage

  • By default {{lang cat}} will ignore any Talk page or page in the User or Team Fortress Wiki namespace. However, this can be overriden for specific instances by setting the parameter namespace-override to true.
  • A specific sort-key can also be defined with the parameter sort. Keep in mind that using this parameter will use the specified sortkey for every page that the template is used on.