This template is protected from editing.
Difference between revisions of "Template:Lang cat"
(exclude user & talk pages) |
m |
||
Line 1: | Line 1: | ||
− | {{#switch:{{NAMESPACE}} | + | {{#switch:{{{namespace-overrride|{{NAMESPACE}}}}} |
| User | | User | ||
| User talk | | User talk | ||
| Talk = <!-- null --> | | Talk = <!-- null --> | ||
+ | | true | ||
+ | | 1 | ||
+ | | yes | ||
| blank | | blank | ||
| none | | none | ||
− | | #default = [[Category:{{{1}}}{{if lang}}|{{BASEPAGENAME}}]]}}<noinclude>{{protected|small=1}} | + | | #default = [[Category:{{{1}}}{{if lang}}|{{BASEPAGENAME}}]] |
+ | }}<noinclude>{{protected|small=1}} | ||
== Usage == | == Usage == | ||
* Placing {{tlx|lang cat|Scout}} adds ''[[Force-A-Nature/ru]]'' to [[:Category:Scout/ru]], and adds ''[[Force-A-Nature]]'' to [[:Category:Scout]]. | * Placing {{tlx|lang cat|Scout}} adds ''[[Force-A-Nature/ru]]'' to [[:Category:Scout/ru]], and adds ''[[Force-A-Nature]]'' to [[:Category:Scout]]. | ||
+ | * By default this template will not add pages to a category if they are in the ''User'', ''User talk'' or ''Talk'' namespaces. This can be overridden with the parameter {{code|namespace-override}} being set to {{code|true}}, {{code|yes}} or {{code|1}}. | ||
[[Category:Templates|Lang cat]] | [[Category:Templates|Lang cat]] | ||
[[Category:Language templates|Lang cat]] | [[Category:Language templates|Lang cat]] | ||
</noinclude> | </noinclude> |
Revision as of 09:52, 26 August 2010
[[Category:{{{1}}}|Lang cat]]
Usage
- Placing
{{lang cat|Scout}}
adds Force-A-Nature/ru to Category:Scout/ru, and adds Force-A-Nature to Category:Scout. - By default this template will not add pages to a category if they are in the User, User talk or Talk namespaces. This can be overridden with the parameter
namespace-override
being set totrue
,yes
or1
.