Jump to content

Wikipedia:Categorization

Page semi-protected
From Wikipedia, the free encyclopedia

This page containsguidanceon the proper use of thecategorizationfunction in Wikipedia. Thecentral goalof the category system is to providenavigational linksto pages in Wikipedia within a hierarchy ofcategories.Using essential,definingcharacteristics of a topic, readers can browse and quickly find sets of pages on topics that are defined by those characteristics.

For proposals to delete, merge, or rename categories, follow the instructions atCategories for discussion.Please use it before undertaking any complicated re-categorization of existing categories or mass creation of new categories.

Naming conventions

When naming a category, one should be particularly careful and choose its name accurately. Moving non-conventionally categorized pages to another category name (see{{Category redirect}}) imposes an additional overhead – an edit foreacharticle and subcategory. Also, try to avoid names that are too long or too short. Short, straight-forward names, are preferred for categories, though it may be necessary at times to deviate from this principle forclarityordisambiguation.

General conventions

  • Names oftopic categoriesshould be singular, normally corresponding to the name of a Wikipedia article. Examples: "Law","France","Hillary Clinton".
  • Names ofset categoriesshould be plural. Examples: "Writers","Villages in Poland".
  • Note that in many instances a topic category and a set category have similar names, the topic category being singular and the set category plural. For example,Operais a topic category (containing all articles relating to the topic), whileOperasis a set category (containing articles about specific operas). Be careful to choose the right one when categorizing articles.
  • Do not writethe category structurein names. Example: "Monarchs",not" People – Monarchs ". This includes creating categories that are subpages of other categories.
  • Choose category names that can stand alone, independent of the way a category is connected to other categories. Example: "Geography terminology stubs",not" Terminology "(a subcategory of"Geography stubs").

Categories for articles

Project categories

Creating category pages

Before creating a new category

Categories are not the only means of enabling users to browse sets of related pages. And categories haveseveral disadvantages,including that categories only showthe page nameof each page being categorized, therefore:

  • While the#Category descriptionof the category may provide broader information, individual category members cannot be annotated with descriptions or comments, so they give no context or elaboration for any specific entry.
  • There is no provision for referencing any specific entry, toverifya page meets a category's criteria of inclusion.

So, consider whether alistwould be more appropriate for such a grouping of pages. Lists would also be more useful where it is important to see dates, for example, alist of Nobel laureates.And can provide options for sorting the entries.

Also, consider whether the category might be considered category clutter. Please seeWikipedia:Overcategorization,for more information on this.

Choosing a name for the category

A good category name isneutral,and as much as possible, defines the category inclusion criteria in the name itself.

Important: When choosing a name for the category, please be sure a similar category does not exist.

For example: You might want to add a sub-category for people toCategory:Mexicans.Before creating that category, try to find it under a similar name. By starting atCategory:People by nationality,you will discover that Mexicans are placed inCategory:Mexican people.

Note:#Eponymous categories(categories whose name and topic is the same as an article, such as a category named after a person) should only be created if sufficient directly related articles exist.

Creating the category

After you have determined an appropriate category name for the category, next try to find a suitable place for the new category. (For example, categories of people should be in thetree of "people" categories.) Please see#Category tree organizationfor more information on this.

Once you have determined where to categorize this new category, you should be ready to create the new category. To create a category,

  1. Add a page to the intended category. Do this by editing that page:
    1. At the bottom, add the name of the new category, (e.g.:[[Category:New category name]])
    2. Save your edit. The as-yet-undefined category name will now appear as ared linkin the category list at the bottom of the page.
  2. Next, click on that red link, which brings you to the new category page to create.
  3. Finally, at the bottom of the page, simply add the parent category (e.g.:[[Category:Parent category name]]), which should usually be ahypernymof the sub-category. This will add the new category into the appropriate parent category.

Nota bene*If something goes wrong, double check to see if you followed the steps properly and check if the wikitext is correct. For example, if the category fails to list in the parent category, the wikitext should be [[Category:Parent category name]], not [[:Category:Parent category name]].

Category description

Sometimes, a common-sense guess based on the title of the category isn't enough to figure out whether a page should be listed in the category. So, rather than leave the text of a category page empty (containing only parent category declarations), adding amain articlewhich describes the topic, can help with that.

However, only linking to a Wikipedia article explaining the title is often not sufficient as a description for a category. It can be helpful – to both readers and editors – to include a clear description of the category, indicating what pages it should contain, how they should be subcategorized, and so on, and linking to one or more pages as background information.

In such cases, the desired contents of the category should be described on the category page, similar to how thelist selection criteriaare described in a stand-alone list. The category description should make direct statements about the criteria by which pages should be selected for inclusion in (or exclusion from) the category. This description, not the category's name, defines the proper content of the category. Do not leave future editors to guess about what or who should be included from the title of the category. Even if the selection criteria might seem obvious to you, an explicit standard is helpful to others, especially if they are less familiar with the subject.

The description can also contain links to other Wikipedia pages, in particular to other related categories which do not appear directly as subcategories or parent categories, and to relevant categories atsister projects,such asCommons.Another technique that can be used is described atWikipedia:Classification.Likedisambiguationpages, category pages should not contain either citations toreliable sourcesorexternal links.

Various templates have been developed to make it easier to produce category descriptions; seeCategory namespace templates.There are hatnote templates including{{Cat main}}and{{Category see also}};others are listed atWikipedia:Hatnote#Categories.

Additional considerations

Categories may have hundreds of members, displayed over many pages, with, at most, only 200 category entries on a single category page. To make navigating large categories easier, a table of contents can be used on the category page. The following templates are some of the ways of doing this:

  • {{Category TOC}}– adds a complete table of contents (Top, 0–9, A–Z)
  • {{Large category TOC}}– adds a complete table of contents with five subdivisions for each letter (Aa Ae Aj Ao At)
  • Consider using{{CatAutoTOC}}which uses the appropriate TOC for the number of pages on a category page.

Likewise, a maximum of 200 subcategories are displayed at a time, so some subcategories may not be immediately visible. To display all subcategories at once, add a category tree to the text of the category page, as described atHelp:Category § Displaying category trees and page counts.

Category pages can haveinterlanguage linksin the "Languages" list in the left sidebar (in the default skin), linking to corresponding categories in other language Wikipedias. To edit these onWikidata,click on the "Edit links" link at the end of the languages list.

Categorizing pages

A screencast showing how to categorise pages and explaining the usage ofHotCat

Every Wikipedia page should belong to at least one category, except fortalk pages,redirects,anduser pages,which may optionally be placed in categories where appropriate. Each categorized page should be placed in all of themost specificcategories to which it logically belongs. This means that if a page belongs to asubcategoryof C (or a subcategory of a subcategory of C, and so on) then it isnotnormally placed directly into C. For exceptions to this rule, see§ Eponymous categoriesand§ Non-diffusing subcategoriesbelow.

While it should typically be clear from the name of an existing category which pages it should contain, thetext of the category pagemay sometimes provide additional information on potential category contents. One way to determine if suitable categories already exist for a particular page is to check the categories of pages concerning similar or related topics. Another way is to search existing category names as describedhere(top of page).

Since all categories form part of atree-like hierarchy,do not add categories to pages as if they aretags.

Articles

Apart from certain exceptions (i.e.eponymous categoriesandnon-diffusing subcategories– see below), an article should be categorised under themost specificbranch in the category tree possible, without duplication in parent categories above it. In other words, articles should rarely be placed in both a given category and any of its sub- or parent (super-) categories. For example, the article "Paris" need only be placed inCategory:Cities in France,notalso inCategory:Populated places in France.Because the first category (cities) is in the second category (populated places), readers are already given the information that Paris is a populated place in France by it being a city in France.

Categorization of articles must beverifiable.It should be clear from verifiable information in the article why it was placed in each of its categories. Use the{{Unreferenced category}}template if you find an article in a category that is not shown by sources to be appropriate or if the article gives no clear indication for inclusion in a category.

Categorization must also maintain aneutral point of view.Categorizations appear on article pages without annotations or referencing to justify or explain their addition; editors should be conscious of the need to maintain a neutral point of view when creating categories or adding them to articles. Categorizations should generally be uncontroversial; if the category's topic is likely to spark controversy, then a list article (which can be annotated and referenced) is probably more appropriate. For example, a politician (not convicted of any crime) should not be added to a category of notable criminals.

Thedefiningcharacteristics of an article's topic are central to categorizing the article. A defining characteristic is one thatreliable sourcescommonlyandconsistentlyrefer to[1]in describing the topic, such as the nationality of a person or the geographic location of a place. For example,Italianandartistare defining characteristics ofCaravaggio,and so of the article on him, because virtually all reliable sources on the topic mention them.

Particular considerations for categorizing articles:

  • By convention, category declarations are placed at the end of the wikitext, but before anystubtemplates, which transclude their own categories.
  • Eponymous categoriesshould appear first. Beyond that, the order in which categories are placed on a page is not governed by any single rule (for example, it does not need to be alphabetical, although partially alphabetical ordering can sometimes be helpful). Normally the most essential, significant categories appear first.
  • An article should never be left with a non-existent (redlinked) category on it. Either the category should be created, or else the link should be removed or changed to a category that does exist.
  • Categorization should not be made by thetypeof an article. A biographical article about a specific person, for example, does not belong inCategory:Biography (genre).
  • Articles on fictional subjects should not be categorized in a manner that confuses them with real subjects.{{Category see also}}is useful for interlinking examples of real-world and fictional phenomena.

Eponymous categories

A category that covers exactly the same topic as an article is known as theeponymous categoryfor that article (e.g.New York CityandCategory:New York City;MekongandCategory:Mekong River;Abraham LincolnandCategory:Abraham Lincoln).

Eponymous categories should not be created unless enough directly related articles or sub-categories exist. However, this should not be done simply to reduce the number of categories displayed in an article.

An eponymous category should have only the categories of its article that are relevant to the category's content. For example:

Individualworks by a personshould not be included in an eponymous category but should instead be in a sub-category such asCategory:Novels by Agatha Christie.

Articles with eponymous categories
  • The article itself should be a member of the eponymous category and should be sorted with a space to appear at the start of the listing (see§ Sort keysbelow).
  • The article should be listed as the main article of the category using the{{cat main}}template.
  • Articles with an eponymous category may be categorized in the broader categories that would be present if there were no eponymous category (e.g. the articleFranceappears in bothCategory:FranceandCategory:Countries in Europe,even though the latter category is the parent of the former category). Editors should decide by consensus which solution makes most sense for a category tree. There are three options:
  1. Keep both the eponymous category and the main article in the parent category. This is used inCategory:Countries in Europeto allow that region's country articles to be navigated together.
  2. Keep just the child article. This is used inCategory:British Islands,to prevent a loop.
  3. Keep just the eponymous category. This is used forCategory:FarmersinCategory:People by occupation.Such "XbyY"categories sometimes cover a limited navigational set, not a topic (see§ Category tree organizationbelow), thus there is no logical article content.

If eponymous categories are categorized separately from their articles, it will be helpful to make links between the category page containing the articles and the category page containing the eponymous categories. The template{{Related category}}can be used for this. An example of this set-up is the linked categoriesCategory:American politiciansandCategory:Wikipedia categories named after American politicians.

Files

Category tags should be added tofilepages of files that have been uploaded to Wikipedia. When categorized, files are not included in the count of articles in the category, but are displayed in a separate section with a thumbnail and the name for each. A category can mix articles and images, or a separate file/image category can be created. A file category is typically a subcategory of the general category about the same subject, and a subcategory of the wider category for files,Category:Wikipedia files.To categorize a new file when uploading, simply add the category tag to theupload summary.

Freely licensed files should be uploaded to, and categorized on,Wikimedia Commons,instead of uploading and categorizing on Wikipedia. Existing freely licensed files should usually be moved from Wikipedia to Commons, with a mirror page automatically remaining on Wikipedia. (For an example of one such mirror page, seehere.) Categories should not be added to these Wikipedia mirror pages, because doing so creates a new Wikipedia page that is subject tospeedy deletion.Exceptions to this principle are made for mirror pages of images that are nominated asfeatured picturesand for those that appear on the WikipediaMain Pagein theDid You Know?column.

Images that are used in Wikipedia that arenon-free or fair useshould not appear as thumbnail images in categories. To prevent the thumbnail preview of images from appearing in a category, __NOGALLERY__ should be added to the text of the category. In such cases, the file will still appear in the category, but the actual image preview will not.

Wikipedia administrative categories

A distinction is made between two types of categories:

  • Administrative categories,intended for use by editors or by automated tools, based on features of the current state of articles, or used to categorize non-article pages.
  • Content categories,intended as part of the encyclopedia, to help readers find articles, based on features of the subjects of those articles.

Administrative categories includestub categories(generally produced bystubtemplates),maintenance categories(often produced by tag templates such as{{cleanup}}and{{fact}},and used formaintenanceprojects),WikiProjectandassessment categories,andcategories of pages in non-articlenamespaces.

Article pages should be kept out of administrative categories if possible. For example, the templates that generate WikiProject and assessment categories should be placed on talk pages, not on the articles themselves. If it is unavoidable that an administration category appears on article pages (usually because it is generated by a maintenance tag that is placed on articles), then in most cases it should be made ahidden category,as described in§ Hiding categoriesbelow.

There are separate administrative categories for different kinds of non-article pages, such astemplatecategories,disambiguation pagecategories,project pagecategories etc.

Inmaintenance categoriesand otheradministrative categories,pages may be included regardless of type. For example, in an error tracking category it makes sense to group templates separately, because addressing the errors there may require different skills compared to fixing an ordinary article. For sorting each namespace separately, see§ Sort keysbelow.

User pages

User pagesare not articles, and thus do not belong incontent categoriessuch asLiving peopleorBiologists.They can however be placed inuser categories– subcategories ofCategory:Wikipedians,such asCategory:Wikipedian biologists– which assist collaboration between users.

Similarly,user subpagesthat are draft versions of articles should be kept out of content categories, but are permitted in non-content or project categories, likeCategory:User essays.If you copy an article from mainspace to userspace and it already contains categories, wrap them inside{{Draft categories}},remove them, orcomment them out.Restore the categories when you move the draft back into article space. Two scripts are available to help with these tasks:User:DannyS712/Draft no catandUser:DannyS712/Draft re cat.

Also, do nottranscludearticles into your user pages: this will result in the user page being included in all the article's categories.

AtDatabase reports/Polluted categories,a list of affected categories is maintained.

Draft pages

Drafts, no matter whether in thedraft namespaceoryour userspace,are not articles, and thus do not belong in content categories such asLiving peopleorBiologists.If you copy an article from mainspace to draftspace or your userspace and it already contains categories, then disable those categories. This can be done either by inserting a colon character tolink to each category(e.g. change[[Category:Biologists]]to[[:Category:Biologists]]), or by wrapping them in{{Draft categories}}(e.g.{{draft categories|1=[[Category:Living people]] [[Category:Biologists]]}}etc.). After you move the draft into article space, remove the leading colons to re-enable the categories. If using the draft categories template, the categories will automatically work as normal in mainspace, but the template should be removed. The same system may be used in a new draft to list the categories it may have when moved to mainspace.

Two scripts are available to help with these tasks:User:DannyS712/Draft no catandUser:DannyS712/Draft re cat.

Drafts may be placed in the appropriate subcategories ofCategory:Wikipedia drafts.

Template categorization

Templatesare not articles, and thus do not belong incontent categories.It is however a recommendation to place them intemplate categories– subcategories ofCategory:Wikipedia templates– to assist when looking for templates of a certain type. For example,Template:Schubert string quartetsis categorized underCategory:String quartets by composer navigational boxes,which should be a subcategory ofCategory:Music navigational boxes(type) butTemplate:Schubert string quartetsshouldnotbe categorized underCategory:Franz SchubertorCategory:String quartets(content).

It is usually desirable that pages using a template are not placed in the same categories as the template itself. To avoid this, the category for the template should be placed on the template's documentation page, normally within a<includeonly>{{Sandbox other|...}}</includeonly>block; if there is no documentation page, the category for the template may be placed on the template itself, within a<noinclude>...</noinclude>block. When a<noinclude>...</noinclude>block is the last item in the template code, there should be no spaces or new lines between the last part of the template proper and the opening<noinclude>tag.

Categorization using templates

Manytemplatesinclude category declarations in their transcludable text, for the purpose ofplacing the pages containing those templates into specific categories.This technique is very commonly used for populating certain kinds of administration categories, including stub categories and maintenance categories. SeeTemplate:Infobox roller coasterfor an example that only adds a category by manufacturer if it exists, and otherwise uses a hidden category.

However, it is recommended that articles not be placed in ordinarycontentcategories using templates in this way. There are many reasons for this: editors cannot see the category in the wikitext; removing or restructuring the category is made more difficult (partly because automated processes will not work); inappropriate articles and non-article pages may get added to the category;sort keysmay be unavailable to be customised per category; and ordering of categories on the page is less controllable.

When templates are used to populate administration categories, ensure that the code cannot generate nonsensical or non-existent categories, particularly when the category name depends on a parameter. Also, seeCategory suppressionfor ways of keeping inappropriate pages out of template-generated categories.

Category declarations in templates often use{{PAGENAME}}as the sort key, because this overrides any DEFAULTSORT defined on the page.

Hiding categories

In cases where, for technical reasons, administration categories appear directly on articles rather than talk pages, they should be made intohidden categories,so that they are not displayed to readers. This rule does not apply tostubcategories or "uncategorized article" categories – these types arenothidden.

To hide a category, add the template{{Wikipedia category|hidden=yes}}to the category page (the template uses themagic word__HIDDENCAT__). This also places the page inCategory:Hidden categories.

A logged-in user may elect to view all hidden categories, by checking "Show hidden categories" on the "Appearance" tab ofPreferences.Notice that "hidden" parent categories are never in fact hidden on category pages (although they are listed separately).

Hidden categories are listed at the bottom when previewing. All users of the desktop version can see hidden categories for a page by clicking "Page information" under "Tools" in the left pane, or by editing the whole page with the source editor.

Redirected categories

Do not create inter-category redirects. SeeWikipedia:Categories for discussion § Redirecting categoriesfor the policy, andWikipedia:Redirect § Category redirectsfor the technical details.

Sort keys

Sort keysare sometimes needed to produce a correct ordering of member pages and subcategories on the category page. For the mechanics, seeHelp:Category § Sorting category pages.

Categories of people are usually sorted by last name rather than first name, so "surname, forename" sort keys are used (as in "Washington, George" ). There are many other rules for sorting people's names; for more information, seeWP:NAMESORT.

Other sort key considerations (in no particular order):

  • In English Wikipedia, sort order merges (ignores) case and diacritics. For example, "Baé", "Båf", "BaG" would be sorted in that order.[2]
  • The main article/s of a category, if existent, should get sorted with a space as key so that it/they appear(s) at the very top of the category. Example:[[Category:Example| ]]Those articles are typically homonymous or at least synonymous to their category. Furthermore, other general articles that are highly relevant to the category should be sorted with an asterisk as key so that they also appear at the top of a category but beneath the main article/s. Example:[[Category:Example|*]]Those articles are typically called "History of example", "Types of example", "List of example" or similar.
  • Leading articles—a, an, and the—are among the most common reasons for using sort keys, which are used to transfer the leading article to the end of the key, as in {{DEFAULTSORT:Lady, The}}. Please also apply these sort keys to deliberate misspellings of these words,e.g."da" or "tha" for "the", as well as foreign language leading articles, such as "el" or "der" (but beware of non-article words that have the same spelling, e.g. that translate as "at" or "one" ). However, leading articles in foreign-language-derived names which are no longer translated in English are not subject to this rule; e.g. the sort key forEl Pasoshould be left as the default value (i.e. no {{DEFAULTSORT}} required).
  • Spell out abbreviations and characters used in place of words so that they can be found easily in categories. For example, the sort key forMr. Beanshould be {{DEFAULTSORT:Mister Bean}} andDungeons & Dragonsshould be sorted {{DEFAULTSORT:Dungeons And Dragons}}. An exception is the times sign (×) as in "Men's 4 × 100 metre" relay; use the letter x in this case.
  • Landforms (and similar) that have noun prefixes such asIsle of Mullshould have the noun sorted after as {{DEFAULTSORT:Mull, Isle of}}. However, this isn't usually done for settlements and administrative divisions; for example, whileIsle of Wightuses {{DEFAULTSORT:Wight, Isle of}}, the categories for the county/district are sorted "Isle of Wight". Also for settlements such asIsle of Wight, Virginiathe prefix isn't moved.
  • Hyphens, apostrophes and periods/full stops are the only punctuation marks that should be kept in sort values. The only exception is the apostrophe in names beginning withO',which should be removed. For example,Eugene O'Neillis sorted {{DEFAULTSORT:Oneill, Eugene}}. All other punctuation marks should be removed. (Commas can be added when re-ordering words, as in the previous example.)
  • Entries containing numbers sometimes need special sort keys to ensure proper numerical ordering. For example, IX comes before V in alphabetical order, soPope John IXmight have a sort key "John 9". To get the correct sort order zero padding may be required, thus theactualsort key in this case is "John 09" this ensures thatPope John IXsorts beforePope John X– if we ever get to the hundredth Pope John, we would need to use three digits "John 009". Also note that numbers which include separators (such as commas or periods) will only have the part of the number before the first separator considered by the sorting algorithm. So10,000 Maniacsmight have a sort key "10000 Maniacs". It is important to stick to the same system for all similar entries in a given category.
  • Systematic sort keys are also used in other categories where the logical sort order is not alphabetical (for example, individual month articles in year categories such asCategory:2004use sort keys like "*2004-04" for April). Again, such systems must be used consistently within a category.
  • In some categories, sort keys are used to exclude prefixes that are common to all or many of the entries, or are considered unimportant (such as "List of" or "The" ). For example, inCategory:2004the page2004 in filmwould have the sort key "Film", and inCategory:2004 in Canadathe page2004 Canadian federal budgetwould have the sort key "Federal Budget".
  • Use other sort keys beginning with a space (or an asterisk or a plus sign) for any "List of..." and other pages that should appearafterthe key article andbeforethe main alphabetical listings, including "Outline of" and "Index of" pages. The same technique is sometimes used to bring particular subcategories to the start of the list.
Sort order of charactersbeforenumbers and Latin alphabet (0–9, A–Z) is (partial list):
!"# $ % & ' ( ) * +, -. / 0 9:; < = >? @ [ \ ] ^ _ ` A Z a z { | } ~ É é —
See also:Meta:Help:Sorting#Sort modesfor more information.
  • Sort keys may be prefixed withGreek lettersto place entriesafterthe main alphabetical list. The following letters have special meaning by convention:
    • "Σ"(capital sigma) is used to placestubcategories at the end of subcategory lists. ( "µ" (mu) was previously used, but the capital version "Μ" was confusing.)
    • "β"(beta, displays as capital," Β ") is forbarnstars.
    • "Δ"(delta) is fordocumentation,where sorting by Latin D is undesirable.
    • "ι"(iota, displays as" Ι ") is forWikipedia images.
    • "ρ"(rho, displays as" Ρ ") is forportals.
    • "τ"(tau, displays as" Τ ") is fortemplates.Keep in mind, template categories should not be added to content categories perWP:CAT#T.
    • "υ"(upsilon, displays as" Υ ") foruser templates.
    • "ω"(omega, displays as" Ω ") is forWikiProjects.
    Similar to the handling of Latin letters, if the sort key is or begins with a lower case Greek letter, then the capital Greek letter will be displayed in headings on category pages. Items whose sort keys begin with lowercase letters will appear beneath corresponding capital letters. Several of these resemble Latin letters B, I, P etc., but they will sort afterZ.
    Note:Not all of these types are suitable for inclusion incontent categories.For one-type categories, such astemplate categories,Greek letter grouping is not useful.
  • If a page is to be given the same sort key in all or several of its categories, the{{DEFAULTSORT}}magic wordshould be used. PerMOS:ORDER,this is placed just before the list of category declarations. Default sort keys are sometimes defined even where they do not seem necessary—when they are the same as the page name, for example—in order to prevent other editors or automated tools from trying to infer a different default.

Category tree organization

Partial view of Wikipedia's category system from 2007. Arrows point from category to sub-category.

Categories are organized as overlapping "trees",formed by creating links between inter-related categories (in mathematics or computer science this structure is called apartially ordered set). Any category may contain (or "branch into" )subcategories,and it is possible for a category to be a subcategory of more than one "parent" category. (A is said to be aparent categoryof B when B is a subcategory of A.)[3]

There is one top-level category,Category:Contents.All other categories are found below this. Hence every category apart from this top one must be a subcategory of at least one other category.

There are two main kinds of category:

  • Topic categoriesare named after a topic (usually sharing a name with the Wikipedia article on that topic). For example,Category:Francecontains articles relating to the topicFrance.
  • Set categoriesare named after a class (usually in the plural). For example,Category:Cities in Francecontains articles whose subjects are cities in France. A category may be explicitly labeled as such using the{{Set category}}template.

Sometimes, for convenience, the two types can be combined, to create aset-and-topiccategory (such asCategory:Voivodeships of Poland,which contains articles about particular voivodeships as well as articles relating to voivodeships in general).

Subcategorization

A tree structure showing the possible hierarchical organization of an encyclopedia
Items may belong to more than one category, but normally not to a category and its parent (there are, however, exceptions to this rule, such asnon-diffusing categories). An item may belong to several subcategories of a parent category (as pictured).

If logical membership of one category implies logical membership of a second (anis-arelationship), then the first category should be made a subcategory (directly or indirectly) of the second. For example,Cities in Franceis a subcategory ofPopulated places in France,which in turn is a subcategory ofGeography of France.

Many subcategories have two or more parent categories. For example,Category:British writersshould be in bothCategory:Writers by nationalityandCategory:British people by occupation.When making one category a subcategory of another, ensure that the members of the subcategory really can be expected (with possibly a few exceptions) to belong to the parent also. Category chains formed by parent–child relationships should never form closed loops;[4]that is, no category should be contained as a subcategory of one of its own subcategories.[5]If two categories are closely related but are not in a subset relation, then links between them can be included in the text of the category pages.

Except fornon-diffusing subcategories(see below), pages for sub-categories should be categorised under themost specificparent categories possible.

Sometimes proper subcategorization requires thecreation of new categories.

Note also that as stub templates are for maintenance purposes, not user browsing (see§ Wikipedia administrative categoriesabove), they donotcount as categorization for the purposes of Wikipedia's categorization policies. An article which has a "stubs" category on itmuststill be filed in the most appropriate content categories, even if one of them is a direct parent of the stubs category in question.

Diffusing large categories

Although there is no limit on the size of categories, a large category will often be broken down ( "diffused" ) into smaller, more specific subcategories. For example,Category:Rivers of Europeis broken down by country into the subcategoriesRivers of Albania,Rivers of Andorra,etc.[needs update]

A category may be diffused using several coexisting schemes; for example,Category:Albumsis broken down by artist, by date, by genre etc.Metacategoriesmay be created as ways of organizing schemes of subcategories. For example, the subcategories called "Artistnamealbums "are not placed directly intoCategory:Albums,but into the metacategoryCategory:Albums by artist,which itself appears in Category:Albums. (SeeCategory:Categories by parameter)

It is possible for a category to be only partially diffused—some members are placed in subcategories, while others remain in the main category.

Information about how a category is diffused may be given on the category page. Categories which are intended to be fully broken down into subcategories can be marked with the{{category diffuse}}template, which indicates that any pages which editors might add to the main category should be moved to the appropriate subcategories when sufficient information is available. (If the proper subcategory for an article does not exist yet, either create the subcategory or leave the article in the parent category for the time being.)

To suggest that a category is so large that it ought to be diffused into subcategories, you can add the{{overpopulated category}}template to the category page.

Non-diffusing subcategories

Not all subcategories serve the "diffusion" function described above; some are simply subsets which have some special characteristic of interest, such asBest Actor Academy Award winnersas a subcategory ofFilm actors.They provide an exception to the general rule that pages are not placed in both a category and its subcategory: there is no need to take pages out of the parent categorypurelybecause of their membership of a non-diffusing subcategory. (Of course, if the pages also belong to other subcategories that do cause diffusion, then they will not appear in the parent category directly.)

Non-diffusing subcategories should be identified with a template on the category page:

Subcategories defined by gender, ethnicity, religion, and sexuality should almost always be non-diffusing subcategories. TheWikipedia:Categorizing articles about peopleguideline outlines the rules on these categories in more detail.

Note that some categories can be non-diffusing on some parents, and diffusing on others. For example,Category:British women novelistsis a non-diffusing sub-category ofCategory:British novelists,but it is a diffusing subcategory ofCategory:Women novelists by nationality.

Category cleanup templates

  • Article with insufficient categories
    • {{Improve categories}}template indicates that the article needs additional or more specific categories. It is recommended that this template be placed at thebottomof the page, where readers will look for the categories.
  • Article with too many categories
    • Use{{Recategorize}}template when there are too many categories. Put this templateon the topof articles.
  • Category unknown

Inappropriate categorization

Anyone may edit an article and remove a questionable categorization. If an article has an "incorrect" or "inappropriate" category, remove that category from the article, and replace it (if applicable) with a more correct category.

Even if an article may occupy the grey areas of a category's inclusion criteria, that is not a valid reason to keep the article in a category. If a particular article does not fit the inclusion criteria of a category,then the article simply should not be added to it.

If categorization of any particular page isdisputed,pleasediscussthe categorization on thetalk pageof the page in question. If the category seems reasonable, but questionable in some cases, consider whether you can solve (part of) the problem by writing a clearer#Category description.

If you have a proposal for a better name for the category or for a wider re-arrangement of the categorization scheme; or if you have a concern that may apply to several members of the category (such as if the category violates one or more sections on this page,Wikipedia:Categorizing articles about people,Wikipedia:Overcategorization,or other Wikipediapolicies and guidelines), you can participate in, or post a new, discussion about the category.

Category talk pages are not always widelywatched.Consider whether you caninvite more potentially interested peopleto take part in a discussion, such as by discussing it at a relevantWikiProject,or atWikipedia:WikiProject Categories.Another option could be to nominate the category for discussion atWikipedia:Categories for discussion,or if thecategory namehas an obvious typographical error, you can list it for speedy renaming atWikipedia:Categories for discussion/Speedy.

SeeWikipedia:Categories for discussion/Howtofor instructions on how to use the templates for:deletion({{cfd}}),renaming({{cfr}}), ormerging({{cfm}}).

If you are in a content dispute, seeWikipedia:Dispute resolutionfor what to do next.

See also

For browsing

For maintenance

Notes

  1. ^in declarative statements, rather than table or list form
  2. ^In 2016, English Wikipedia's category collation was changed to "uca-default", which is based on theUnicode collation algorithm(UCA). The most noticeable difference is that UCA groups characters with diacritics with their non-diacritic versions. SeeWikipedia talk:Categorization/Archive 16 § OK to switch English Wikipedia's category collation to uca-default?andWikipedia:Village pump (technical)/Archive 149 § Sorting in categories unreliable for a few days.
  3. ^Mathematically speaking, this means that the system approximates adirected acyclic graph.
  4. ^This condition can be formulated in terms ofgraph theoryas follows: the directed graph that has the categories as vertices and the parent-child relationships as edges should beacyclic.
  5. ^There is an exception to this for maintenance purposes. For example,Category:Hidden categoriesis a direct subcategory of itself and ofCategory:Wikipedia extended-confirmed-protected pagesandCategory:Container categories,each of which is a direct subcategory ofCategory:Hidden categories.