• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Category code

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
Shortcut
  • {{catt}}

Use

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

  • Without a category name, {{catt}} creates: [[Template:Category code]]
  • 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

  • {{Temt}}, with which this template is compatible.
The above documentation is transcluded from Template:Category code/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Category_code&oldid=7316"
Category:
  • Internal category-link templates
Last edited on 5 February 2021, at 17:14

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 5 February 2021, at 17:14.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop