Template:C: Difference between revisions
Jump to navigation
Jump to search
(Created page with "[[:Category:{{PAGENAME:{{{1}}}}}|{{{2|{{PAGENAME:{{{1}}}}}}}}]]<noinclude> {{Template doc}} <!-- Add categories to the /doc subpage, not here! --> </noinclude>") |
m (Protected "Template:C" ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[:Category:{{PAGENAME:{{{1}}}}}|{{{2|{{PAGENAME:{{{1}}}}}}}}]]<noinclude> | [[:Category:{{PAGENAME:{{{1}}}}}|{{{2|{{PAGENAME:{{{1}}}}}}}}]]<noinclude> | ||
{{ | {{Documentation}} | ||
<!-- Add categories to the /doc subpage, not here! --> | <!-- Add categories to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Latest revision as of 03:34, 16 June 2023
[[:Category:|]]
Usage
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 |