Modèle:Template category/doc : Différence entre versions
(kill style= bad idea) |
m (1 révision importée) |
(Aucune différence)
|
Version actuelle datée du 19 janvier 2016 à 11:29
This is a documentation subpage for Modèle:Template category. It contains usage information, categories, interlanguage links and other content that is not part of the original modèle page. |
input | result | |||
---|---|---|---|---|
{{template category}}
|
| |||
{{template category |main}}
|
| |||
{{template category |tracking}}
|
| |||
{{template category |translated}}
|
| |||
{{template category |description=Wikitext}}
|
| |||
{{template category |category=Wikitext}}
|
| |||
{{template category |shortcut=CAT:CAT}}
|
|
- The named parameters can be combined as needed.
- The description Modèle:Best current practice state which template(s) populate the template category, e.g.,
description=This category is populated by {{tl|name}}.
{{template category|tracking|category=}}
disables the categorization in Template tracking categories.{{template category|translated|category=}}
disables the categorization determined by the otherwise Modèle:Best current practice type parameter:
input | category |
---|---|
{{template category |translated|type=cleanup}}
|
Media cleanup templates |
{{template category |translated|type=documentation}}
|
Template documentation |
{{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 |
Also see {{local template category}}, {{Global maintenance category}}, {{Local maintenance category}}, and {{Categorise}}.
<templatedata> { "params": { "1": { "label": "main switch", "description": "Unused or one of main, tracking, or translated.", "type": "string" }, "2": { "aliases": [ "shortcut" ], "label": "shortcut", "description": "Wikilink without square brackets", "type": "wiki-page-name" }, "description": { "description": "Optional wikitext, e.g., show populating template.", "type": "string", "suggested": true }, "type": { "description": "Shorthands for various translated template categories", "type": "string" }, "category": { "description": "Bypass categorization for tracking or translated", "type": "string" } }, "description": "Header for categories of general, main, tracking, or various translated template types." } </templatedata>