Class | Type | Contents |
---|---|---|
This category is unclassified! | This category does not have a type! | The contents of this category is not defined! |
This is the sandbox page for User:Mclay1/Category banner (diff). See also the companion subpage for test cases. |
This template should not be substituted. |
Usage
editThis template should be placed at the top of a category page. It produces an 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 banner | name = | first = | subcategories = | lists = | class = | type = | topic = | individual = | template = | parameter = | variant = | 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.
- 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.
- Examples: Category:Individual animals:
individual animals
; Category:Harry Potter films:''Harry Potter'' films
- Examples: Category:Individual animals:
- 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.
- Examples: Category:People from Yorkshire:
[[people]] from [[Yorkshire]]
; Category:The Beatles members:[[List of line-ups of bands featuring members of The Beatles|members of The Beatles]]
- Examples: Category:People from Yorkshire:
- subcategories: Enter
no
if the category does not contain any subcategories and is unlikely to in the future. - lists: For double categories, set categories and set-and-topic categories (see type), enter
no
if 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.
- Example: Category:Presidents of the United States:
Presidency of the United States
- Example: Category:Presidents of the United States:
- 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 (e.g. Category:Songs written by Buddy Holly).
- Example: Category:The Beatles members:
Beatle
- Example: Category:The Beatles members:
- 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.
- Example: Category:Good articles:
Good article
- Example: Category:Good articles:
- parameter: For tracking categories (see type), enter the name of the required parameter of the main template that populates the category if necessary.
- Example: Category:Use British English from August 2010:
date=August 2010
- Example: Category:Use British English from August 2010:
- variant: For tracking categories (see type), enter
yes
if there is more than one template that populates the category. - contents: This parameter is unnecessary for double categories (see type). Enter the kind of contents contained in the category (only 1):
- articles For categories containing articles.
- categories: For categories containing categories that are not subcategories.
- container: For categories containing only 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.
- sound: For categories containing sound files.
- 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:
- same line: For redirect categories (see contents), enter
no
if the template that populates the category is not used in the usual way (see Wikipedia:WikiProject Redirect/Style guide).
Other category-header templates
edit
This is the template sandbox page for User:Mclay1/Category banner (diff). See also the companion subpage for test cases. |