Template:In category/doc: Difference between revisions
imported>Deadfire Template Doc Creation |
Tungstenchan (talk | contribs) m Text replacement - "BattleTechWiki" to "BattleIntelligence" |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
The {{tl|In category}} template is designed for use on the [[ | The {{tl|In category}} template is designed for use on the [[BattleIntelligence:Template documentation|documentation subpage]]s of templates. It produces a [[BattleIntelligence:hatnote|hatnote]] that specifies into which category the documented template is categorised. | ||
Basic usage is along the lines of {{tlx|In category| | Basic usage is along the lines of {{tlx|In category|BattleIntelligence}}, which produces the following message: | ||
{{In category| | {{In category|BattleIntelligence}} | ||
It is possible to specify more than one category, e.g. {{tlx|In category|Candidates for speedy deletion|Candidates for speedy deletion by user}} produces: | It is possible to specify more than one category, e.g. {{tlx|In category|Candidates for speedy deletion|Candidates for speedy deletion by user}} produces: | ||
{{In category| | {{In category|BattleIntelligence|BattleIntelligence how-to}} | ||
Up to five categories are supported. | Up to five categories are supported. | ||
To override the "and" with another conjunction, use the <code>|and=</code> parameter.<br>For example, {{tlx|In category| | To override the "and" with another conjunction, use the <code>|and=</code> parameter.<br>For example, {{tlx|In category|BattleIntelligence|BattleIntelligence how-to|and=or}} would produce: | ||
{{In category| | {{In category|BattleIntelligence|BattleIntelligence how-to|and=or}} | ||
This template does nothing to change the functionality of the documented template: in particular, it will not actually apply the categories. Its purpose is simply to produce a note about what the documented template does, but you will need to implement the template's actual functionality separately. | This template does nothing to change the functionality of the documented template: in particular, it will not actually apply the categories. Its purpose is simply to produce a note about what the documented template does, but you will need to implement the template's actual functionality separately. | ||
Latest revision as of 00:09, 1 May 2025
| This is a documentation subpage for Template:In category. It may contain usage information, categories and other content that is not part of the original template page. |
The {{In category}} template is designed for use on the documentation subpages of templates. It produces a hatnote that specifies into which category the documented template is categorised.
Basic usage is along the lines of {{In category|BattleIntelligence}}, which produces the following message:
It is possible to specify more than one category, e.g. {{In category|Candidates for speedy deletion|Candidates for speedy deletion by user}} produces:
Up to five categories are supported.
To override the "and" with another conjunction, use the |and= parameter.
For example, {{In category|BattleIntelligence|BattleIntelligence how-to}} would produce:
This template does nothing to change the functionality of the documented template: in particular, it will not actually apply the categories. Its purpose is simply to produce a note about what the documented template does, but you will need to implement the template's actual functionality separately.
TemplateData
TemplateData for In category
Produces a note about which categories a template will categorize the pages it's applied to into.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Category 1 | 1 | The first category into which the documented template categorises | Unknown | required |
| Category 2 | 2 | The second category into which the documented template categorises | Unknown | optional |
| Category 3 | 3 | The third category into which the documented template categorises | Unknown | optional |
| Category 4 | 4 | The fourth category into which the documented template categorises | Unknown | optional |
| Category 5 | 5 | The fifth category into which the documented template categorises | Unknown | optional |
| Override for "and" | and | A word to use instead of "and" when writing the lists of categories that the documented template categorises into. Only used if at least two templates are listed.
| Content | optional |