Template:C: Difference between revisions
Template page
More actions
Template>Deadfire m Text replacement - "{{/doc}}" to "{{Documentation}}" |
m 1 revision imported |
(No difference)
| |
Revision as of 11:01, 5 March 2024
[[:Category:|]]
Usage
Use {{C}} to create a namespace-free link to a category, e.g. Internal category-link templates rather than Category:Internal category-link templates, Cat:Internal category-link templates:
- {{c|Internal category-link templates}} produces: Internal category-link templates
- {{c|Category:Internal category-link templates}} produces: Internal category-link templates
To specify the text used for the link – e.g. "Internal category-link templates category" in place of "Internal category-link templates" – add it as the next parameter:
- {{c|Internal category-link templates|Internal category-link templates category}} produces: Internal category-link templates category
- {{c|Category:Internal category-link templates|Internal category-link templates category}} produces: Internal category-link templates category
See also
- {{Cl}}, which produces the second type of link shown in the Usage section (Category:Internal category-link templates, i.e. including the namespace prefix).
- {{Cls}}, which produces the third type shown in the Usage section (Cat:Internal category-link templates, i.e. including an abbreviated namespace prefix).
- {{Lcs}}, which produces output such as:
- {{Icon}} for standard icons.
|
|
Template data
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.
TemplateData for C
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 |