Template:C/doc: Difference between revisions
From Bonkipedia
[[mw:]]>ENeRZet (text editing) |
ManfredoDo (talk | contribs) m (1 revision imported: Workaround and Utility Templates) |
(No difference)
|
Latest revision as of 17:53, 12 November 2022
This is a documentation subpage for Template:C. It contains usage information, categories and other content that is not part of the original Template page. |
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