Template:Infobox Template/categories

This template renders information about another template, a variable list of categories, under which that template may categorize its articles. Depending on the amount of specified categories, this template may also categorize that template under the category that represents that amount. Noncategorizing, (normal) Categorizing or Multi-categorizing.

Parameters

 * 1) A category specification for the template, in the following format (no parameter name, multiple parameters allowed, case sensitive)
 * 2) The category name of the category the template may categorize under (if empty string, only the value part is displayed)
 * 3) An exclamation mark (required as separator)
 * 4) The value that is required to select this category (optional, required if there is no category name)
 * 5) An exclamation mark (required as separator)
 * 6) A custom string to use on the category link (optional, defaults to "category" if a value is also specified)
 * nocat: Whether or not to suppress categorization under the automatically chosen category (defaults to false, which means auto categorization).

''Note: the unnamed parameters must be specified in proper order if using their positional numbers, because the first number that is empty/not specified terminates the list. If the list is empty this way, the default 'none' category will be used.''

Note: although this template does not limit the amount of possible unnamed parameters, the parent infobox limits to thirty.

Syntax
Warning : this template will often force a table cell to split in two, so do not use it outside table cells! Infoboxes use tables, so in there would be fine.

Examples
Common use includes at least one unnamed parameter to specify the category a template will categorize its pages under:



You can also specify multiple categories for the same template, if they are all non-optional:



If however, the template allows a choice between the categories, a value may be specified that is used to select each category. This would logically only apply if there are more than one categories, but this is no restriction. You can do this by specifying a second value for any unnamed parameter, separated by exclamation mark:



It is possible to customize the text on the link, for instance "maintenance", by specifying a third value for any unnamed parameter (any value is possible), also separated by exclamation mark:



To be able to customize the text on the link if there is no second value like in the first example above, you just leave the second value empty:



Some templates may not know in advance which categories it will categorize under, in which case the category name should be empty and the second value used to describe how the template gets the category name (for instance one of its parameters):


 * parameterName
 * parameterName

You may leave the "categories" undefined by not specifying any unnamed parameters (i.e. completely empty), or not maintaining proper ordering, so these all have the same result:



The nocat parameter may be used to suppress automatic categorization like this (any value will do):

This would render the same result as the first example above, but would not automatically categorize under Category:Categorizing templates.