Difference between revisions of "Template:Subcategory/doc"
From Kerbal Space Program Wiki
Rocketdocker (talk | contribs) (Edits.) |
Rocketdocker (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
== Examples == | == Examples == | ||
− | For example in <tt style="white-space:nowrap;">Template:Infobox/Part/ISP</tt> this would add it to <tt style="white-space:nowrap;"> | + | For example in <tt style="white-space:nowrap;">Template:Infobox/Part/ISP</tt> this would add it to <tt style="white-space:nowrap;"><code>Category:Infobox/Part {{{1}}}</code></tt> with the sortkey <tt>ISP</tt>. |
* '''Currently only negative values for the second parameter are supported.''' | * '''Currently only negative values for the second parameter are supported.''' |
Latest revision as of 02:38, 26 January 2020
Error creating thumbnail: /bin/bash: rsvg-convert: command not found |
This is a documentation subpage for Template:Subcategory. It contains usage information, categories and other content that is not part of the original template page. |
Purpose
This template adds the article to a category which begins with the name of the article and is sorted with the rest of the name.
Usage
# | 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.