Difference between revisions of "Template:Cat"
Jump to navigation
Jump to search
test>Fuhghettaboutit m (Changed protection level of Template:Cat: Enable access by template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) |
test>Ahecht (Sync with sandbox per edit request) |
||
| Line 1: | Line 1: | ||
| − | [[:Category:{{{1}}}]]<noinclude> | + | [[:Category:{{#titleparts:{{PAGENAME:{{{1}}}}}}}]]<noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 16:04, 28 April 2016
[[:Category:]]
Usage
Creates a link to the specified category. Canonalizes the displayed category name.
Example:
{{Cat|Stubs}}→ Category:Stubs{{Cat|stubs}}→ Category:Stubs{{Cat|cat:stubs}}→ Category:Stubs{{Cat|category:stubs}}→ Category:Stubs
See also
- {{c}} – pipetricked category name – skips 'Category:' and displays bare link.
- {{cl}} – links to category and includes the 'Category:' label
- {{cls}} – compromise macro between 'C' and 'Cat': [[:Category:{{{1}}}|Cat:{{{1}}}]]
- {{catlist}} – list of many, variable output format
- {{cat see also}} – list of many, fixed output format for a category-namespace hatnote
- with administration links
- {{lc}} – Category name and full links – for administration and discussion pages
- {{lcs}} – Category name and smaller set of links – same purposes,
but note, both are useful from within preview screens as well to explore and study relationships, or make related changes.
| The above documentation is transcluded from Template:Cat/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |