Want to contribute? Join the Discord and ask for the editor role.
Template:Category header: Difference between revisions
Template page
RTGame>Alistair3149 (Created page with "<includeonly>This category contains {{{1}}}{{#if:{{{2|}}}|{{#ifeq:{{lc:{{{related|}}}}}|no||{{nbsp}}related to}}{{nbsp}}{{{2}}}}}. {{#if:{{{3|}}}|This category is automaticall...") |
m (1 revision imported) |
Latest revision as of 16:44, 2 May 2021
This documentation is transcluded from Template:Category header/doc. Changes can be proposed in the talk page.
This template displays a standardised sentence to be used on all category pages.
Usage
This template can be used by entering the following onto a category page.
{{Category header|Content type|Description|Automatically added|Added by}}
- Content type
- This parameter will accept whether the category contains any combination of pages, images, and/or subcategories.
- Description
- This parameter will accept the subject of the category.
- Automatically added
- This parameter will accept the word "yes", if the category in question is automatically added to a page via a template. Leave this parameter blank if the category is not automatically added.
- Added by
- This parameter will accept the names of the templates that automatically are added by a template. This parameter will only display if the third parameter is "yes".
- Related
- Setting this parameter to
no
suppresses the "related to" text that is otherwise shown betweennum1
andnum2
in the output.
TemplateData
Adds a simple description of a category
Parameter | Description | Type | Status | |
---|---|---|---|---|
Content type | 1 | What kind(s) of page this category contains
| String | required |
Description | 2 | A short description of what the pages in this category are related to
| String | required |
Automatically added | 3 | "yes" if this page is automatically added by some template(s), left blank otherwise
| Boolean | optional |
Added by | 4 | The template(s) that automatically add pages to this category. Should be left blank unless the "automatically added" parameter was set to "yes"
| String | optional |
Include "related to" | related | Set to "no" to suppress the "related to" text that is otherwise shown between "content type" and "description"
| String | optional |