Template:Category link without namespace
(Redirected from Template:C)
[[:Category:|]]
| This template, module and/or subpages are based on or ported over completely to BattleTechWiki, using the Creative Commons Licensed content from this page on Wikipedia (The original authors of this page are shown on here). |
Usage[edit]
Use {{c}} to create a namespace-free link to a category, e.g. BattleMechs rather than Category:BattleMechs, Cat:BattleMechs:
- {{c|BattleMechs}} produces: BattleMechs
- {{c|Category:BattleMechs}} produces: BattleMechs
To specify the text used for the link – e.g. "BattleMechs category" in place of "BattleMechs" – add it as the next parameter:
- {{c|BattleMechs|BattleMechs category}} produces: BattleMechs category
- {{c|Category:battleMechs|battleMechs category}} produces: BattleMechs category
See also[edit]
- {{cl}}, which produces the second type of link shown in the Usage section (Category:BattleMechs, i.e. including the namespace prefix).
- {{lcs}}, which produces output such as: (edit talk links history)
- {{icon}} for standard BattleTechWiki icons.
|
|
Template data[edit]
TemplateData for Category link without namespace
Creates links to categories without the namespace prefix.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Category name | 1 | The name of the category to link to, with or without the Category: prefix | String | required |
| Link text | 2 | Text of the actual link, if you want to override it | String | optional |

