Template:C
Appearance
[[Special:MyLanguage/Category:{{{1}}}|{{{2}}}]]
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Category link
Creates a link to a category in the userās language.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Category | 1 | The name of the category (The āCategory:ā prefix may be omitted)
| String | required |
Displayed Text | 2 | The displayed text | Line | optional |
Namespace? | nsp | Whether to display the āCategory:ā namespace prefix, defaults to whether parameter 1 includes the āCategory:ā prefix.
| Boolean | optional |
Examples
- No
|nsp=
parameter -
- {{C|Foo}} → Foo
- {{C|Category:Foo}} → Category:Foo
|nsp=1
-
- {{C|Foo|nsp=1}} → Category:Foo
- {{C|Category:Foo|nsp=1}} → Category:Foo