Template:Template category
This template sets the following categories.
Header for categories of general, main, tracking, or various translated template types.
Parameter | Description | Type | Status | |
---|---|---|---|---|
main switch | 1 | Unused or one of main, tracking, or translated. | String | optional |
shortcut | 2 shortcut | Wikilink without square brackets | Page name | optional |
description | description | Optional wikitext, e.g., show populating template. | String | suggested |
type | type | Shorthands for various translated template categories | String | optional |
category | category | Bypass categorization for tracking or translated | String | optional |
Usage
The named parameters can be combined as needed.
- Shorthands
Parameter #1 – main switch
input | result |
---|---|
{{Template category}} |
Category:Main message boxes |
{{Template category |main}} |
Category:Main message boxes |
{{Template category |tracking}} |
Category:Main message boxes |
{{Template category |translated}} |
Category:Main message boxes |
Parameter #2 "shortcut"
input | result |
---|---|
{{Template category |shortcut=CAT:CAT}} |
Category:Main message boxes |
Parameter "description"
The description SHOULD state which template(s) populate the template category.
input | result |
---|---|
{{Template category |description=This category is populated by {{tl|example template}}.}} |
Category:Main message boxes |
Parameter "category" – for manually categorization
{{Template category|tracking|category=}}
disables the categorization into Template tracking categories.{{Template category|translated|category=}}
disables the categorization determined by the otherwise REQUIRED type parameter:
input | result |
---|---|
{{Template category |category=Wikitext}} |
Category:Main message boxes |
Parameter "type" – for auto-categorization of different translated templates
All are auto-categorizated into Category:Translated templates with the value of parameter type as sortkey. Secondly they are categorizated into the following category:
input | category |
---|---|
{{Template category |translated|type=cleanup}} |
Media cleanup templates |
{{Template category |translated|type=documentation}} |
Documentation templates |
{{Template category |translated|type=header}} |
Header templates |
{{Template category |translated|type=infobox}} |
Infobox templates |
{{Template category |translated|type=license}} |
License tags |
{{Template category |translated|type=localisation}} |
Localisation templates |
{{Template category |translated|type=location user}} |
Location user templates |
{{Template category |translated|type=marker}} |
Marker templates |
{{Template category |translated|type=navigational}} |
Navigational templates |
{{Template category |translated|type=problem}} |
Problem tags |
{{Template category |translated|type=protecticon}} |
Protection templates |
{{Template category |translated|type=restriction}} |
Restriction tags |
{{Template category |translated|type=source}} |
Source templates |
{{Template category |translated|type=user}} |
User templates |
See also
- {{Local template category}}
- {{Global maintenance category}}
- {{Local maintenance category}}
- {{Categorise}}
- {{Autocat}} – to place an infobox by which template a category is filled Category:Internationalised category header templates Category:Marker templates