Wikipedia:Categories

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Categories are pages that are used to group other pages on similar subjects together. This is done to help users find the pages they are looking for, even if they do not know whether it exists or what it is called.

Every page should belong to at least one category. A page may often be in several categories. However, putting a page in too many categories may not be useful.

Uncat template[change | change source]

If you are confused or uncertain about the categories on a page, add {{Uncat}}. The main use of this template is to show that the page needs to have categories added to it. This may mean that it has no categories. It can also be used if the page may be missing categories or be in the wrong category. Users with experience dealing with categories will look at the page and help fix the categories.

Category Tree[change | change source]

Categories are all a part of what is called the Category Tree. Each category is a sub-category, or child, of a more general category, the parent category. The category tree is made up of two main parts. These two parts are Articles and Wikipedia. As the name says, the section on articles deals with all of the articles. The section on Wikipedia is for all pages which are not articles. These include pages in the Wikipedia: namespace and templates.

The article categories are separated into nine major groups: Everyday life, Geography, History, Knowledge, Language, Literature, People, Religion, and Science. Each of these groups is separated into smaller groups or sub-categories which have even smaller groups inside them. The main categories are said to be at the top of the Category Tree and each sub-category is one step below them. The farther down the category tree a category is, the more precisely it groups the pages in it.

Putting pages into categories[change | change source]

Pages are put into categories by placing one or more Category tags on the page. Category tags are the wiki markup used by the Wikimedia software to put pages in categories. The format for a Category tag is:

[[Category:Name of the category|sort key]]

For information on the Sort key, see the section below.

Choosing the correct category[change | change source]

It is usually best to put a page in the categories which are most specific to it, rather than in all the categories which might be related. Pages should be placed in the lowest level of the category tree that applies to them. Pages should never be placed in both the parent and child categories. They should not be placed in a category and any of the categories above it. This means if a page is placed in a category, it should not be placed in any of the parent categories of that category, or any parent categories of that category's parents, and so on, moving up the category tree. It may be placed in categories in different sections of the category tree, but not in those directly above it.

Example 1

While a Trombone is a musical instrument, it is more specifically a brass instrument. It is better to put the page Trombone into Category:Brass instruments than into Category:Musical instruments.

Because Category:Brass instruments is a sub-category of Category:Musical instruments, Trombone should not be put into both categories. If all the hundreds of types of musical instruments are put into the parent Category:Musical instruments, that category will get too full to be useful in helping users to find the pages they are looking for, which is the true purpose of the category system. It is easier for the user to browse Category:Musical instruments and see several sub-categories such as Category:Brass instruments, Category:Woodwind instruments, etc. This lets the user select the one they want and browse the smaller number of pages listed there. It takes one more click, but less time than searching a very large category.

Example 2

The Rocky Mountains are a group of mountains in North America. More precisely, they are mountains that are in both the United States and Canada. Because of this, they are placed in Category:Mountains in the United States and Category:Mountains in Canada. They are not placed in Category:Mountains because Category:Mountains in the United States and Category:Mountains in Canada are both sub-categories of Category:Mountains. They are also not put in Category:Geography, because Category:Mountains is a sub-category of that.

What if the correct category does not exist?[change | change source]

Many times the most correct category may not exist yet. When this happens, a new category may be created (see: Creating new categories before doing this) or the article is placed in the lowest existing category that applies to it. This may require using more than one category.

Example

Circus Maximus is a building located in Rome, Italy. The most correct category for it would be Category:Buildings and structures in Rome. Because this category does not exist yet, the article would be placed in the most correct categories that do exist: Category:Buildings and structures in Italy and Category:Rome. When the correct category is created, the page can then be moved into it.

Placement of Category tags[change | change source]

Categories should be placed near the end of an article. They should be after the body of the article and any templates it uses but before the links to the page on Wikipedias in other languages. Categories should be listed in order of importance. The reasons for notability should be listed first and minor categories such as birth and death (or the {{BD}} template) should be listed last.

Creating new categories[change | change source]

Creating new categories can be a difficult thing at times. Many things need to be considered before a new category is created.

Is there a need for the new category?[change | change source]

Because categories are a way to group together similar articles, there is no need to create a new category for just one or two articles. There should be a minimum of three articles that would fit into the category before a new category is created. Sub-categories should be considered when a category starts to get too large to easily find an article in it. There is no set number of articles to require this, but if a category has more than twenty articles, it is usually a good time to think about dividing it into smaller sub-categories.

What should the category be called?[change | change source]

The names of categories should be kept as short as possible but still explain the what the category is for. Category names should not be ambiguous. If a possible name for the category has more than one meaning, it is probably better to find a different name or change it in a way that only has one meaning. For example, Georgia has two meanings. It is the name of a country in eastern Europe and a state in the United States. If the category was named Category:Georgia, it could mean either of them. This could cause people to put the wrong articles in the category. Category:Georgia (country) only has one meaning: the country in Europe. It is a better name for the category.

Naming conventions should also be followed when naming new categories. Similar categories should have similar names. This makes it easier to know which category to use and helps stop people from creating a new category that is the same as one that already exists. It is best to look at what categories you will be putting the new category into and see how other categories there are named. This should give you a basic idea of what form the name should be in.

There are several basic forms of names used in categories:

Form Example Uses
in country Cities in Italy In is used when dealing with things located in a location such as a country. Physical objects which do not leave the area use this format. Examples: Cites and Mountains. Because of the number of categories for Rivers already created, Rivers use the "of" country form.
of country Politics of Germany Of is used thing from a country or belonging to a country. These may or may not be physical thing. In some cases, of is used for people. This is most often when the adjective to describe the people is difficult to use or can mean different things. An example is Category:People of the Philippines.
by country Rivers by country This form is used to group several subcategories together. It is used to group categories dealing with different countries that do not deal with people.
by nationality Singers by nationality This form is used in the same way as by country, but it is used for categories dealing with people.

What categories should the new category be in?[change | change source]

As with every other type of page, each category should be categorized. Most times, the name of the new category will show what category or categories it belongs in.

For example, Category:Lakes in Russia should be in Category:Lakes and Category:Russia. This is a general rule. One thing that causes problems with this is the subcategories of the categories. In this example:

It is important to look at a category before putting a new category in it to make certain it is in all the correct categories it belongs in.

What else do I need to do?[change | change source]

As with all pages, Categories should have a short statement that says what they are about. If there is an article that defines the category, the template {{catmore|Article name}} can be used to show the main article for the category. If no article exists, you should write one or two sentences to explain the category. Interwiki links to the same categories on Wikipedias in other languages should also be added to the page.

Sorting[change | change source]

When placing pages in categories, it is important that they be sorted correctly. This makes it easier to locate a page in the category. Sorting of pages in a category is done by use of a sort key. A sort key is a term or phrase that is used to sort pages in categories. Pages are sorted alpha-numerically by their sort key. If no sort key is used, the page name of the page is used as the default sort key. {{DEFAULTSORT:}} can be used to change the default sort key for the entire page. Sort keys may be given to each category tag individually. A sort key is added to a category by using a pipe character ( "|" ) followed by how the article should be sorted. All characters after the pipe character are used as part of the sort. This includes spaces and special characters. Categories are sorted first by special characters, then numbers, then capital letters and finally lower case letters.

Examples

(Using an article named "River Thames")

wiki-code effect
[[Category:Rivers in England]] This category has no sort key so it would be sorted by its page title under the letter R - River Thames
[[Category:Rivers in England |Thames, River]] This article would be sorted under the letter T - Thames, River
{{DEFAULTSORT:Thames, River}}
[[Category:Rivers in England]]
The default sort key for the article is changed from its title, River Thames, to Thames, River. This causes the article to be sorted under T.
[[Category:Rivers in England |Thames, River]]
[[Category:London]]
Sort keys can be mixed on a page. Here, the article is placed under T in Category:Rivers in England and under R in Category:London.
{{DEFAULTSORT:Thames, River}}
[[Category:Rivers in England]]
[[Category:London |River Thames]]
The default sort key for the article is changed from its title, River Thames, to Thames, River. Because Category:Rivers in England does not have a sort key, it uses the one given in the {{DEFAULTSORT}} and gets sorted under T. Category:London uses the sort key of the category tag and sorts it under R.

Special sorting[change | change source]

Generally, pages are sorted by their title. There are cases when this is usually done. Most of these are when the first word of the title is not the most important thing in the title. Pages that start with the word The, the word A, or the word An (for example The Doors, A Tale of Two Cities, An Inconvenient Truth) should not be sorted by title. Another common case are lists, for example List of German composers. The sort key should be used to put either remove these words or place them at the end.

Page title Sort key
The Sound of Music Sound of Music, The
A Tale of Two Cities Tale of Two Cities, A
An Inconvenient Truth Inconvenient Truth, An
List of German composers German composers, List of

Different ways of sorting are also used when the article name is a very common term in the category it is used in. For example, in Category: Cities in the United States, most of the subcategories have very similar names. There are many sub-categories that use the name Cities in and the name of the state. To make it easier to locate one subcategory quickly, the subcategories are listed by the name of the state rather than their title. This is also common in categories based on nationality. For example Category:German entertainers is sorted in the Category:German people under the sort key Entertainers because most of the other subcategories will also be using the term German in their title.

Names of persons

When dealing with articles on people, the article should be sorted by the person's family name. See Sorting of people for more information.

Special character sort keys

In certain cases, articles are sorted using a sort key that is entirely different from their title. This is common when the article is either the main article for the category or defines the category in some way. For example, in Category:U.S. states, the article States of the United States is the main article. It defines what the category is about. The article List of U.S states would also define the category, but in a different way. These articles are sorted using special characters which make them be sorted at the top of the list articles in a category. Special character sort keys are used in the same way as regular sort keys. The special character is the first character used after the pipe character. Special character sort keys are sorted by the entire sort key. If more than one article in a category uses the special character, they are sorted together, but do not sort alphabetically unless the rest of the title is used in the sort key. For example, [[Category:Rivers in England| ]] is sorted with a sort key that is a Space bar character. If another page uses the same category tag, they are both sorted together, but may not be in alphabetic order. If [[Category:Rivers in England|*River Thames]] were used, the article would be sorted under the asterisk character and if any other articles were sorted under the asterisk in this same way ([[Category:Rivers in England|*Rivers in London, List of]]) they would all be sorted under the asterisk and then sorted alphabetically by the rest of the sort key.

Character Use
Space The space character is the first character when sorted. This character is used for the main article.
 * The asterisk is used to help define the category. These are usually lists of articles that belong in the category.
  ! The exclamation point is used for articles that are very important, but not defining the category. This character is rarely used.
  β Greek letter beta; used for Wikipedia books
  Σ Greek letter sigma; used for putting stub categories into other categories
  τ Greek letter tau (lower case); used for templates and template categories
Mixing sort keys

More than one sort key may be used on a page. This is common when the page title is the correct way to sort for one category, but in other categories it needs to be sorted a different way. For example Category:German entertainers would be sorted as Entertainers in Category:German people, but be sorted as German entertainers in Category:Entertainers.

Categorizing people[change | change source]

When categorizing people, it is usual to have at least four categories. These categories are the year the person was born, the year they died, their nationality, and their reason for being notable. Each article on a person should have the information for these categories. This information is likely to be in the first sentence of an article:

Joe Smuckateli (1846 - 2004) was a German musician, politician and physicist.
Year born In the example: Category:1846 births
If the year of birth is not known, Category:Date of birth unknown is used. With articles about people who lived a long time ago, it is not unusual for information about their birth to not be known. The year of their birth may only be known to be in a certain decade or century. In these cases, the person is listed in the category for births of the decade or century. For example category:1670s births or Category:3rd century births.
Year died In the example: Category:2004 deaths
If the person is still alive, Category:Living people is used. If their year of death is not known, Category:Date of death unknown is used. If their date of death is only known to be within a certain decade or century, they are categorized in the deaths category for that decade or century. For example Category:1940s deaths or Category:14th century deaths.
Nationality In the example: Category:German people
A person can be listed in more than one category based on nationality. If the person is of a nationality on country, has a citizenship a different country, and their recent ancestry (they are a child of immigrant parents) for another country, they are usually categorized as a member of each group of people listed.
Reason for notability / Occupation In the example: Category:Musicians, Category:Politicians and Category:Physicists
It is common for a person to fit into more than one category based on what they are known for. A person should be listed in each category he qualifies for. Each article should have at least one category of this type but there are articles when this does not apply. One example of when no notability category is used is for victims of a crime who are notable because of the large amount of media about the crime. Azaria Chamberlain is an example of this.

Notability and nationality[change | change source]

In most cases, nationality and notability will combine in a single category (German musicians, German politicians, German physicists). This is an exception to the minimum of four categories because it combines two of the categories needed into one category.

When creating combined categories such as these, it is important that the category itself is a sub-category of each of its main categories. For example, Category:German politicians is a sub-category of both category:German people and Category:Politicians. Because of this, a person who is put into Category:German politicians is categorized as being both a German person and a politician.

Organizations[change | change source]

When dealing with people who are a part of an organization, they should be included in the category for that organization if a category exists for it (see: Creating new categories). Organizations can include companies (Nintendo, Microsoft, Disney), Bands (U2, The Beatles, Kiss), political leaders (Presidents of the United States, Kings and Queens of the United Kingdom, Prime Ministers of Australia) and other groups of people.

If there are enough article for people in a company, they should be combined into a sub-category.

Sorting of people[change | change source]

When a person is added to a category, their name needs to be sorted so that it is listed in a way that is easy to find. This is done by adding a Sort key to the category. For most people, their name is sorted as Last name, First name. In the example above, this would be Smuckateli, Joe. In this way, they are listed in the category alphabetically by their last name. This is done in one of two ways.

Default sorting

The tag {{DEFAULTSORT:}} can be used. It will give the same sort key to every category tag on the page that does not have a sort key of its own. To use the Default sort, the line {{DEFAULTSORT:Sort key}} is used. Sort key is replaced with how the articles is to be sorted. For example {{DEFAULTSORT:Smuckateli, Joe}}.

Individual sorting

Each category tag may be given its own sort key. This is done by adding a pipe character ( "|" ) and then information after the category name. For example [[Category:German musicians |Smuckateli, Joe]] [[Category:Wikipedia]]. If a space is used after the pipe character, the category will be sorted using that space. This will place the article at the top of list in the category. This should not be done with people articles.

Other cases

If no sort key is used, the article will be sorted using its title. People whose articles only have one name (Madonna), or if the article title is how it should be sorted (Elizabeth II of the United Kingdom) do not need to have a sort key used. Articles about people with eastern Asian names need extra attention when sorting. Many eastern Asian names have the surname or family name first and the given name second. These names do not need to be sorted because when they are sorted by the article title, they are being sorted by the surname. This is not always true, some Asian people use a Western style of naming and need to have their names sorted.

Template BD[change | change source]

The template {{BD}} (Born/Died) is useful for dealing with categories for birth and death. See its page for help with using it. It also includes a how the person is sorted in the category. This means that the DEFAULTSORT template mentioned above does not need to be used. This causes less work because this information does not need to be added to all of the categories used in the article.

Related pages[change | change source]