This template is protected from editing.
Difference between revisions of "Template:Lang cat"
(hide whole switch if 1 isn't defined) |
(Removed {{auto lang cat}} (deprecated).) |
||
Line 29: | Line 29: | ||
}} | }} | ||
}}]]<!-- | }}]]<!-- | ||
− | -->}} | + | -->}} |
− | |||
− | |||
− | |||
}}<noinclude>{{doc begin}} | }}<noinclude>{{doc begin}} | ||
{{tl|lang cat}} places pages in their correct language category. It should only be used directly on [[:Category:Templates|templates]]. | {{tl|lang cat}} places pages in their correct language category. It should only be used directly on [[:Category:Templates|templates]]. |
Revision as of 10:11, 19 August 2011
Documentation for Lang cat
{{lang cat}}
places pages in their correct language category. It should only be used directly on templates.
Usage
- On Scattergun,
{{lang cat|Scout}}
will add the page to Category:Scout - On Scattergun/fr,
{{lang cat|Scout}}
will add the page to Category:Scout/fr - On Scout,
{{lang cat|Scout}}
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
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 parameternamespace-override
totrue
. - 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.