Template:Category code/doc
Appearance
This is a documentation subpage for Template:Category code. It may contain usage information, categories and other content that is not part of the original template page. |
Use
[edit]This template creates a formatted link to a category. Without an optional category name, this template creates a formatted but disabled link to the current page.
The syntax of this template is:
{{catt|1=1|2=2}}
where
- 1 is an optional category name with or without the Category: prefix.
- 2 is an optional sort key.
Examples
[edit]- Without a category name, {{catt}} creates:
[[Template:Category code/doc]]
- With a category name, {{catt|Wikipedians in South Dakota}} creates:
[[Category:Wikipedians in South Dakota]]
- With a category prefix and name, {{catt|Category:Scottish Wikipedians}} creates:
[[Category:Scottish Wikipedians]]
See also
[edit]- {{Temt}}, with which this template is compatible.