Template:C/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 17: | Line 17: | ||
== See Also == | == See Also == | ||
* {{tl|Cat}} | * {{tl|Cat}} | ||
== Template Data == | |||
<templatedata> | |||
{ | |||
"description": "Creates links to categories without the namespace prefix.", | |||
"params": { | |||
"1": { | |||
"label": "Category name", | |||
"description": "The name of the category to link to, with or without the Category: prefix", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Link text", | |||
"description": "Text of the actual link, if you want to override it", | |||
"type": "string" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
<includeonly>{{sandbox other||{{testcases other|| | <includeonly>{{sandbox other||{{testcases other|| |
Revision as of 03:46, 16 June 2023
It contains usage information, categories and other content that is not part of the original template page.
|
Usage
{{c|category name}}
{{c|category name|link text}}
Use {{c}} to create a namespace-free link to a category, e.g. Some Category rather than Category:Some Category
Examples
To specify the text used for the link – e.g. "Some Other Category" in place of "Some Category" – add it as the next parameter:
{{c|Enzou|Enzou (エンゾウ)}}
→ Enzou (エンゾウ){{c|Category:Enzou|Enzou (エンゾウ)}}
→ Enzou (エンゾウ)
See Also
- {{Cat}}
Template Data
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 |