|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
For a quick answer about categories, see: Wikipedia:FAQ/Categorization; for more detailed technical information on the categorization feature, see: Help:Category.
Multiple shortcuts redirect here, you may be looking for: WikiProject Cats, WikiProject Categories or Help:Sorting.
When to use categoriesCategories, along with other features like: cross-references, lists and navigation templates, help the reader find articles, even if they don't know that they exist or what they are called. Every page in the article namespace should belong to at least one category, except for the redirect pages, which are usually not categorized. An article's category or categories should reflect the topics and classes that are directly related to the subject. In writing an article, use the most likely categories in which the reader would look for, if they are not sure of where to find the article. For example:
Questions to ask to determine whether it is appropriate to add an article to a category:
For types of categories that should generally be avoided, see: Overcategorization
If the answer to any of the above questions is no, then the category is probably not the right one. Note that it is always appropriate to add articles to categories that fit into well established taxonomies. For example, every article about a musical album is usually placed into a [[Category:Artistname albums]], which in turn is placed into Category:Albums by artist. GuidelinesMeta has related information at:
In general
Categories vs. lists vs. navigation templatesCategories are not the only way to organize articles. For alternative methods of grouping articles, and the circumstances in which they should be used, see Wikipedia:Categories, lists, and navigation templates. Categories applied to articles on peopleSee Wikipedia:Categorization of people for additional guidance in designing, applying and checking categories that are used for articles on people.
Categories do not form a treeEach Wikipedia article can appear in more than one category, and each category can appear in more than one parent category. Multiple categorization schemes co-exist simultaneously. In other words, categories do not form a strict hierarchy or tree structure, but a more general directed acyclic graph (or close to it; see below). Nevertheless, parts of the category graph will be tree-like, and it may be convenient to think of parts of the category graph as being like multiple overlapping trees. When applying the guidelines above, consider each tree to be independent of the overlapping trees. A person browsing through a hierarchy should find every article that belongs in that hierarchy. This can lead to a good deal of debate as to what the hierarchies actually are. To clarify the structure of the hierarchy and help people browse through it, you can add a classification to each category. For more about this, see Wikipedia:Classification. Cycles should usually be avoidedAlthough the MediaWiki software does not prevent cycles (loops), these usually should be avoided. Cycles can be confusing to some readers, they can challenge some automated searching processes, and they can be quite large. For example, in January 2006 a 22-member category cycle was discovered and eliminated. However, acceptable loops also exist. Self-referencing systems such as the meta- fields naturally create cycles that provide many examples. This type of cycle involves making a category one of its own subcategories. A real-world example of a self-referencing system is "education about education", such as:
Another type of cycle involves making two categories subcategories of each other. Loops such as these can be avoided by linking the categories manually to each other by adding How to categorize an articleCategorizing an article is simply performed by editing it to include one or more category declarations. For instance, to add the article Cat to the "fluffy creatures" category, you would edit the article and add the line [[Category:Fluffy creatures]] at the bottom, but before any stub templates and interlanguage links. Unlike lists, categories are updated automatically, and you don't have to edit the category to add an article to it. However, categories are not a substitute for lists, and you will find that many articles belong to both lists and categories. When adding an article to a category, or creating categories, one should be careful to use the correct categories and subcategories. Horizontal categorization, directly below, refers to placing an article in the correct category while vertical categorization refers to placing an article in the correct subcategory. When assigning an article into categories, try to be thorough in a "horizontal" sense. The topic may be associated with a geographic area, a historical period, an academic subfield, a certain type of thing (like a food or an ornament), and/or a special interest topic (like Roman Empire or LGBT). You might need to poke around the category hierarchy a bit to find the right place. Try searching for articles similar to the article you are categorizing to get ideas or to find the most appropriate place. In the "vertical" dimension, Wikipedia is more frugal, placing articles only in the most specific categories they reasonably fit in. Thus, if there is a Category:American film actors, John Wayne would go there and not in Category:Film actors or Category:American actors. However, there are cases where articles are placed both in a category and in one (or more) of its subcategories. For details see Wikipedia:Categorization and subcategories. Categories must always be applied directly: for instance, to place John Wayne in Category:American film actors as noted above, place [[Category:American film actors|Wayne, John]] at the bottom of the article. Using [[Category:Actors|Film]] or [[Category:Film actors|American]] does not produce the desired result. Creating categoriesCategory namingCategories follow the same general naming conventions as articles; for example, common nouns are not capitalized. For specific conventions related to categories, see Wikipedia:Naming conventions (categories). Whatever categories you add, make sure they do not implicitly violate the neutral point of view policy. If the nature of something is in dispute (e.g., if an event is considered a war crime), you may want to avoid labelling it or mark the categorization as disputed. Most naming, however, is straightforward. Look before you leapBefore creating a category, look to see if one already exists. The best way to do this is to first add the category to your article but preview before saving. When previewing a page, scroll right to the very bottom of the browser window to see the categories. If the category appears in blue, the category already exists. If it is in red, then you will be creating a new category. Check the capitalization of the category name. For any red categories, you should look for categories with similar names before creating a new category. One way to do this is to think of the parent category for the new category. Search for it and then look at the subcategories in the parent. You may find that a category already exists that is similar to the one you are thinking about creating. Before creating a new category, familiarize yourself with all the guidelines on this page, and related pages. Pay particular attention to the established naming conventions for categories. Categories are deleted, merged and renamed at Wikipedia:Categories for discussion. For more about types of categories that are likely to get deleted, see Wikipedia:Overcategorization. You may see some inconsistencies when first creating the category: it may take a few minutes for the list of articles to be updated. Note that, although "uncreated" categories will correctly list (on edit preview) articles that have been assigned to them, the category page itself does not exist until it is manually created. The easiest way to create the category page is to follow the red category link from your article and create a new category page with a parent category and a category description as explained in the next section. How to create subcategoriesSubcategories may be created by putting [[Category:parent_category_name] onto the page that you would like to make into a subcategory. This may seem counterintuitive, because you edit the subcategory page rather than the parent category page. Let's say that you wanted to make the category called Roses into a subcategory of the category called Flowers.
When writing the description for a category try to give it at least two parent categories. For example, Category:British writers should be in both Category:Writers by nationality and Category:British people. Some categories do have only one parent category, but unless the parent category has many potential articles under it, or many potential subdivisions, if you can't think of a second parent category, it might be a better idea to fold your smaller category into the parent. How to delete or rename a categoryPlease refer to Wikipedia:Categories for discussion. Organizing categoriesLarge categoriesWhen there are more than 200 entries in a category, only 200 are displayed on the screen at a time and users have to click through multiple screens to see all the entries. To make it easy to navigate, add a TOC (table of contents). Several, useful TOC templates are:
Another possibility is dividing the category into several subcategories. Note that there is no technical consideration, policy or guideline requiring that large categories must be divided into smaller subcategories. When creating subcategories, group similar articles together in a meaningful and useful way that will make it easy for readers to navigate later. Remember that several subcategorization schemes can coexist (for example, if Category:Software gets too big, you don't have to choose between subdividing it by function or subdividing it by platform, you can simultaneously subdivide it in both ways). How to depopulate a very large categoryIf you decide that a large category should be depopulated and the entries re-categorized into sub-categories, add this template to the category page:
For large categories that will require continual diffusion into sub-categories (such as categories of people), add this template to the category page:
Subcategories of large categoriesThe names of all subcategories may not show in the first display of a multi-screen category listing, even if there are only a few subcategories; the same alphabetical split is used for the subcategory list as for the article list. To make all next level sub-categories immediately visible, add this code to the page as well:
Grouping categoriesA set of related categories often forms a hierarchy or a nexus. This can take several different forms, all of which are welcome and encouraged:
Searching for articles in categoriesIn addition to browsing through hierarchies of categories, it is possible to use the search tool to find specific articles in specific categories. This can be used to find articles that are members of more than one category (see Wikipedia:Category intersection — a proposal for a more sophisticated version of this feature). To search for articles in a specific category, type incategory:"CategoryName" in the search box. For example incategory:"Suspension bridges" incategory:"Bridges in New York City" will return the articles that are common to both categories — the suspension bridges in New York City. Similarly, an "OR" can be added to join the contents of one category with the contents of another. incategory:"Suspension bridges" OR incategory:"Bridges in New York City" will show all suspension bridges along with all bridges in New York City. This includes suspension bridges which are not in New York City, and bridges in New York City that are not suspension bridges. Using search to find categories will not find articles which have been categorized using templates. Other requirementsLinks to categoriesYou can create a link to a category page without adding the page to that category by inserting a colon before the word In some cases, particularly in the middle of a category tree, it is helpful to use {{cat see also}} to expose the existence of important sub-categories lower down in the hierarchy. This prevents newer editors from incorrectly adding articles to a higher category level, and readers in locating such. On particularly well-populated categories, it can be used to bring the default skin's 'parent categories' (which display at the page bottom) up above the page lists to ease navigation. The similar template {{Cat see also commons}} can be utilized on lower level categories to give editors and browsing customer readers ready access to commons subtrees. See Category:Munich for an example. Outside of mainspace, the following templates can be used to display a category in different ways, or link to its maintenance pages. Wikipedia namespaceMainspace articles do not belong in categories relating to the project namespace. For example, WikiProject and assessment categories belong on the talk pages of articles. Their relevance is generally exclusive to editors and do not aid in readers' browsing. Maintenance categoriesCategories which refer not to the subject of an article but to the present status of an article (Articles needing cleanup, Articles containing unsourced statements etc.) are known as maintenance categories. These do not help users navigate the encyclopedia, but assist in Wikipedia maintenance projects. Articles are normally placed in these categories through the addition of certain templates, such as {{cleanup}} and {{fact}}. Since these categories do not aid navigation, they should not be displayed in the Categories section of article pages. This is ensured by adding the template {{hiddencat}} to the category page, which makes use of the magic word __HIDDENCAT__. (One exception to this are the maintenance categories dealing with uncategorized articles; these categories should not be hidden.) However, to allow would-be maintainers to find the relevant category, it is suggested that an inline link to the category be included in the template itself, using the [[:Category:XXX]] syntax. (Notice also that an individual user may elect to see hidden categories, by checking the "Show Hidden Categories" box on the "Misc" tab of My Preferences.) Hidden categories may be found in Category:Hidden categories. User namespaceUser pages do not belong in mainspace categories such as Category:Living people or Category:Biologists, which are reserved for articles of the encyclopedia (in mainspace). Likewise, user subpages that are draft versions of articles should not be categorized into mainspace categories. If you copy an article from mainspace to userspace and it already has categories at the bottom, you should remove them or comment them out. Restore the categories when you restore the article into mainspace. However, it is appropriate to add user pages to user categories (subcategories of Category:Wikipedians) such as Category:Wikipedian biologists. Such userspace categories are intended for the purposes of navigation, and collaboration with other users; remember that Wikipedia is not a social networking site. See Wikipedia:User categories for further information. Image namespaceImages are typically put in categories that just contain images. See categorizing images for information on how to categorize images. For a place to start, see Category:Wikipedia images by subject or its parent category Category:Wikipedia images. You may need to navigate the category hierarchy to find the appropriate category. Redirected categoriesAlthough it is possible to attempt to redirect categories by adding a line such as #REDIRECT [[:Category:Automotive technologies]] to a category, it is not generally recommended because of limitations in the mediawiki software. Categories "redirected" in this way do not prevent the addition of articles to the redirected category. Articles added to the "redirected" category do not show up as in the target category. Until these issues are addressed (in future versions of the software), #REDIRECT should not be added to category pages. "Soft" redirects for categories can be created using {{Category redirect}}. A bot policy traverses categories redirected in this manner moving articles out of the redirected category into the target category; see Template talk:Category redirect. Category sortingPipe tricks and sort keysContrary to some expectations, text after a pipe ("|") in a category declaration is not used in place of the category text. Instead, this text is used as the sort key on the category page itself. However, again contrary to expectations, that sort text is not displayed. One common application is to ignore "The" in article names, so [[Category:Rock and Roll Hall of Fame inductees|Beatles, The]] will make "The Beatles" list under B rather than T on the category page—however, it will still display as The Beatles. As another example, the Category:Three-digit Interstate Highways uses this feature to sort secondary interstates by their primary. That is, the category link in the article for Interstate 190 (South Dakota) is [[Category:Three-digit Interstate Highways|90-1 South Dakota]]. This causes "Interstate 190 (South Dakota)" to be listed right after "Interstate 190 (New York)" and right before "Interstate 290 (Illinois)" under the heading "9" in the category page. This feature is very useful for categories in which:
Using this method to sort category entries is sometimes informally referred to as the pipe trick. However, this use of the pipe character is very different from the original MediaWiki pipe trick which allows one to easily hide parenthetical disambiguation in links. Sort key shortcutsSetting a default sort keyThe default sort key of a page for categories can be changed using the In the absence of a Some editing tools, notably AWB, will attempt to infer an appropriate An easy way of overriding the magic word and using the current article name as the sort key is to use the The default sort magic word is sometimes mistaken as a template. Template:DEFAULTSORT exists to correct such mistakes, but it should not be used. All transclusions of the template in articles should eventually be replaced by the magic word. In other words, Priority sort keysWhen an article is the (or a) main topic article for a given category then the article should be placed at the top of the list. (This is usually the case when the name is the same as the category name, such as the article Suspension bridge in Category:Suspension bridges, or when the scope of the article is the same as that of the category, as in article "Ford Motor Company" - category "Ford", or article "List of Foo" - category "Foo".) To achieve this, leave a space after the pipe, as in [[Category:Suspension bridges| ]]. (Note: In the past, we used different characters, such as "*", instead of the space, but feel free to change that when you come across it.) In addition, you can also add the template {{Catmore}} to the text of the category to unmistakably point to the main topic article. To list an item at the end of a category (after "z"), the sort key ~ can be used: [[Category:Polyhedra|~Polyhedra templates]]. Another common sort letter is "µ", which some editors use to put stubs at the end of the list. Sorting with templates
Sometimes, categorization is done with a template. This can be done by adding a category to the template itself, which will then add to that category all pages on which the template is transcluded. This is often applied to pages not in the article namespace, such as talk, project, or user pages. In such cases, it is often desirable to use the magic word Other specifics
Year categoriesIn categories which are years, such as Category:2004, special sorting guidelines apply:
Interlanguage links to categoriesInterlanguage links work just as they do for regular articles; [[de:Kategorie:Mathematik]] in Category:Mathematics connects to the German counterpart. This can be a useful way to compare coverage, or to look for articles in need of interlanguage links. Note that the different languages may have adopted different standards and practices for categorization, so a given category might not exist in other languages. Tools
Current projectsSee: Wikipedia:WikiProject Categories/Current subprojects Known category-related bugsPlease report new category-related bugs on bugzilla and list them below. (Bugs higher than 1775 have not been checked) Redirects
Special:Categories
Large categories
Updating problemsGeneral
See also
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| All Right Reserved © 2007, Designed by Stylish Blog. |