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

Template:Ucat

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

This template adds the current user page to as many as ten user categories. This template may be used directly on your user page or following a user template. This template will only declare categories in the User namespace (NS:2) (other than User:UBX), and will not declare categories in other namespaces. This template may be used with Template:Userbox to create userboxes that only declare user categories in the User namespace.

Use

To use this template, place the following line of Wiki markup after a user template or alone on your user page:

{{ucat|usercat01|...|usercat10|nocat=}}

where:

  • usercat01|...|usercat10 are the base names of up to 10 user categories.
  • nocat= is the optional category declaration switch:
    • nocat=false declare the user categories if in User namespace (NS:2) except User:UBX. (default)
    • nocat=true do not declare any categories.

Caution: If Template:Ucat is used after a userbox template in the User namespace (NS:2) other than User:UBX (most commonly your own user namespace), it must be enclosed in "includeonly" brackets, e.g. <includeonly>{{ucat|Wikipedian cyclists}}</includeonly>
This prevents Template:Ucat from including the user template itself in the category or categories.

Examples

The Wiki markup {{ucat|Wikipedians interested in chess}} adds the user page to the following category:

  • Category:Wikipedians interested in chess

The Wiki markup {{ucat|Canadian Wikipedians|Wikipedian engineers|Wikipedians in Alberta‎}} adds the user page to the following categories:

  • Category:Canadian Wikipedians
  • Category:Wikipedian engineers‎
  • Category:Wikipedians in Alberta‎

The Wiki markup {{ucat|Wikipedian lawyers|Wikipedians interested in politics|nocat=true}} does not declare any categories.

See also

  • For help with this template, please post a comment on the template talk page.
The above documentation is transcluded from Template:Ucat/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:Ucat&oldid=34362"
Categories:
  • User namespace templates
  • Wikipedia metatemplates
  • Templates that add a category
Last edited on 24 July 2020, at 11:49

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 24 July 2020, at 11:49.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop