Template:Category description/core
A metatemplate for creating {{Category description}} subtemplates
Usage
{{Category description/core
|name =
|lang =
|title =
|description =
|remarks =
|pattern =
|pagename =
}}
The template Category description with its numerous subtemplates can be used on a category page to describe the content of the category and display links to related other categories. This template here facilitates the creation of new subtemplates.
Any {{Category description}} subtemplate covers a family of categories with the same basic description and the same naming scheme. There are already many subtemplates available.
See this page for detailled instructions on how to create a new {{Category description}} subtemplate.
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
name | Name of the subtemplate. Only used for the “V·T·E” links on top of the box. When defining a new subtemplate, use {{subst:PAGENAME}} . | empty | required | |
lang | Language code of the template translation. When defining a new subtemplate, use {{TRANSLATIONLANGUAGE}} if you have translated versions, and leave it empty otherwise. | empty | optional | |
title | Fixed text for the title displayed at the start of the box header. For each of the variables in pattern , a Wikipedia link to the actual content of that variable will be added. | empty | optional | |
description | Text to be displayed between the box header and the navigation section. Used for the actual description of the category's content. May contain placeholders. | empty | optional | |
remarks | Text to be displayed below the navigation section. Used for remarks about the correct use of the category. May contain placeholders. | empty | optional | |
pattern | Pattern to match the page name with. Variable parts of the pattern are represented by placeholders enclosed in << and >> . For each variable part, a navigation section will be generated using the template “Navigation by/<variable>”. | empty | required | |
pagename | Page name (without the “Category:” prefix) of the page for which the description should be displayed. When defining a new subtemplate, use {{{pagename}}} . | empty | required | |
autocat | Candidates for categories to be automatically set. See Module:Autocat for details. May contain placeholders. | empty | optional | |
variable | Can be set for each variable appearing in pattern .Can be used to specify the exact characteristics of the variable, like for example administrative division=district . Currently only used to build metacategory names for automatic categorization. | empty | optional | |
variable:title | Can be set for each variable appearing in pattern .Can be set to no to suppress adding the variable's content to the box header. | yes | optional | |
variable:redlinks | Can be set for each variable appearing in pattern .How to handle red links to nonexisting category pages in the navigation block for this variable:
| empty | optional | |
variable:parent:pattern | Can be set for each variable appearing in pattern .Deviating pattern to use for the navigation block for this variable when going up one level of hierarchy. Must contain placeholders for all variables of pattern . | empty | optional | |
variable:children | Can be set for each variable appearing in pattern .Can be set to no to suppress the navigation bar for subcategories of the current category. | yes | optional | |
variable:children:pattern | Can be set for each variable appearing in pattern .Deviating pattern to use for the navigation block for this variable when going down one level of hierarchy. Must contain placeholders for all variables of pattern . | empty | optional | |
variable:children:redlinks | Can be set for each variable appearing in pattern .Deviating rule for the display of red links for the navigation block for this variable when going down one level of hierarchy. | empty | optional | |
variable:autocat | Can be set for each variable appearing in pattern .If this parameter is set to yes , the template will automatically add categories to the page based on the content of this variable. | no | optional | |
variable:autocat:parent | Can be set for each variable appearing in pattern .If this parameter is set to no , the parent category for dynamic metatemplates will be suppressed when automatically adding categories. | yes | optional | |
variable:autocat:candidates | Can be set for each variable appearing in pattern .Candidates for the automatically added categories, in the format as described at Module:Autocat. Note that for dynamic metatemplates, the parent category will always be included in the candidates additionally to the ones defined by this parameter (unless suppressed with variable:autocat:parent=no ). | empty | optional |
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
Relies on:
Examples
{{Category description/core|description=This category is about a specific season|pattern=<<season>> in <<administrative division>>|pagename=Summer in Salzburg (state)}}
renders as:
{{Category description/core|description=This category is about a biological taxon|pattern=<<null>> in <<administrative division>> in <<month>>|pagename=Fabales in Lower Austria in June|month:redlinks=no}}
renders as:
See also
Localization
This template is localized by utilizing Wikidata, via {{Label}} template or similar approach.