Template:Category
Jump to navigation
Jump to search
Documentation The documentation below is transcluded from Template:Category/doc. (edit | history)
[purge]
This shortcut template is a simple way to add both regular and sub-mod category.
Usage
{{ category | <category> | <sort key> (optional) | onlymod = y/yes (optional) }}
- First unnamed parameter
The name of category you want to add. By default it add only regular category (i.e. [[Category:<Category name>]]
), but if the template is used on mod page it will also add sub-mod category ([[Category:<Mod name>/<Category name>]]
).
- Second unnamed parameter
Sort key for the page. If the parameter is not set, the template will use {{FULLPAGENAME}}
for regular categories and {{modname|strip}}
for sub-mod categories.
- onlymod
Boolean value. If set the template will return only sub-mod category.