Template:Template category/doc
![]() | This is a documentation subpage for Template:Template category. It contains usage information, categories and other content that is not part of the original Template page. |
[[Category:Template documentation pages{{#translation:}}]]
{{Template category}}
should be placed at the top of categories that contain template pages and their related subcategories.
Usage
Syntax
- Basic
{{Template category |description= }}
- Full
{{Template category | type = | topic = | description = | ALTTEXT = | help = }}
Parameters and examples
The template may be used without any parameters.
Page Module:Message box/cmbox.css has no content.
![]() | The pages listed in this category are templates.
This page is an administrative page only, and not to be seen as an article.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
Template:Unbulleted list |
The following, however, may be used to make the template more informative:
type
- Setting type to one of the following values adds a preset note as to which type of template the category (but not necessarily its subcategories) is meant to contain. The values are:
- ambox
- category header
- category heading
- catheader
- cat header
- cathead
- campaignbox
- conversion
- external link
- formatting
- function
- infobox
- module
- meta
- navigation
- navigational
- navbox
- user
- userbox
- If type is set to something other than one of these values, the default "The pages listed in this category are templates" note appears unmodified.
{{Template category |type=sidebar}}
Page Module:Message box/cmbox.css has no content.
![]() | The pages listed in this category are meant to be sidebar templates.
This page is an administrative page only, and not to be seen as an article.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
Template:Unbulleted list |
topic
- Use topic to add a default description ending "...relating to topic", where topic is usually a wikilink to the main article associated with the category
{{Template category |topic=Battletech}}
Page Module:Message box/cmbox.css has no content.
![]() | Templates relating to Battletech. The pages listed in this category are templates.
This page is an administrative page only, and not to be seen as an article.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
Template:Unbulleted list |
{{Template category |type=meta |topic=Battletech}}
Page Module:Message box/cmbox.css has no content.
![]() | Templates relating to Battletech. The pages listed in this category are meant to be metatemplates.
This page is an administrative page only, and not to be seen as an article.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
Template:Unbulleted list |
description
- Use description if a customised description is needed instead of – or, if topic also used, to follow – the default description above.
{{Template category | type = navbox | topic = Battletech | description = <br />{{small|For templates relating specifically to Battletech}} }}
Page Module:Message box/cmbox.css has no content.
![]() | Navbox templates relating to Battletech. For templates relating specifically to Battletech The pages listed in this category are meant to be navigation templates.
This page is an administrative page only, and not to be seen as an article.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
Template:Unbulleted list |
{{Template category |description=This text is supplied by the ''description'' parameter.}}
Page Module:Message box/cmbox.css has no content.
![]() | This text is supplied by the description parameter. The pages listed in this category are templates.
This page is an administrative page only, and not to be seen as an article.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
Template:Unbulleted list |
help
- Use help to replace the instructions on adding a template to the category (second paragraph of the "Further template category notes" section):
{{Template category |help=This text supplied by the ''help'' parameter.}}
Page Module:Message box/cmbox.css has no content.
![]() | The pages listed in this category are templates.
This page is an administrative page only, and not to be seen as an article.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. This text supplied by the help parameter. |
- To omit the default instructions, set help to no:
{{Template category |help=no}}
Page Module:Message box/cmbox.css has no content.
![]() |
Tracking category
Uses with a topic or description parameter are tracked:
TemplateData
TemplateData for Template category
This template is used as a header for category pages that contain templates.
Parameter | Description | Type | Status | |
---|---|---|---|---|
type | type | no description | Unknown | optional |
topic | topic | no description | Unknown | optional |
description | description 1 | no description | Unknown | optional |
ALTTEXT | ALTTEXT | no description | Unknown | optional |
help | help 2 | no description | Unknown | optional |
category | category | no description | Unknown | optional |