Template:Category/doc
Jump to navigation
Jump to search
Usage
{{Category}}
is a helper template for outputting categories
Why not just use [[Category:Furniture]]
? This template will output each category given to it, and it'll automatically add {{#translation:}}
so we get localized categories!
Syntax
{{Category|categories...}}
Examples
{{Category
|Furniture
|Tools
|Some Other Category
}}
Will add the categories Furniture
, Tools
, and Some Other Category
to the page
Sort keys
Categories allow overriding Category sort keys. Sort keys change how a page is sorted within a category. Normally this is set by doing [[Category:Furniture|*]]
. This may be done with this Template by separating with a comma.
{{Category
|Furniture,*
|Tools,*
|Some Other Category,*
}}
- If the category and page name are the same, the sort key will automatically be set to
*
unless overridden.- Eg; If the page
Furniture
is added toCategory:Furniture
, then it will automatically set the sort key to*
using this Template.
- Eg; If the page
Related
- {{MagicCategory}}