Template:Category header: Difference between revisions
Appearance
imported>Deadfire m updating |
Tungstenchan (talk | contribs) m Text replacement - "BattleTechWiki" to "BattleIntelligence" |
||
| Line 11: | Line 11: | ||
| users = users | | users = users | ||
| pages | | pages | ||
}} {{#ifeq:{{{subcategories}}}|no||and}}}} {{#ifeq:{{{subcategories}}}|no||[[ | }} {{#ifeq:{{{subcategories}}}|no||and}}}} {{#ifeq:{{{subcategories}}}|no||[[BattleIntelligence:Categorization#Subcategorization|subcategories]] {{#ifeq:{{{class}}}|admin|of {{#switch:{{{contents}}} | ||
| articles = articles | | articles = articles | ||
| categories = categories | | categories = categories | ||
| Line 28: | Line 28: | ||
{{#switch:{{{class}}} | {{#switch:{{{class}}} | ||
| admin = {{Show|[[File:Sarna-logo-nobg-150x150.png|20px]] [[ | | admin = {{Show|[[File:Sarna-logo-nobg-150x150.png|20px]] [[BattleIntelligence:Categorization#BattleIntelligence administrative categories|Administrative category]]|This category is part of the administration of BattleIntelligence and is not part of the encyclopaedia. It contains pages that are not [[BattleIntelligence:What is an article?|articles]] or it groups articles by status rather than content.}} | ||
| content = {{Show|[[File:Wiki puzzle.svg|20px]] [[ | | content = {{Show|[[File:Wiki puzzle.svg|20px]] [[BattleIntelligence: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: | | contents = {{Show|[[File:BattleIntelligence svg logo-en.svg|20px]] [[BattleIntelligence:Categorization#Contents category|Contents category]]|This category is a BattleIntelligence 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]] [[BattleIntelligence:Categorization#Double category|Double category]]|This category contains a [[BattleIntelligence:Categorization#Set category|set]] of articles and their corresponding [[BattleIntelligence: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 [[BattleIntelligence: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]] [[BattleIntelligence: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]] [[BattleIntelligence: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 [[BattleIntelligence: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]] [[BattleIntelligence:Categorization#Set-and-topic category|Set-and-topic category]] [[File:Big Book blue.svg|20px]]|This category contains a [[BattleIntelligence:Categorization#Set category|set]] of pages in a particular group, as well as [[BattleIntelligence: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]] [[BattleIntelligence:Categorization#Topic category|Topic category]]|This category contains pages related to a particular topic.}} | ||
| tracking = {{Show|[[File:Magnifying glass 01.svg|20px]] Tracking category|This category maintains a [[ | | tracking = {{Show|[[File:Magnifying glass 01.svg|20px]] Tracking category|This category maintains a [[BattleIntelligence: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 [[BattleIntelligence:Categorization#Hidden category|hidden]] on its member pages.|The category is [[BattleIntelligence: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]] [[BattleIntelligence:Categorization#Universal category|Universal category]]|This tracking category maintains a complete [[BattleIntelligence:Categorization#Set category|set]] of all pages within the related category tree. Pages are added to the category automatically. The category is [[BattleIntelligence: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|[[File:Wood Box.jpg|20px]] [[BattleIntelligence:Categorization#Container category|Container category]]|This category should only contain subcategories.}}{{Category other|[[Category:Container categories]]}}|{{#ifeq:{{{type}}}|double|{{Show|[[File:Article.svg|20px]] [[BattleIntelligence:Categorization#Article category|Article]] and [[BattleIntelligence:Categorization#Category category|category]] category [[File:Sub-arrows 2.svg|20px]]|This category contains [[BattleIntelligence:What is an article?|articles]] and categories that are not subcategories.}}|{{#switch:{{{contents}}} | ||
| articles = {{Show|[[File:Article.svg|20px]] [[ | | articles = {{Show|[[File:Article.svg|20px]] [[BattleIntelligence:Categorization#Article category|Article category]]|This category should only contain [[BattleIntelligence:What is an article?|articles]].}} | ||
| categories = {{Show|[[File:Sub-arrows 2.svg|20px]] [[ | | categories = {{Show|[[File:Sub-arrows 2.svg|20px]] [[BattleIntelligence:Categorization#Category category|Category category]]|This category contains categories that are not subcategories.}} | ||
| disambiguation = {{Show|[[File:Disambiguation.svg|20px]] [[ | | disambiguation = {{Show|[[File:Disambiguation.svg|20px]] [[BattleIntelligence:Categorization#Disambiguation page category|Disambiguation page category]]|This is a category of [[BattleIntelligence:Disambiguation|disambiguation]] pages}} | ||
| help = {{Show|[[File:Nuvola apps filetypes.svg|20px]] [[ | | help = {{Show|[[File:Nuvola apps filetypes.svg|20px]] [[BattleIntelligence:Categorization#Help category|Help category]]|This is a category of [[Help:Contents|help]] pages.}} | ||
| images = {{Show|[[File:Example.png|20px]] [[ | | images = {{Show|[[File:Example.png|20px]] [[BattleIntelligence:Categorization#Image category|Image category]]|This is a category of [[BattleIntelligence:Images|images]].}} | ||
| lists = {{Show|[[File:List.svg|20px]] [[ | | lists = {{Show|[[File:List.svg|20px]] [[BattleIntelligence:Categorization#List category|List category]]|This is a category of [[BattleIntelligence:Manual of Style/Lists|lists]].}} | ||
| portals = {{Show|[[File:Portal icon.svg|20px]] [[ | | portals = {{Show|[[File:Portal icon.svg|20px]] [[BattleIntelligence:Categorization#Portal category|Portal category]]|This is a category of [[BattleIntelligence:Portal|portals]].}} | ||
| project = {{Show|[[File:Namespace | | project = {{Show|[[File:Namespace BattleIntelligence.svg|20px]] [[BattleIntelligence:Categorization#Project page category|Project page category]]|This category contains pages relating to the administration of BattleIntelligence.}} | ||
| redirects = {{Show|[[File:Redirect arrow.svg|20px]] [[ | | redirects = {{Show|[[File:Redirect arrow.svg|20px]] [[BattleIntelligence:Categorization#Redirect category|Redirect category]]|This category contains [[BattleIntelligence:Redirect|redirects]]{{#if:{{{from|}}}| from {{{from}}}}}{{#if:{{{to|}}}| to {{{to}}}}}.<br><small>Do not [[BattleIntelligence:Substitution|substitute]] redirect templates. See [[BattleIntelligence:WikiProject Redirect/Style guide]] for more details on layout.<br/>See [[BattleIntelligence:Template index/Redirect pages]] for a list of redirect templates.</small>}}{{Category other|[[Category:All redirect categories]]}} | ||
| stubs = {{Show|[[File:Stub W.svg|20px]] [[ | | stubs = {{Show|[[File:Stub W.svg|20px]] [[BattleIntelligence:Categorization#Stub category|Stub category]]|This is a category of [[BattleIntelligence:Stub|stubs]].}} | ||
| templates = {{Show|[[File:Curly Brackets.svg|20px]] [[ | | templates = {{Show|[[File:Curly Brackets.svg|20px]] [[BattleIntelligence:Categorization#Template category|Template category]]|This is a category of [[Help:Template|templates]].}} | ||
| users = {{Show|[[File:User.svg|20px]] [[ | | users = {{Show|[[File:User.svg|20px]] [[BattleIntelligence:Categorization#User page category|User page category]]|This is a category of [[BattleIntelligence:BattleIntelligencens|BattleIntelligence users]].}} | ||
| variety = {{Show|[[File:Psychedelic dingbats.png|20px]] [[ | | variety = {{Show|[[File:Psychedelic dingbats.png|20px]] [[BattleIntelligence: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!}} | ||
}} | }} | ||
Latest revision as of 00:07, 1 May 2025
|
This category is unclassified! This category does not have a type! The contents of this category are not defined! |
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
| This template should not be substituted. |
Usage
This template should be placed at the top of a category page. It produces a sentence that briefly explains the purpose of the category and it classifies the category into a number of different kinds of category.
- Parameters
The full list of parameters is:
{{Category header
| shortcut/sc =
| shortcut1/sc1 =
| shortcut2/sc2 =
| shortcut3/sc3 =
| shortcut4/sc4 =
| shortcut5/sc5 =
| name =
| first =
| container =
| subcategories =
| lists =
| class =
| type =
| topic =
| individual =
| template =
| parameter =
| variant =
| hidden =
| contents =
| from =
| to =
}}
Not all parameters should nor can be used together. All the parameters are optional, unless otherwise noted; however, not using them when they should be used may produce a warning or misleading information.
- shortcut: Enter a redirect shortcut (without wikilink) to appear in a shortcut box at the right of the message box.
- shortcut1: Use the numbered shortcut parameters to enter up to five shortcuts.
- name: Enter the name of the category how it should be written in the middle of a sentence. Apart from in tracking categories (see type), the text entered in this parameter will be wiki-linked in the first sentence, unless the first parameter is used. This parameter is unnecessary if the name of the category is already how it should be written in the middle of a sentence or if the first parameter is used in any category other than a double category or set category (see type). This parameter is also unnecessary for tracking categories. If neither this parameter nor the first parameter are used, the page name will be wiki-linked.
- first: Enter a descriptive name for the category, written how it should be written in the middle of a sentence, and attach appropriate wiki-links. This parameter is unnecessary if the wiki-link is identical to the name of the category or the text entered in the name parameter. This parameter is also unnecessary for tracking categories (see type). This parameter can be used to provide the name of the category in a slightly different format for the first time it is mentioned in the category description, or to display the name without a link.
- container: Enter
yesfor categories containing only subcategories. - subcategories: Enter
noif the category does not contain any subcategories and is unlikely to in the future (e.g. Category:All disambiguation pages). - lists: For double categories, set categories and set-and-topic categories (see type), enter
noif the category does not contain any lists and is unlikely to in the future. - class: Enter the name of the category class (only 1):
- admin: For categories that are part of the administration of Wikipedia.
- content: For categories that contain encyclopaedic contents.
- contents: For contents pages at the top of the category tree.
- type: Enter the name of the category type (only 1):
- intermediate: For categories named "X by Y" that only contain subcategories. These categories are always container categories (see contents).
- set: For categories containing a set of group members.
- double: For set categories that also contain the members' corresponding categories.
- tracking: For set categories populated by a template.
- topic: For categories containing pages related to a particular topic.
- set-and-topic: For categories containing both a set and a topic.
- universal: For categories containing all pages in the subcategories of the related category tree.
- topic: For double categories and set categories (see type), enter the name (without the "Category:" prefix) of the corresponding topic category (see type) if applicable. The topic category is often a parent category of the double category or set category.
- individual: For double and set categories (see type), enter the generic name for a member of the set. This parameter is unnecessary if it is unlikely that there will be any topics about any individual members of the set.
- template: For tracking categories (see type), enter the name (without the "Template:" prefix) of the main template that populates the category. This parameter is required for tracking categories and will not work with other category types.
- parameter: For tracking categories (see type), enter the name of the required parameter of the main template that populates the category if necessary.
- variant: For tracking categories (see type), enter
yesif there is more than one template that populates the category. - hidden: For tracking categories (see type), enter
noto not make the category a hidden category. - contents: This parameter is unnecessary for double categories (see type). It is optional for container categories (see container). Enter the kind of contents contained in the category (only 1):
- articles For categories containing article pages.
- categories: For categories containing categories that are not subcategories.
- disambiguation: For categories containing disambiguation pages.
- help: For categories containing pages in the help namespace.
- images: For categories containing image files.
- lists: For categories containing lists.
- portals: For categories containing pages in the portal namespace.
- project: For categories containing pages in the Wikipedia namespace.
- redirects: For categories containing redirects.
- stubs: For categories containing stubs.
- templates: For categories containing pages in the template namespace.
- users: For categories containing pages in the user namespace.
- variety: For tracking categories (see type) containing multiple kinds of pages.
- from: For redirect categories (see contents), enter the kind of pages the redirects are.
- Example: Category:Redirects from misspellings:
misspellings or [[typographical error]]s
- Example: Category:Redirects from misspellings:
- to: For redirect categories (see contents), enter the kind of pages the redirect targets are.
- Example: Category:Redirects from misspellings:
the correct spellings
- Example: Category:Redirects from misspellings: