Difference between revisions of "Template:Categorizer"

From Twinsuniverse
Jump to: navigation, search
m
Line 3: Line 3:
 
}}{{categorylink
 
}}{{categorylink
 
     |category={{{category|}}}
 
     |category={{{category|}}}
     |catlabel={{{catlabel|}}}
+
     |catlabel={{{catlabel|list all}}}
 
     |article={{{article|}}}
 
     |article={{{article|}}}
     |label={{{label|}}}
+
     |label={{{label|{{{article|}}}}}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
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.
 
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.

Revision as of 00:03, 6 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
}}
Quetch [list all]

(and the page would not be categorized under Category:Quetches)