Difference between revisions of "Template:Subcategory"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*replace 'Parameter Row' and 'ParameterRow' by 'Parameter row';)
m (*renamed Parameter Table to Parameter table;)
Line 2: Line 2:
  
 
== Parameters ==
 
== Parameters ==
{{Parameter Table|name=number|parameters=
+
{{Parameter table|name=number|parameters=
 
{{Parameter row|1|Subcategory name suffix}}
 
{{Parameter row|1|Subcategory name suffix}}
 
{{Parameter row|2|Number of [[mw:Help:Extension:ParserFunctions#.23titleparts|title parts]] which are used for the category name.|-1}}
 
{{Parameter row|2|Number of [[mw:Help:Extension:ParserFunctions#.23titleparts|title parts]] which are used for the category name.|-1}}

Revision as of 12:14, 19 December 2014

Adds the article to a category which begins with the name of article and is sorted with the rest of the name.

Parameters

# Optional Description Default
1 No Subcategory name suffix
2 Yes Number of title parts which are used for the category name. -1

Examples

For example in Template:Infobox/Part/ISP this would add it to Category:Infobox/Part {{{1}}} with the sortkey ISP.

Currently only negative values for the second parameter are supported.