• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Category explanation/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Category explanation
This category is for {{{1}}}.
This is the template sandbox page for Template:Category explanation (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]

This template is for use on category pages (in the Category: namespace), producing a hatnote describing the category. It takes a single parameter – the category description – producing the hatnote:

This category is for

followed by that description. Any spaces surrounding the parameter are removed, and a space is inserted before it. It should be worded so as to make the result a complete English sentence. A period (full stop) will be added to the end if the parameter does not already end with a period. The hatnote is indented and on a new line (technically, in a new <div>).

Examples

edit
  • This code: {{Category explanation|articles related to [[foo]]}} produces:
    This category is for articles related to foo.
  • This code: {{Category explanation|articles related to [[foo]].}} produces:
    This category is for articles related to foo.
  • This code: {{Category explanation|articles related to [[foo]]:}} (undesirably) produces:
    This category is for articles related to foo:.

Redirects

edit
  • {{About cat}}
  • {{Cat about}}
  • {{Category about}}
  • {{Catexp}}
  • {{Cat exp}}
  • {{Category description}}
  • {{Cat description}}

See also

edit
  • v
  • t
  • e
Hatnote templates for category pages
About
  • {{Category explanation}}
  • {{Category main article}}
  • {{Category main section}}
  • {{Main category}}
  • {{Category more}}
  • {{Category more if exists}}
See also
  • {{Category see also}}
  • {{Category see also if exists}}
  • {{Category see also if exists 2}}
  • {{Category pair}}
  • {{Preceding category}}
  • {{Succeeding category}}
Distinguish
  • {{Category distinguish}}
  • {{Category contrast}}
  • Outline
  • Category:Hatnote templates for category pages
  • See also other category-header templates

Other category-header templates

edit
  • v
  • t
  • e
Category-heading templates
Templates meant to appear at or near the top of category pages
By namespace
Category
  • {{Category explanation}}
  • {{Parent-only stub category}}
  • {{Regional stub category}}
  • {{Set category}}
  • {{Stub category}}
  • {{Topic category}}
File
  • {{Category game screenshot header}}
  • {{File category}}
  • {{File template notice}}
  • {{Media template notice}}
Other
  • {{Help category}}
  • {{Maintenance category}}
  • {{Portal category}}
  • {{Sockpuppet category}}
  • {{Template category}}
  • {{User category}}
Maintenance
  • {{All included}}
  • {{Category diffuse}}
  • {{Category header}}
  • {{Container category}}
  • {{Diffusing subcategory}}
  • {{Geography parent category}}
  • {{Hidden category}}
  • {{Non-diffusing parent category}}
  • {{Non-diffusing subcategory}}
  • {{Overpopulated category}}
  • {{Possibly empty category}}
  • {{Redirect category}}
  • {{Tracking category}}
  • See also: Category hatnote templates
The above documentation is transcluded from Template:Category explanation/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Category_explanation/sandbox&oldid=1016879796"
Last edited on 9 April 2021, at 15:31

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 9 April 2021, at 15:31 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop