Wikipedia:Categories
![]() | This page is a guideline on the Simple English Wikipedia. Many editors agree with the ideas on this page. It is a good idea to follow it, but it is not policy. You can change the page as needed, but please use the talk page to make sure that other editors agree with any big changes. |
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
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
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
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
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 of the United States and Category:Mountains of Canada. They are not placed in Category:Mountains because Category:Mountains of the United States and Category:Mountains of 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?
Many times the most correct category may not exist yet. When this happens, a new category may be started (see: Starting 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 started, the page can then be moved into it.
Placement of Category tags
Categories should be placed near the end of an article. They should be after the body of the article and any templates it uses. 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.
Starting new categories
Starting new categories can be a difficult thing at times. Many things need to be considered before a new category is started.
Is there a need for the new category?
Because categories are a way to group together similar articles, there is no need to start 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 started. 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?
The names of categories should be kept as short as possible but still explain 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 starting 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:
What categories should the new category be in?
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 of 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:
- Category:Russia has a sub-category Category:Geography of Russia. Because a lake is a geographical object, the new category should be put into Category:Geography of Russia instead of Category:Russia.
- Category:Lakes has sub-categories for Category:Lakes of Europe, Category:Lakes of Asia and Category:Lakes by country. Since Russia is in both Europe and Asia, sub-categories dealing with it go in categories for both continents. Also, since Russia is a country, it also belongs in Category:Lakes by country.
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?
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 {{cat main|Article name}} can be used to show the main article for the category and {{cat more|Article name}} to show an important one. 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 linked to the page with Wikidata.
Sorting
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 letters.
- Examples
(Using an article named "River Thames")
Special sorting
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.
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 U.S. state 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 of 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 of 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 of England|*Rivers of London, List of]])
they would all be sorted under the asterisk and then sorted alphabetically by the rest of the sort key.
- 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
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.
Notability and nationality
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 starting 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
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: Starting 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
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.
See en:WP:SUR for other special cases.
Template BD
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.
This template should be substituted.
Categorizing by gender
In the past, there have been discussions if people should be categorized by gender. After discussions, the community agreed on the following:
- This is only about the split into male and female; at the moment, we think that non-binary genders are too complex to handle for our category system.
- Gender-related categories should be avoided. - There is little to no extra information in classifying people by gender. Categories such as male politicians/female politicians add little to no information, and should be avoided.
- In some cases, classifying by gender is unavoidable - In these cases, the issue will be discussed, and there will be a vote. The proposed terms are "male", or "female", rather than "men" or "women".
- Categories for awards that only apply to one gender are an exception to the rules above. It is possible to start categories such as "Academy Award winners of best supporting actress", even though no man will ever be given this award.
- The other rules of this guideline apply to the newly-started category.
Voting
Voting on gender-related categories is done in the same way as other votes:
- The page where the vote is to occur should have an archive section, so that the vote can be found in the future.
- If a vote for a split is to occur, and it does not occur on Simple Talk, it should be announced there.
- The vote runs for a week. Minimum acceptable results: two-thirds of the named editors in favor, with a minimum of five valid votes. Any admin can close the vote.
- Usual procedure:
- One vote per named editor
- No neutral votes (they are comments)
- Standard procedure for sockpuppet-voters
- Votes of editors with very few other changes may be disregarded.