Wikipedia:FAQ/Categorization

Page semi-protected
Source: Wikipedia, the free encyclopedia.

Categorization FAQ (for editors)


This page is addressed mainly to those editing Wikipedia. For information for readers, see Wikipedia:FAQ/Categories.

For more detailed guidelines on creating and organizing categories, see Help:Category. More technical information can be found at Wikipedia:Categorization.

What are categories?

Categories allow articles to be placed in one or more groups, and allow those groups to be further categorized. An article belonging to a category should contain a link to a page that describes the category. Similarly, a sub-category belonging to a parent category should contain a link to the parent category's page.

Each category page contains an introduction that can be edited like an article, and an automatically generated list of links to sub-categories and articles that belong to the category.

Categories do not form a strict hierarchy or tree of categories, since each article can appear in more than one category, and each category can appear in more than one parent category. This allows multiple categorization schemes to co-exist.

What is the purpose of categories?

See meta:Categorization requirements for the original purpose of the feature.

What categories already exist?

The best way to find out what exists is to browse. Either start at Wikipedia:Browse or Category:Articles, which shows the "top" level categories, to which all other categories should be connected. A list of all categories can be found at Special:Categories – there are many listed but you can use the search box. Category:Wikipedia categories is the standard top-level category provided by the MediaWiki software, but orphan categories (categories without any parent categories) can exist.

What is the difference between a list and a category?

Grouping articles into a category is not the same as making a list of articles. To edit a list of articles, you edit the list directly; but to place articles into a category, you edit an article and insert a category tag by placing [[Category:<category name>]] in the body of the text. This adds those articles as a list on the category's page.

While an article may be in multiple lists, the goal is that browsing downwards from a list parent category, e.g. Category:People, you should only arrive at articles that are about people, and not related articles.

Further information on this topic can be found at Wikipedia:Categories, lists, and navigation templates.

Are "List of ..." articles still needed?

Lists are still useful for showing "missing" articles.

What's the difference between categories and navigation templates?

John Brown's Raid on Harpers Ferry has an article, a category, and a navigation template.

A navigation template is a collection of links on a single topic, formatted in a standard way, in a box with a border. These links can be arranged in different ways within the box. The box is placed at the right or at the foot of the pages linked in it.

There are fewer navigation templates than categories. There is no requirement that a page be linked in a navigation template, whereas every page must belong to at least one category, and almost always more.

When appropriate, however, a navigation template organizes links in a far more useful way than categories do. It permits many nuances that categories can not, or can only clumsily. For the reader, a navigation template, if it exists, makes finding related articles much faster.

Templates are more complicated to create than categories, and the Wikipedian wishing to create one may want to use an existing template as a model.

Can pages be in more than one category?

Yes, it is expected that most pages will be members of one category or more. Similarly, each category can be a member of more than one parent category.

What are "maintenance categories"?

Some categories exist to aid maintenance of the project, for example, template categories and redirect categories. Maintenance categories are often added by templates rather than links. Contributors monitor these maintenance categories for many reasons to cleanup articles. Maintenance categories are usually "hidden" from view and can be seen only by registered users who have set their preferences to see hidden categories, which is easy to do:

  1. Go to Preferences → Appearance
  2. Scroll down to Advanced options
  3. Check the box Show hidden categories
  4. Click Save
It is a good idea to purge your browser cache to ensure that you can see hidden categories after setting your preferences.

Templates used to populate redirect categories are indexed functionally and alphanumerically at Wikipedia:Template messages/Redirect pages.

What is the naming convention for categories?

Use the Wikipedia titling conventions of no unnecessary capital letters or abbreviations, i.e. use [[Category:Category examples]] instead of [[Category:Category E.g.]].

If the category collects articles, then avoid the word List in the name of the category, and use plurals, e.g. Category:Popes.

However, if the category collects lists, then using the word Lists in the name of the category is appropriate, e.g. Category:Lists of radio stations.

Use the topic name without indicating structure, e.g. [[Category:History of London]] instead of [[Category:History - Europe - UK - London]].

For more on this, see Wikipedia:Naming conventions (categories).

How do I add an article to a category?

Edit the article and add [[Category:Category name]] at the bottom of the article. For example: [[Category:Mind-body interventions]].

To link to the category page, put a colon before the word "category", inside the link, e.g.
[[:Category:United States]], which will appear as Category:United States.

Where should the category tag go in the article?

Category tags should be placed at the bottom of the article, after the appendices (e.g. References and External links). This ensures that when an editor presses "edit", the editor is immediately presented with the main article text, rather than the more esoteric category tags. It also ensures that the category tags are in a consistent place so they are easy to find.

In what order should categories be listed within the article?

Both the alphabet and importance are used to order categories currently. Although this, like most ordering issues in Wikipedia, is a matter for judgment, it is generally clear that some categories – for example the birthplace or birth year of a person – are less important than others, such as their status as an Oscar or Nobel Prize winner.

See also Wikipedia:Overcategorization.

How do I sort the article differently on the category page?

Use a {{DEFAULTSORT}} tag, which looks like {{DEFAULTSORT:Smith, John}}. All categories will then sort under "Smith" unless a sorting key is used for them (see below).

For individual categories, use a sorting key. For example, an article categorized by [[Category:Proper category|Sorting key]] would appear under S within the category.

Which categories can be used for articles on people?

Articles about people should be categorized cautiously. Unlike the body of the article, the various category choices for people can focus on, in most cases, what are common and unrelated attributes such as place of birth and gender, instead of emphasising the reason for their inclusion.

See Wikipedia:Categorization of people for guidelines.

Somebody changed my categorization – what do I do?

All contributions to Wikipedia may be "edited mercilessly". If the change was not explained in the article history or talk page, try leaving a question on the relevant user's talk page. Remember to follow the bold, revert, discuss procedure.

What should I do if I see an article without any categories?

Try to categorize it yourself. If you are unable to, add the {{Uncategorized}} template to the article, which will place a notice that the article needs categorizing, and automatically add it to the list at Category:Uncategorized pages.

I am interested in a category – where can I get involved?

If there is one, you can join the WikiProject involved.

I want to change the relationships of some categories – will anyone mind?

If you want to restructure some existing categories, it is best to discuss your plans with others working in the same areas, or at least to announce your intentions.

How do I create a category?

A category page should contain a brief description of the purpose of the category. A prominent link to the most important article in the category is usually a good idea, but please avoid copying large quantities of text or images from an article to a category page.

In many cases, a category has a "main article", which describes the subject of that category. The category and the article often have the same name. In such case, do this:

  • Add the "{{cat main}}" tag in the category.
  • Arrange for the article to appear at the top of the list of articles in the category, by putting a vertical bar and a space after the category name in the Category: tag (e.g. [[Category:<category name>| ]]).

If the subject has count, then make the category name plural and create a redirect of that same, plural name, redirecting back to the singular name. For instance City and Category:Cities. That is, create a page called "Cities" and add the line

#REDIRECT [[City]]

In theory, if a main article is categorized correctly in its corresponding category, the use of the cat main template is redundant.

Do categories need parents?

Yes. If you are creating a new category, look for a suitable "parent" category (or several) to assign it to. A good place to look is in articles on related subjects.

If you do not have a parent category, then your category cannot be browsed to via other categories. Also, your category will show up on Wikipedia:Database reports/Uncategorized categories.

Can categories be renamed, moved, or redirected?

Yes, "speedy renaming" can be done by listing the category at Wikipedia:Categories for discussion#Speedy renaming. See Wikipedia:Category deletion policy#Speedy renaming procedure.

Redirects in the form #REDIRECT [[Category:New name]] are not recommended in category space. Instead, use the template {{Category redirect}}: a bot periodically recategorizes articles in the redirected category to the target category. Any editor can add a category redirect although, in general, established categories should not be unilaterally redirected but should be taken to Wikipedia:Categories for discussion to suggest redirecting as part of a rename / merger of the category.

Categories can be moved. The old page will have {{Category redirect|New name}} instead of #REDIRECT [[:Category:New name]].

How do I delete a category?

If you feel a category falls within Wikipedia:Category deletion policy, bring it up on Wikipedia:Categories for discussion.

When were categories implemented?

The category feature appeared in the MediaWiki software v1.3, which was implemented on Wikipedia in late May 2004.

Initially categories were displayed at the top right of articles, but they were soon moved to the bottom due to layout conflicts.

Why might a category list not be up to date?

Sometimes, pages are not placed in categories manually by Wikipedia editors, but by means of templates, which can be used to place identical information (including category membership information) on many different pages at once. When the information on such a template is edited, the pages containing that template are updated, but not necessarily updated immediately. This means that pages might not always appear in the most current categories. However, this problem usually affects project maintenance categories rather than the categories used for browsing.

Various other delays sometimes mean that lists of category members or subcategories, or the page counts given, are not completely up to date (see Phabricator tickets T18036, T132467, and T157670 for technical details). So if you are editing Wikipedia and find that your page hasn't yet shown up in a category or hasn't yet been removed from an old category, don't panic! The problem may resolve itself within minutes, but sometimes it may take longer, in some cases days, even months. (It may help if you purge the page.)

What tools are there to browse categories?

PetScan is a powerful querying tool that, among other tasks, can scan categories, selecting pages on many categories.




More FAQ topics