Template:Category
This template is used in other templates to categorize pages to a stated category only when the template is used in the stated namespace. Pages in other namespace are not categorized.
Usage
{{Category |1= |2= |3= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | category name | The name of the target category (without the prefix Category: and without quotation marks). The template doesn't test whether the target category exists. | empty | required |
2 | namespace | The namespace from which only pages were categorized. | (main - gallery) | optional |
3 | sortkey | A sortkey for the page in the target category. | {{PAGENAME}} | optional |
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information This template is used in other templates to categorize pages to a stated category only when the template is used in the stated namespace. Pages in other namespace are not categorized.
|
Additional information
The template is intended to be used in the following namespaces: the Template namespace
The template is intended to be used by the following user groups: all users
See also
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation
" (xx
being the code of your language)