Template:Category header

{{Cmbox

| imageright = {{#if:{{{shortcut|{{{shortcut1|{{{sc1|{{{sc|}}}}}}}}}}}}|{{Ombox/shortcut|{{{shortcut|{{{shortcut1|{{{sc|{{{sc1|}}}}}}}}}}}}|{{{shortcut2|{{{sc2|}}}}}}|{{{shortcut3|{{{sc3|}}}}}}|{{{shortcut4|{{{sc4|}}}}}}|{{{shortcut5|{{{sc5|}}}}}}}}}}

| text =

This category contains {{#ifeq:{{{container}}}|yes||{{#switch:{{{contents}}}

| articles = articles

| audio = audio files

| categories = categories

| images = images

| portals = portals

| redirects = redirects

| stubs = stubs

| templates = templates

| users = users

| pages

}} {{#ifeq:{{{subcategories}}}|no||and}}}} {{#ifeq:{{{subcategories}}}|no||subcategories {{#ifeq:{{{class}}}|admin|of {{#switch:{{{contents}}}

| articles = articles

| audio = audio files

| categories = categories

| images = images

| portals = portals

| redirects = redirects

| stubs = stubs

| templates = templates

| users = users

| pages

}}}}}} {{#ifeq:{{{type}}}|tracking|tagged with {{tlx|{{{template}}}|{{#if:{{{parameter|}}}|{{{parameter}}}}}}}{{#ifeq:{{{variant}}}|yes| or a variant thereof}}|belonging to the {{#switch:{{{type}}}

| double|set = set

| set-and-topic = set and topic

| topic

}} {{#if:{{{first|}}}|{{{first}}}|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}{{#ifeq:{{{contents}}}|categories||{{#ifeq:{{{contents}}}|container||{{#ifeq:{{{contents}}}|lists||{{#ifeq:{{{lists}}}|no||{{#ifeq:{{{type}}}|double|, as well as lists of {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}|{{#ifeq:{{{type}}}|set|, as well as lists of {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}|{{#ifeq:{{{type}}}|set-and-topic|, as well as lists of {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}}}}}}}}}}}}}}}. {{#ifeq:{{{type}}}|double|{{#if:{{{topic|}}}|For topics related to {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}, see :Category:{{{topic}}}.}}|{{#ifeq:{{{type}}}|set|{{#if:{{{topic|}}}|For topics related to {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}, see :Category:{{{topic}}}.}}}}}}

{{#switch:{{{class}}}

| admin = {{Show|20px Administrative category|This category is part of the administration of Wikipedia and is not part of the encyclopaedia. It contains pages that are not articles or it groups articles by status rather than content.}}

| content = {{Show|20px Content category|This category is part of the encyclopaedia. It should only contain articles and/or subcategories. Related administration pages should be linked, not included in the category.}}

| contents = {{Show|20px Contents category|This category is a Wikipedia contents page. It is {{#ifeq:{{FULLPAGENAME}}|Category:Contents|the highest-level category|one of the highest-level categories}}.}}

| {{Error|This category is unclassified!}}

}}

{{#switch:{{{type}}}

| double = {{Show|20px Double category|This category contains a set of articles and their corresponding topic categories. It should only contain individual {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} and lists of {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}. Topics related to the set should be placed in relevant topic categories{{#if:{{{topic|}}}|, such as :Category:{{{topic}}}}}. {{#if:{{{individual|}}}|Topics related to an individual {{{individual}}} should be placed in the respective topic category.}}}}{{Category other|Category:Double categories}}

| intermediate = {{Show|20px Intermediate category|This category serves as a cross-over point between two category trees. It should only contain categories.}}

| set = {{Show|20px Set category|This category contains a set of pages in a particular group. It should only contain individual {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}, as well as subcategories and lists of {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}. Topics related to the set {{#if:{{{individual|}}}|or an individual {{{individual}}}}} should be placed in relevant topic categories{{#if:{{{topic|}}}|, such as :Category:{{{topic}}}}}.}}{{Category other|Category:Set categories}}

| set-and-topic = {{Show|20px Set-and-topic category 20px|This category contains a set of pages in a particular group, as well as topics related to the set.}}{{Category other|Category:Set categories}}

| topic = {{Show|20px Topic category|This category contains pages related to a particular topic.}}

| tracking = {{Show|20px Tracking category|This category maintains a set of pages tagged with a particular template. Pages are automatically added to the category or one of its subcategories. {{#ifeq:{{{hidden}}}|no|The category is not hidden on its member pages.|The category is hidden on its member pages, unless the appropriate user preference is set. __HIDDENCAT__}}}}{{Category other|Category:Tracking categories}}

| universal = {{Show|20px Universal category|This tracking category maintains a complete set of all pages within the related category tree. Pages are added to the category automatically. The category is hidden on its member pages, unless the appropriate user preference is set.}} __HIDDENCAT__

| {{Error|This category does not have a type!}}

}}

{{#ifeq:{{{container}}}|yes|{{Show|20px Container category|This category should only contain subcategories.}}{{Category other|Category:Container categories}}|{{#ifeq:{{{type}}}|double|{{Show|20px Article and category category 20px|This category contains articles and categories that are not subcategories.}}|{{#switch:{{{contents}}}

| articles = {{Show|20px Article category|This category should only contain articles.}}

| audio = {{Show|20px Audio category|This is a category of audio files.}}

| categories = {{Show|20px Category category|This category contains categories that are not subcategories.}}

| disambiguation = {{Show|20px Disambiguation page category|This is a category of disambiguation pages}}

| help = {{Show|20px Help category|This is a category of help pages.}}

| images = {{Show|20px Image category|This is a category of images.}}

| lists = {{Show|20px List category|This is a category of lists.}}

| portals = {{Show|20px Portal category|This is a category of portals.}}

| project = {{Show|20px Project page category|This category contains pages relating to the administration of Wikipedia.}}

| redirects = {{Show|20px Redirect category|This category contains redirects{{#if:{{{from|}}}| from {{{from}}}}}{{#if:{{{to|}}}| to {{{to}}}}}.
Do not substitute redirect templates. See Wikipedia:WikiProject Redirect/Style guide for more details on layout.
See Wikipedia:Template messages/Redirect pages for a list of redirect templates.
}}{{Category other|Category:All redirect categories}}

| stubs = {{Show|20px Stub category|This is a category of stubs.}}

| templates = {{Show|20px Template category|This is a category of templates.}}

| users = {{Show|20px User page category|This is a category of Wikipedia users.}}

| variety = {{Show|20px Variety category|This category contains a variety of different kinds of pages.}}

| {{Error|The contents of this category are not defined!}}

}}

}}}}}}{{Single namespace|category}}

{{Documentation}}