Difference between revisions of "Template:Categorizer"
From Twinsuniverse
J McKalling (Talk | contribs) m |
J McKalling (Talk | contribs) |
||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{ | ||
− | #ifeq: {{ | + | #ifeq: {{lc: {{{nocat|false}}} }} | false | [[Category:{{{category}}}]] |
− | + | }}{{categorylink | |
− | + | |category={{{category|}}} | |
− | + | |catlabel={{{catlabel|}}} | |
− | + | |article={{{article|}}} | |
− | + | |label={{{label|}}} | |
− | + | ||
− | + | ||
− | | | + | |
− | + | ||
− | | | + | |
− | + | ||
− | + | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
− | This template is used to add a | + | This template is used to add a header to an infobox, labeling with and automatically categorizing the article under a category. A <nowiki>{{</nowiki>[[Template:Categorylink|Categorylink]]<nowiki>}}</nowiki> is used for display. |
− | + | ||
− | + | ||
==Parameters== | ==Parameters== | ||
− | * '''category''' | + | * '''category''', '''catlabel''', '''article''', '''label''': The parameters for the [[Template:Categorylink]]. |
− | + | ||
− | + | ||
− | + | ||
* '''nocat''': Whether or not to suppress categorization under '''''category''''' (defaults to false, which means auto categorization). | * '''nocat''': Whether or not to suppress categorization under '''''category''''' (defaults to false, which means auto categorization). | ||
Line 35: | Line 23: | ||
==Examples== | ==Examples== | ||
− | + | For explanation of the above first four parameters, see the [[Template:Categorylink|Categorylink]] template. | |
− | + | ||
− | + | The '''nocat''' parameter may be used to suppress automatic categorization like this (any value will do): | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<nowiki>{{categorizer | <nowiki>{{categorizer | ||
− | |category = Quetches | + | |category=Quetches |
− | + | |article=Quetch | |
− | |article = Quetch | + | |nocat=true |
− | | | + | |
}}</nowiki> | }}</nowiki> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
:[[Quetch]]{{superlink|article=:Category:Quetches|label=list all}} | :[[Quetch]]{{superlink|article=:Category:Quetches|label=list all}} |
Revision as of 23:55, 5 December 2012
This template is used to add a header to an infobox, labeling with and automatically categorizing the article under a category. A {{Categorylink}} is used for display.
Parameters
- category, catlabel, article, label: The parameters for the Template:Categorylink.
- nocat: Whether or not to suppress categorization under category (defaults to false, which means auto categorization).
Syntax
{{categorizer |category = |catlabel = |article = |label = |nocat = }}
Examples
For explanation of the above first four parameters, see the Categorylink template.
The nocat parameter may be used to suppress automatic categorization like this (any value will do):
{{categorizer |category=Quetches |article=Quetch |nocat=true }}
(and the page would not be categorized under Category:Quetches)