Difference between revisions of "Template:Category header"
(Created page with "{{Cmbox | imageright = {{#if:{{{shortcut|{{{shortcut1|}}}}}}|{{Ombox/shortcut|{{{shortcut|{{{shortcut1|}}}}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}...") |
|||
Line 1: | Line 1: | ||
{{Cmbox | {{Cmbox | ||
| imageright = {{#if:{{{shortcut|{{{shortcut1|}}}}}}|{{Ombox/shortcut|{{{shortcut|{{{shortcut1|}}}}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}}}}}}} | | imageright = {{#if:{{{shortcut|{{{shortcut1|}}}}}}|{{Ombox/shortcut|{{{shortcut|{{{shortcut1|}}}}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}}}}}}} | ||
− | | text = <center>This [[Help:Category|category]] contains {{#ifeq:{{{container}}}|yes||{{#switch:{{{contents}}} | + | | text = <center>This [[w:Help:Category|category]] contains {{#ifeq:{{{container}}}|yes||{{#switch:{{{contents}}} |
| articles = articles | | articles = articles | ||
| audio = audio files | | audio = audio files | ||
Line 12: | Line 12: | ||
| users = users | | users = users | ||
| pages | | pages | ||
− | }} {{#ifeq:{{{subcategories}}}|no||and}}}} {{#ifeq:{{{subcategories}}}|no||[[ | + | }} {{#ifeq:{{{subcategories}}}|no||and}}}} {{#ifeq:{{{subcategories}}}|no||[[w:Categorization#Subcategorization|subcategories]] {{#ifeq:{{{class}}}|admin|of {{#switch:{{{contents}}} |
| articles = articles | | articles = articles | ||
| audio = audio files | | audio = audio files | ||
Line 30: | Line 30: | ||
{{#switch:{{{class}}} | {{#switch:{{{class}}} | ||
− | | admin = {{Show|[[File:Wikipedia-logo.png|20px]] [[ | + | | admin = {{Show|[[w:File:Wikipedia-logo.png|20px]] [[w:Categorization#Administration category|Administration category]]|This category is part of the administration of TZMWiki and is not part of the knowledge-base. It contains pages that are not [[w:What is an article?|articles]] or it groups articles by status rather than content.}} |
− | | content = {{Show|[[File:Wiki puzzle.svg|20px]] [[ | + | | content = {{Show|[[w:File:Wiki puzzle.svg|20px]] [[w:Categorization#Content category|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|[[File:Wikipedia svg logo-en.svg|20px]] [[ | + | | contents = {{Show|[[w:File:Wikipedia svg logo-en.svg|20px]] [[w:Categorization#Contents category|Contents category]]|This category is a TZMWiki contents page. It is {{#ifeq:{{FULLPAGENAME}}|Category:Contents|the highest-level category|one of the highest-level categories}}.}} |
| {{Error|This category is unclassified!}} | | {{Error|This category is unclassified!}} | ||
}} | }} | ||
{{#switch:{{{type}}} | {{#switch:{{{type}}} | ||
− | | double = {{Show|[[File:Double-arrow.svg|20px]] [[ | + | | double = {{Show|[[File:Double-arrow.svg|20px]] [[w:Categorization#Double category|Double category]]|This category contains a [[w:Categorization#Set category|set]] of articles and their corresponding [[w:Categorization#Topic category|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 [[w:Categorization#Topic category|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|[[File:Venn0001.svg|20px]] [[ | + | | intermediate = {{Show|[[File:Venn0001.svg|20px]] [[w:Categorization#Intermediate category|Intermediate category]]|This category serves as a cross-over point between two category trees. It should only contain categories.}} |
− | | set = {{Show|[[File:Easter-Eggs no background.gif|20px]] [[ | + | | set = {{Show|[[File:Easter-Eggs no background.gif|20px]] [[w:Categorization#Set category|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 [[w:Categorization#Topic category|topic categories]]{{#if:{{{topic|}}}|, such as [[:Category:{{{topic}}}]]}}.}}{{Category other|[[Category:Set categories]]}} |
− | | set-and-topic = {{Show|[[File:Easter-Eggs no background.gif|20px]] [[ | + | | set-and-topic = {{Show|[[File:Easter-Eggs no background.gif|20px]] [[w:Categorization#Set-and-topic category|Set-and-topic category]] [[File:Big Book blue.svg|20px]]|This category contains a [[w:Categorization#Set category|set]] of pages in a particular group, as well as [[w:Categorization#Topic category|topics]] related to the set.}}{{Category other|[[Category:Set categories]]}} |
− | | topic = {{Show|[[File:Big Book blue.svg|20px]] [[ | + | | topic = {{Show|[[File:Big Book blue.svg|20px]] [[w:Categorization#Topic category|Topic category]]|This category contains pages related to a particular topic.}} |
− | | tracking = {{Show|[[File:Magnifying glass 01.svg|20px]] [[ | + | | tracking = {{Show|[[File:Magnifying glass 01.svg|20px]] [[w:Categorization#Tracking category|Tracking category]]|This category maintains a [[w:Categorization#Set category|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 [[w:Categorization#Hidden category|hidden]] on its member pages.|The category is [[w:Categorization#Hidden category|hidden]] on its member pages, unless the appropriate [[Special:Preferences|user preference]] is set. __HIDDENCAT__}}}}{{Category other|[[Category:Tracking categories]]}} |
− | | universal = {{Show|[[File:Globe.svg|20px]] [[ | + | | universal = {{Show|[[File:Globe.svg|20px]] [[w:Categorization#Universal category|Universal category]]|This [[w:Categorization#Tracking category|tracking category]] maintains a complete [[w:Categorization#Set category|set]] of all pages within the related category tree. Pages are added to the category automatically. The category is [[w:Categorization#Hidden category|hidden]] on its member pages, unless the appropriate [[Special:Preferences|user preference]] is set.}} __HIDDENCAT__ |
| {{Error|This category does not have a type!}} | | {{Error|This category does not have a type!}} | ||
}} | }} | ||
− | {{#ifeq:{{{container}}}|yes|{{Show|[[File:Wood Box.jpg|20px]] [[ | + | {{#ifeq:{{{container}}}|yes|{{Show|[[w:File:Wood Box.jpg|20px]] [[w:Categorization#Container category|Container category]]|This category should only contain subcategories.}}{{Category other|[[Category:Container categories]]}}|{{#ifeq:{{{type}}}|double|{{Show|[[File:Article.svg|20px]] [[w:Categorization#Article category|Article]] and [[w:Categorization#Category category|category]] category [[File:Sub-arrows 2.svg|20px]]|This category contains [[w:What is an article?|articles]] and categories that are not subcategories.}}|{{#switch:{{{contents}}} |
− | | articles = {{Show|[[File:Article.svg|20px]] [[ | + | | articles = {{Show|[[w:File:Article.svg|20px]] [[w:Categorization#Article category|Article category]]|This category should only contain [[w:What is an article?|articles]].}} |
− | | audio = {{Show|[[File:Sound-icon.svg|20px]] [[ | + | | audio = {{Show|[[w:File:Sound-icon.svg|20px]] [[w:Categorization#Audio category|Audio category]]|This is a category of [[w:Creation and usage of media files#Audio|audio files]].}} |
− | | categories = {{Show|[[File:Sub-arrows 2.svg|20px]] [[ | + | | categories = {{Show|[[w:File:Sub-arrows 2.svg|20px]] [[w:Categorization#Category category|Category category]]|This category contains categories that are not subcategories.}} |
− | | disambiguation = {{Show|[[File:Disambiguation.svg|20px]] [[ | + | | disambiguation = {{Show|[[w:File:Disambiguation.svg|20px]] [[w:Categorization#Disambiguation page category|Disambiguation page category]]|This is a category of [[w:Disambiguation|disambiguation]] pages}} |
− | | help = {{Show|[[File:Nuvola apps filetypes.svg|20px]] [[ | + | | help = {{Show|[[w:File:Nuvola apps filetypes.svg|20px]] [[w:Categorization#Help category|Help category]]|This is a category of [[Help:Contents|help]] pages.}} |
− | | images = {{Show|[[File:Example.png|20px]] [[ | + | | images = {{Show|[[w:File:Example.png|20px]] [[w:Categorization#Image category|Image category]]|This is a category of [[w:Images|images]].}} |
− | | lists = {{Show|[[File:List.svg|20px]] [[ | + | | lists = {{Show|[[w:File:List.svg|20px]] [[w:Categorization#List category|List category]]|This is a category of [[w:Manual of Style/Lists|lists]].}} |
− | | portals = {{Show|[[File:Portal icon.svg|20px]] [[ | + | | portals = {{Show|[[w:File:Portal icon.svg|20px]] [[w:Categorization#Portal category|Portal category]]|This is a category of [[w:Portal|portals]].}} |
− | | project = {{Show|[[File:Namespace Wikipedia.svg|20px]] [[ | + | | project = {{Show|[[w:File:Namespace Wikipedia.svg|20px]] [[w:Categorization#Project page category|Project page category]]|This category contains pages relating to the administration of TZMWiki.}} |
− | | redirects = {{Show|[[File:Redirect arrow.svg|20px]] [[ | + | | redirects = {{Show|[[w:File:Redirect arrow.svg|20px]] [[w:Categorization#Redirect category|Redirect category]]|This category contains [[w:Redirect|redirects]]{{#if:{{{from|}}}| from {{{from}}}}}{{#if:{{{to|}}}| to {{{to}}}}}.<br><small>Do not [[w:Substitution|substitute]] redirect templates. See [[w:WikiProject Redirect/Style guide]] for more details on layout.<br/>See [[w:Template messages/Redirect pages]] for a list of redirect templates.</small>}}{{Category other|[[Category:All redirect categories]]}} |
− | | stubs = {{Show|[[File:Stub W.svg|20px]] [[ | + | | stubs = {{Show|[[w:File:Stub W.svg|20px]] [[w:Categorization#Stub category|Stub category]]|This is a category of [[w:Stub|stubs]].}} |
− | | templates = {{Show|[[File:Curly Brackets.svg|20px]] [[ | + | | templates = {{Show|[[File:Curly Brackets.svg|20px]] [[w:Categorization#Template category|Template category]]|This is a category of [[Help:Template|templates]].}} |
− | | users = {{Show|[[File:User.svg|20px]] [[ | + | | users = {{Show|[[w:File:User.svg|20px]] [[w:Categorization#User page category|User page category]]|This is a category of [[w:Wikipedians|TZMWiki users]].}} |
− | | variety = {{Show|[[File:Psychedelic dingbats.png|20px]] [[ | + | | variety = {{Show|[[w:File:Psychedelic dingbats.png|20px]] [[w:Categorization#Variety category|Variety category]]|This category contains a variety of different kinds of pages.}} |
| {{Error|The contents of this category are not defined!}} | | {{Error|The contents of this category are not defined!}} | ||
}} | }} | ||
}}}}}}{{Single namespace|category}} | }}}}}}{{Single namespace|category}} |
Latest revision as of 16:14, 22 October 2012
| |
{{#if: | {{{image}}} | [[File:{{#switch: | speedy = Cmbox deletion.png | delete = Cmbox deletion.png | content = Cmbox content.png | style = Edit-clear.svg | move = Cmbox move.png | protection = Cmbox protection.png | notice | #default = Cmbox notice.png }}|40x40px|link=|alt=]]}} |
}}
| 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
}} {{#if:|{{{first}}}|{{#if:|[[{{{name}}}]]|Category header}}}}{{#ifeq:{{{contents}}}|categories||{{#ifeq:{{{contents}}}|container||{{#ifeq:{{{contents}}}|lists||{{#ifeq:{{{lists}}}|no||{{#ifeq:{{{type}}}|double|, as well as lists of {{#if:|{{{name}}}|Category header}}|{{#ifeq:{{{type}}}|set|, as well as lists of {{#if:|{{{name}}}|Category header}}|{{#ifeq:{{{type}}}|set-and-topic|, as well as lists of {{#if:|{{{name}}}|Category header}}}}}}}}}}}}}}}}}}. {{#ifeq:{{{type}}}|double|{{#if:|For topics related to {{#if:|{{{name}}}|Category header}}, see [[:Category:{{{topic}}}]].}}|{{#ifeq:{{{type}}}|set|{{#if:|For topics related to {{#if:|{{{name}}}|Category header}}, see [[:Category:{{{topic}}}]].}}}}}}{{#switch:{{{class}}} | admin =This category is part of the administration of TZMWiki and is not part of the knowledge-base. It contains pages that are not articles or it groups articles by status rather than content. 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. This category is a TZMWiki contents page. It is {{#ifeq:Template:Category header|Category:Contents|the highest-level category|one of the highest-level categories}}. | <{{#switch:{{{tag}}} |p=p |span=span |div=div |#default=strong }} class="error">This category is unclassified!</{{#switch:{{{tag}}} |p=p |span=span |div=div |#default=strong }}> }} {{#switch:{{{type}}} | double =This category contains a set of articles and their corresponding topic categories. It should only contain individual {{#if:|{{{name}}}|Category header}} and lists of {{#if:|{{{name}}}|Category header}}. Topics related to the set should be placed in relevant topic categories{{#if:|, such as [[:Category:{{{topic}}}]]}}. {{#if:|Topics related to an individual {{{individual}}} should be placed in the respective topic category.}} {{#if: | {{{demospace}}} | {{#ifeq:Template|Category | category | other }} }} | category = | other | #default = }} | intermediate =This category serves as a cross-over point between two category trees. It should only contain categories. This category contains a set of pages in a particular group. It should only contain individual {{#if:|{{{name}}}|Category header}}, as well as subcategories and lists of {{#if:|{{{name}}}|Category header}}. Topics related to the set {{#if:|or an individual {{{individual}}}}} should be placed in relevant topic categories{{#if:|, such as [[:Category:{{{topic}}}]]}}. {{#if: | {{{demospace}}} | {{#ifeq:Template|Category | category | other }} }} | category = | other | #default = }} | set-and-topic ={{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Category | category | other }} }} | category = | other | #default = }} | topic =This category contains pages related to a particular topic. 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. }} {{#if: | {{{demospace}}} | {{#ifeq:Template|Category | category | other }} }} | category = | other | #default = }} | universal =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. | <{{#switch:{{{tag}}} |p=p |span=span |div=div |#default=strong }} class="error">This category does not have a type!</{{#switch:{{{tag}}} |p=p |span=span |div=div |#default=strong }}> }} {{#ifeq:{{{container}}}|yes|This category should only contain subcategories. {{#if: | {{{demospace}}} | {{#ifeq:Template|Category | category | other }} }} | category = | other | #default = }}|{{#ifeq:{{{type}}}|double|This category contains articles and categories that are not subcategories. This category should only contain articles. This is a category of audio files. This category contains categories that are not subcategories. This is a category of disambiguation pages This is a category of help pages. This is a category of images. This is a category of lists. This is a category of portals. This category contains pages relating to the administration of TZMWiki. This category contains redirects{{#if:| from {{{from}}}}}{{#if:| to {{{to}}}}}. Do not substitute redirect templates. See w:WikiProject Redirect/Style guide for more details on layout. See w:Template messages/Redirect pages for a list of redirect templates. {{#if: | {{{demospace}}} | {{#ifeq:Template|Category | category | other }} }} | category = | other | #default = }} | stubs =This is a category of stubs. This is a category of templates. This is a category of TZMWiki users. This category contains a variety of different kinds of pages. | <{{#switch:{{{tag}}} |p=p |span=span |div=div |#default=strong }} class="error">The contents of this category are not defined!</{{#switch:{{{tag}}} |p=p |span=span |div=div |#default=strong }}> }}}}}} |
{{#if:{{#if:| {{#if: