Anonymous
×
Create a new article
Write your page title here:
We currently have 2,416 articles on Monstropedia. Type your article name above or click on one of the titles below and start writing!



Monstropedia
2,416Articles

Difference between revisions of "How to work with categories"

 
m (Reverted edit of Janus, changed back to last version by Devious Viper)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This article provides guidelines on creating and organizing categories.
==What are categories?==
 
Categories allow articles to be placed in one or more groups, and allows those groups to be further categorized.
 
When an article belongs to a category, it will contain a special link to a page that describes the category.  Similarly, when a sub-category belongs to a parent category, it will contain a special 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 categorisation schemes to co-exist simultaneously. It is possible to construct loops in the category space, but this discouraged.
 
 
 
==What is the purpose of categories?==
 
There are two main ways to use categories: '''lists and topics'''.
 
'''When starting a subcategory, making an early decision about whether it is a list or a topic will reduce later renames, recategorizations, and discussions. '''
 
The category page can be used to tell others whether it is a list or a topic, and to link to a main list or article.
 


For a quick introduction to categories, see [[Wikipedia:Category]]. For everything you ever wanted to know about categories, see [[Wikipedia:Categorisation FAQ]].


==When to use categories==
==When to use categories==


Every page in the article namespace should belong to at least one category. Categories should be on major topics that are likely to be useful to someone reading the article.
Every article should belong to at least one category. Categories should be on major topics that are likely to be useful to someone reading the article.
 
:'''Article:''' [[Michael Jackson]]
:'''Useful category:''' [[:Category:Pop singers]]
:'''Not useful:''' ''Category:Musicians whose first name starts with M''


Questions to ask to know whether it is appropriate to add an article to a category:
Questions to ask to know whether it is appropriate to add an article to a category:
Line 15: Line 29:
*If the category does not already exist, is it possible to write a few paragraphs or more on the subject of the category, explaining it?
*If the category does not already exist, is it possible to write a few paragraphs or more on the subject of the category, explaining it?
*If you go to the article from the category, will it be obvious why it's there? Is the category subject prominently discussed in the article?
*If you go to the article from the category, will it be obvious why it's there? Is the category subject prominently discussed in the article?
If the answer to either of these questions is no, then the category is probably inappropriate.  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 categorized in some [[:Category:Artistname albums]] category, which is in turn categorized in [[:Category:Albums by artist]].
If the answer to either of these questions is no, then the category is probably inappropriate.  Note that it is always appropriate to add articles to categories that fit into well established taxonomies.   


An article will often be in several categories. Restraint should be used, however — categories become less effective the more there are on a given article.
Each Monstropedia 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.


There is currently debate about whether an article can be in both a category and its subcategoryIn practice, articles are being categorized both ways.  For more about this subject see [[Wikipedia talk:Categorization|the talk page]].  Until consensus is reached feel free to do it either way, and please don't start any revert wars about this issue. Here is a summary of some of the views:
Categories appear without annotations, so be careful when creating or filling categoriesUnless it is self-evident and uncontroversial that something belongs in a category, it should not be put into a category.
# Articles should not be in both a category and its subcategory, for example [[Microsoft Office]] is in [[:Category:Microsoft software]], so should not also be in [[:Category:Software]].
# While articles should not usually be in both a category and its subcategory, there are some cases where it make sense, at least temporarily. Some categories represent such inessential aspects of their parent categories, that they are no substitute for inclusion in the parent category. For example, if [[Pier Paolo Pasolini]] were in [[:Category:Writers]] and you were moving him into [[:Category:Murdered writers]], you should not remove him from [[:Category:Writers]]. Yes, that latter category should be refined (for example, to [[:Category:Italian writers]]), but if you simply "refine" [[:Category:Writers]] to [[:Category:Murdered writers]] you make it less likely that [[:Category:Italian writers]] will be added and you make it less likely that someone who does not already know his biography well will ever find the article.


There is also a related debate concerning the categorisation of articles that have categories of the same name:
# An article with the same name as a category should be only in that category, for instance, [[Deism]] is only in [[:Category:Deism]].
# An article with the same name as a category should be in both that category and the higher level categories. The category will also be in all or some of the higher level categories. Both the article and the category will be listed in the higher level categories. For example, [[Musical theatre]] used to be in both [[:Category:Musical theatre]] and [[:Category:Theatrical genres]].
# An article with the same name as a category should only be in the higher level categories.


Categories appear without annotations, so be careful of [[NPOV]] when creating or filling categories.  Unless it is self-evident and uncontroversial that something belongs in a category, it should not be put into a category.


Exceptions to the above rules are categories such as [[:Category:Stub categories|Stub categories]] which are intended to aid the function of Wikipedia editing.
===What is the difference between a list and a category?===


For alternative methods of grouping articles, and the circumstances in which they should be used, see [[Wikipedia:Categories, lists, and series boxes]].
Grouping articles into a category is not the same as making a list of articles.  When you make a list of articles, you edit the list directly; but when you place articles into a category, you simply edit the articles, and a list of articles is automatically created on the category's page.  Despite the difference in how they are maintained, it is sometimes convenient to think of a category as a list of articles.


For articles without any stable category, {{tl|catneeded}} tag can be used to bring attention (although [[Special:Uncategorizedpages]] exists).
With Monstropedia, lists are mainly used to sort creatures by their attributes. Ex [[List of winged creatures ]]; [[list of movies with King Kong]]


===Categories vs. Lists vs. Info boxes===


See, [[Wikipedia:Categories, lists, and series boxes]].


===Categories applied to articles on people===


A separate wikipedia page [[Wikipedia:Categorization of people]] was created to help you in designing, applying and checking categories that are used for articles on people.
==Can pages be in more than one category?==


==Categories do not form a tree==
Yes, it is expected that most pages will be members of more than one category.


Each 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).
In exactly the same way, each category can be a member of more than one parent category.


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.


==Cycles should usually be avoided==


Although the MediaWiki software does not prevent [[cycle (graph theory)|cycles]] (loops), these should usually be avoided. Here is an example existing in early November 2005: [[:Category:Academic disciplines]] - [[:Category:Interdisciplinary fields]] - [[:Category:Social sciences]] - [[:Category:Education]] - [[:Category:Academic disciplines]] - [[:Category:Interdisciplinary fields]] ...


==Guidelines for assignment of categories==
==What is the naming convention for categories?==
<!--:If this section stabilizes, it should probably be moved into the User's Guide. -- [[User:Beland|Beland]] 08:06, 13 Jun 2004 (UTC)
::Maybe with a major rewrite. It is all but useless right now, giving no basic information on How to create categories/subcategories - [[User:Marshman|Marshman]] 21:57, 5 Jul 2004 (UTC) -->


===How to create categories===


Creating a category is as simple as adding a soft link to the appropriate article in the Category: namespace; for instance, to add [[Felis silvestris catus]] to the "fluffy creatures" category, you would edit the article and enter <tt><nowiki>[[Category:Fluffy creatures]]</nowiki></tt> at the bottom, but ''before'' [[Wikipedia:Interlanguage links|interlanguage links]]. Although the link will not appear in the article text, a page called <tt>Category:Fluffy creatures</tt> will automatically list alphabetically all articles that contain the <tt><nowiki>[[Category:Fluffy creatures]]</nowiki></tt> link.  The appeal of categories is that unlike lists, they update themselves automatically, and that one can use them to quickly find related articlesHowever, categories are not a substitute for [[Wikipedia:list|list]]s, and you will find that many articles belong to both lists and categories.  You may see some inconsistencies when first creating the category: it may alternate between appearing empty and appearing with your first additionsIt will probably correct itself in a few minutes.
===General naming conventions===
*For a pre-existing category, the article of the same or similar name and (rarely, or) on the same topic should be added to that category. When creating an article one should, only if appropriate (especially horizontally), create a category of the same or similar name on the same topic <!-- articles should be more or equally specific as the categories they are in -->.
*Articles should be placed in the most specific categories possible. Categories should be more or equally as broad as the articles they contain; articles should be more or equally specific as the categories they are in.
*Avoid abbreviations.
*Don't hard-code the category structure into names.
*Choose category names that are able to stand alone, independent of the way a category is connected to other categories.  Example: "Wikipedia policy precedents and examples", not "Precedents and examples" (a subcategory of "Wikipedia policies and guidelines").
*Topical category names should be singular.  Examples: "[[:Category:Law|Law]]", "[[:Category:Civilization|Civilization]]"
*As with lists avoid descriptive adjectives such as ''famous'', ''important'', or ''notable'' in category titles.
 
===Special conventions for lists of items===
 
*Category names for lists of items should be '''plural'''.
*In instances where a list page simply contains an alphabetical list of items with no other information it could be replaced by a category.
*If the list contains extra information or is non-alphabetical (for example sorted by date) it should remain as a list page, rather than a category.
*Categories can only list articles that exist and have been assigned to the category.  Therefore, comprehensive lists, (such as "[[List of winged creatures]]"), which must include all items regardless of whether an article already exists for them, should not be replaced by categories. Similarly, in an area that is not yet well-covered, lists can effectively indicate articles that still need to be written; categories cannot do this.
*If there are a lot of lists regarding a particular subject area, it might be useful to have a category to hold them.  These categories should only contain list pages.
 
 
==How do I place an article in categories?==
 
Edit the article and add <nowiki>[[Category:</nowiki>''Category name''<nowiki>]]</nowiki> at the bottom of the article. Categories can be placed inside parent categories in the same way.
 
 
 
==How do I reference a category on a page without categorising the page?==
 
To link to the category page, put a colon before the word "category", inside the link, e.g.<br> <nowiki>[[:Category:</nowiki>''Category&nbsp;name''<nowiki>]]</nowiki>. The link will appear as [[:Category:Category name]].
 
 
 
 
==Where should the category tag go in the article?==
 
Category tags should be placed at the bottom of the article, after the appendices and before the inter-wiki language links. This ensures that when newcomers press "edit", they are 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 when an editor is updating the categorization of a bunch of articles.
 
 
 
==How do I force an article to show up at the top of the category page?==
 
It is sometimes desirable to force the most important articles or sub-categories to appear at the beginning of the sorted list on a category's page.  To do this, use a space as the sort key.  For example, <nowiki>[[Category:Whatever|&nbsp;]]</nowiki>. Other special characters, such as '*' and '!' are also used for this purpose.
 
 
 
==What goes on a category page?==
 
Category pages exist to be a convenient cross-reference to related articles and other categories.
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 pageIf a category and a page have a one-to-one correspondence, then the {{tl|catmore}} template or a similar template is often the best solution.
 
 
 
 
==Somebody changed my categorization - what do I do?==
 
It is preferable not to change the categorization system once it is agreed. Please use the Talk page to discuss changes.
 
 
 
 
==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.  This is to avoid the situation where someone is placing an article into multiple categories, someone else is populating a category with multiple articles and parent categories, while someone else is trying to restructure part of the category tree, and nobody ends up with what they want.
 
 
 
 
==What categories already exist?==
 
The best way to find out what exists is to browse. Either start at [[Category]] or start at [[:Category:Fundamental]], which shows the "top" level categories, to which all other categories should be connected.   
 
 
 
==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 [[Special:Uncategorizedcategories]].
 
 
 
==How do I delete a category?==
 
Ask the admin.
 
 
 
==What is the state of categorisation?==
 
When trying to categorise an article, it is still difficult to tell into which categories it should be placed, and when trying to categorise by a field of interest, one is likely to intersect someone else's efforts from another field.
 
Category policies are still being determined through experimentation, discussion, and polls.  Categorisations and systems are likely to be discussed and improved upon for a very long time.
 
 
 
==Categories and articles having the same name.==
 
In many cases, a category will have a "main article" or "overview", which describes the subject of that category. In these cases the category and the article often have the same name. If this is the case, do the following
 
* Add the <nowiki>"{{catmore}}"</nowiki> tag in the category, after any description of the material covered by that 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. <nowiki>[[Category:''catname''| ]]</nowiki>).
 
For such a category/article pair, the guidelines for what other categories the "main article" should be in are still being worked out.  Normally articles should not appear both in a category and a "parent" of that category. Some editors feel that an exception should be made for the "main article" of a category&mdash;that in many cases the category system makes more sense if each main article appears in some or all of the categories that the equivalent category appears in. Others suggest that the main article should occur ''only'' in its like-named category and no othersThe latter may be optimal if the category structure is in flux, but it is not optimal for browsing, where the user has to keep bouncing back an forth between the categories of "main" pages and other pages.
 
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
 
<nowiki>#REDIRECT [[City]]</nowiki>
 
This helps to prevent confusion by blocking others from creating a competing page that overlaps in scope and you will be able to use the catmore template without specifying any additional parameters.
 
In theory, if a main article is categorized correctly in its corresponding category, the use of the catmore template is redundant.
 


Note that, although "uncreated" categories ''will'' correctly list 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 edit link from an article and add a parent category and a category description as explained below.


===Creating subcategories===
Create subcategory pages by putting the name of the parent category on a category page that you would like to be the subcategory.  Child categories (subcategories) are created by putting <nowiki>[[category:</nowiki>''parent_category_name''<nowiki>]]</nowiki> '''on the lower-level category pages'''.  For example, on a (sub)category page called ''category:Roses'' you put <nowiki>[[category:Flowers]]</nowiki>, Roses becomes a subcategory of Flowers. 


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 ''sub''category.


When assigning an article into categories, try to be thorough in a
===How to create categories===
"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 LBGT).  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. (For instance, '1990' is more correctly in 'Category:Years' rather than 'Category:Places'.)


In the "vertical" dimension, you should probably be more frugal.  A
Creating a category is as simple as adding a soft link to the appropriate article in the Category: namespace; for instance, to add [[Griffin]] to the "Greek Mythology" category, you would edit the article and enter <tt><nowiki>[[Category:Greek Mythology]]</nowiki></tt> at the bottom. Although the link will not appear in the article text, a page called <tt>Category:Greek Mythology</tt> will automatically list alphabetically all articles that contain the <tt><nowiki>[[Category:Greek Mythology]]</nowiki></tt> linkThe appeal of categories is that unlike lists, they update themselves automatically, and that one can use them to quickly find related articlesHowever, categories are not a substitute for lists, and you will find that many articles belong to both lists and categories.  You may see some inconsistencies when first creating the category: it may alternate between appearing empty and appearing with your first additions.  It will probably correct itself in a few minutes.
good general rule is that articles should be placed in the most
specific categories they reasonably fit in.  For example,
[[Elizabeth_II_of_the_United_Kingdom| Queen Elizabeth]] should not be
listed directly under People, but 'Category:Monarchs of the United Kingdom' might be a good
place for herWe know that all Queens of the United Kingdom qualify as Famous
Britons and as Royalty, and all of those folks qualify as PeopleBut
sometimes there's a good reason to assign an article to two
categories, one of which is a direct or indirect subcategory of
anotherFor a well-argued case study, see [[John Lennon]].


Whatever categories you add, make sure they do not implicitly violate
Note that, although "uncreated" categories ''will'' correctly list 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 edit link from an article and add a parent category and a category description as explained below.
the neutral point of view policy. If the nature of something is in
dispute (like whether or not it's fictional or scientific or whatever),
you may want to avoid labelling it or mark the categorization as
disputed.  Most categorizations are pretty straightforward, though.


===Making groups of subcategories===
Categories can only list 200 entries at a time.  When there are more than 200 entries, only the first 200 will be displayed.  To make it easy to navigate, add a TOC (table of contents).  TOCs are added by typing:
:'''''<nowiki>{{CategoryTOC}}</nowiki>''''' - which adds a complete TOC (Top, 0 - 9, A-Z)
:'''''<nowiki>{{CatAZ}}</nowiki>''''' - which adds a TOC without numbers. This is for categories with members that only start with letters.


When a given category gets crowded, also consider making several 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).


A set of related categories often forms a hierarchy or a nexus.  This can take several different forms, all of which are welcome and encouraged:
===Creating subcategories===


* A taxonomic groupingFor example, [[:Category:South Asian countries]] is part of a geographical hierarchy.  [[:Category:Academic disciplines]] catalogs divisions between fields of study.
Create subcategory pages by putting the name of the parent category on a category page that you would like to be the subcategoryChild categories (subcategories) are created by putting <nowiki>[[category:</nowiki>''parent_category_name''<nowiki>]]</nowiki> '''on the lower-level category pages'''For example, on a (sub)category page called ''category:Roses'' you put <nowiki>[[category:Flowers]]</nowiki>, Roses becomes a subcategory of Flowers.


* A functional grouping.  Examples: [[:Category:Ancient Rome]], [[:Category:World War II]], and [[:Category:Commercial item transport and distribution]]. These bring together articles and subcategories from different fields or taxonomies (history, war, culture, people, companies, industries, technologies) that have an interesting common thread.
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 ''sub''category.
When assigning an article into categories, try to be thorough in a "horizontal" sense. 
A good general rule is that articles should be placed in the most specific categories they reasonably fit in.


* Hybrid forms. For example, [[:Category:Art]] is both part of the taxonomy of [[:Category:Academia]] and a cross-reference point for lots of things that have little in common except that they have something to do with art.
For instance, the instance Dracula does not belong to the category "Myths and Legends" but "Classic vampires" as it is only recently that the historical character has been associated with vampirism.  


* Offshoot forms. For example, [[:Category:Film stubs]] contains subcategories of [[:Category:Comedy film stubs]] for [[comedy film]]s, and [[:Category:Drama film stubs]] for [[drama film]]s.
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 (like whether or not it's fictional or scientific or whatever), you may want to avoid labelling it or mark the categorization as
disputed.  Most categorizations are pretty straightforward, though.


===Category membership and creation===
When writing the description for a category, give it a parent category.  In fact, you should 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]]. A few categories do only merely subdivide their 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.


===Wikipedia namespace===


Categories relating to the [[Wikipedia:project namespace|Wikipedia namespace]] should be added only to the [[Wikipedia:talk page|talk page]] of articles. For example, tags suggesting the article is [[:Category:To do|needs work]], would be placed on the talk page as they are relevant to editors, not an aid to browsing in the way ordinary categories are.


===User namespace===
==Making groups of subcategories==
Categories relating to the User namespace should be added only to Wikipedia-specific categories.  Users should ''not'' add their user pages to article namespace categories such as [[:Category:People]] or other subcategories, [[:Category:Biologists]] etc, which are reserved for pages in the article namespace.  However, it is appropriate to add a user page to ''Wikipedia-specific categories'' such as [[:Category:Wikipedians]] or other similar subcategories such as [[:Category:Wikipedian musicians]]. (See also [[m:Help:Category]] for guidelines on category "pollution").


If you copy an article to your user namespace (for example, as a temporary draft or in response to an edit war) you should decategorize it.
Categories can only list 200 entries at a time.  When there are more than 200 entries, only the first 200 will be displayed.  To make it easy to navigate, add a TOC (table of contents).  TOCs are added by typing:
:'''''<nowiki>{{CategoryTOC}}</nowiki>''''' - which adds a complete TOC (Top, 0 - 9, A-Z)
:'''''<nowiki>{{CatAZ}}</nowiki>''''' - which adds a TOC without numbers. This is for categories with members that only start with letters.


===Image namespace===
When a given category gets crowded, also consider making several 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:Cryptozoology]] gets too big, you don't have to choose between subdividing it by geographical areas or subdividing it by type of creatures, you can simultaneously subdivide it in both ways).
See [[m:Help:Image_page#Categorizing_images|categorizing images]].


==Category naming==
Categories follow the same general naming conventions as articles, for example do not capitalise regular nouns.  For specific conventions related to categories, see [[Wikipedia:Naming conventions (categories)]].


==Categories requirements and usage==
==Categories requirements and usage==
===User browsing===
===User browsing===
Categories (along with other features, like cross-references) should help users find the information they are looking for as quickly as possible, even if they don't know that it exists or what it's called.
Categories (along with other features, like cross-references) should help users find the information they are looking for as quickly as possible, even if they don't know that it exists or what it's called.


===Links to categories===
===Links to categories===
You can create a link to a category page without adding the page to that category by using a colon before the word Category.  Example: <tt><nowiki>[[:Category:Automotive technologies]]</nowiki></tt> appears as [[:Category:Automotive technologies]].
You can create a link to a category page without adding the page to that category by using a colon before the word Category.  Example: <tt><nowiki>[[:Category:Spirits]</nowiki></tt> appears as [[:Category:Spirits]].
 


===Redirected categories===
===Redirected categories===
Although it is possible to attempt to redirect categories by adding a line such as <tt><nowiki>#REDIRECT [[:Category:Automotive technologies]]</nowiki></tt> 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.
Although it is possible to attempt to redirect categories by adding a line such as <tt><nowiki>#REDIRECT [[:Category:Spirits]]</nowiki></tt> 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.
Until these issues are addressed (in future versions of the software), '''#REDIRECT''' should not be added to category pages.


===Category sorting===
===Category sorting===
Contrary to some expectations, text after a pipe ("<tt>|</tt>") in a category link is not used in place of the category text.  Rather, this text is used as the sort key on the category page itself.  However, again contrary to expectations, that sort text is not displayed.   
Contrary to some expectations, text after a pipe ("<tt>|</tt>") in a category link is not used in place of the category text.  Rather, this text is used as the sort key on the category page itself.  However, again contrary to expectations, that sort text is not displayed.   


For example, the [[:Category:Three-digit Interstate Highways]] uses this property to sort secondary interstates by their primary.  That is, the category link in the article for [[Interstate 190 (Illinois)]] is <tt><nowiki>[[Category:Three-digit Interstate Highways|90-1 Illinois]]</nowiki></tt>.  This causes "Interstate 190 (Illinois)" to be listed right after "Interstate 189" and right before "Interstate 290 (Massachusetts)" under the heading "9" in the category page.
This feature is very useful for categories in which:
* the entries are people, in which case sorting by last name is preferable (example: [[:Category:Presidents of the United States]]).
* variations in the naming of entries causes inconsistent sorting (example: [[List of counties in Nebraska]], [[List of counties in Montana]], but [[List of Nevada counties]] in [[:Category:Lists of U.S. counties]]).
* the logical sort order is not alphabetical (example: individual month articles in year categories such as [[:Category:2004]], using e.g. the sort key "*2004-04" for April).


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 Wikimedia [[m:Help:Piped link#Automatic conversion of the wikitext (pipe trick)|pipe trick]] which allows one to easily hide parenthetical disambiguation in links.
It is possible to force an article or subcategory to the top of the list by using a non-alphanumeric character as the first after the pipe.  For example, using <tt><nowiki>[[Category:Classic monsters| Frankenstein monster]]</nowiki></tt> (note the space) or <tt><nowiki>[[Category:Classic monsters|*Frankenstein monster]]</nowiki></tt> would force that article to be displayed before all the others.


It is possible to force an article or subcategory to the top of the list by using a non-alphanumeric character as the first after the pipe.  For example, using <tt><nowiki>[[Category:Ford| Ford Motor Company]]</nowiki></tt> (note the space) or <tt><nowiki>[[Category:Ford|*Ford Motor Company]]</nowiki></tt> would force that article to be displayed before all the others.
[[Category:Editors Guides]]

Latest revision as of 17:16, 18 April 2007

What are categories?

Categories allow articles to be placed in one or more groups, and allows those groups to be further categorized.

When an article belongs to a category, it will contain a special link to a page that describes the category. Similarly, when a sub-category belongs to a parent category, it will contain a special 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 categorisation schemes to co-exist simultaneously. It is possible to construct loops in the category space, but this discouraged.


What is the purpose of categories?

There are two main ways to use categories: lists and topics.

When starting a subcategory, making an early decision about whether it is a list or a topic will reduce later renames, recategorizations, and discussions.

The category page can be used to tell others whether it is a list or a topic, and to link to a main list or article.


When to use categories

Every article should belong to at least one category. Categories should be on major topics that are likely to be useful to someone reading the article.

Questions to ask to know whether it is appropriate to add an article to a category:

  • If the category does not already exist, is it possible to write a few paragraphs or more on the subject of the category, explaining it?
  • If you go to the article from the category, will it be obvious why it's there? Is the category subject prominently discussed in the article?

If the answer to either of these questions is no, then the category is probably inappropriate. Note that it is always appropriate to add articles to categories that fit into well established taxonomies.

Each Monstropedia 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.

Categories appear without annotations, so be careful when creating or filling categories. Unless it is self-evident and uncontroversial that something belongs in a category, it should not be put into a category.


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. When you make a list of articles, you edit the list directly; but when you place articles into a category, you simply edit the articles, and a list of articles is automatically created on the category's page. Despite the difference in how they are maintained, it is sometimes convenient to think of a category as a list of articles.

With Monstropedia, lists are mainly used to sort creatures by their attributes. Ex List of winged creatures ; list of movies with King Kong



Can pages be in more than one category?

Yes, it is expected that most pages will be members of more than one category.

In exactly the same way, each category can be a member of more than one parent category.



What is the naming convention for categories?

General naming conventions

  • For a pre-existing category, the article of the same or similar name and (rarely, or) on the same topic should be added to that category. When creating an article one should, only if appropriate (especially horizontally), create a category of the same or similar name on the same topic .
  • Articles should be placed in the most specific categories possible. Categories should be more or equally as broad as the articles they contain; articles should be more or equally specific as the categories they are in.
  • Avoid abbreviations.
  • Don't hard-code the category structure into names.
  • Choose category names that are able to stand alone, independent of the way a category is connected to other categories. Example: "Wikipedia policy precedents and examples", not "Precedents and examples" (a subcategory of "Wikipedia policies and guidelines").
  • Topical category names should be singular. Examples: "Law", "Civilization"
  • As with lists avoid descriptive adjectives such as famous, important, or notable in category titles.

Special conventions for lists of items

  • Category names for lists of items should be plural.
  • In instances where a list page simply contains an alphabetical list of items with no other information it could be replaced by a category.
  • If the list contains extra information or is non-alphabetical (for example sorted by date) it should remain as a list page, rather than a category.
  • Categories can only list articles that exist and have been assigned to the category. Therefore, comprehensive lists, (such as "List of winged creatures"), which must include all items regardless of whether an article already exists for them, should not be replaced by categories. Similarly, in an area that is not yet well-covered, lists can effectively indicate articles that still need to be written; categories cannot do this.
  • If there are a lot of lists regarding a particular subject area, it might be useful to have a category to hold them. These categories should only contain list pages.


How do I place an article in categories?

Edit the article and add [[Category:Category name]] at the bottom of the article. Categories can be placed inside parent categories in the same way.


How do I reference a category on a page without categorising the page?

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



Where should the category tag go in the article?

Category tags should be placed at the bottom of the article, after the appendices and before the inter-wiki language links. This ensures that when newcomers press "edit", they are 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 when an editor is updating the categorization of a bunch of articles.


How do I force an article to show up at the top of the category page?

It is sometimes desirable to force the most important articles or sub-categories to appear at the beginning of the sorted list on a category's page. To do this, use a space as the sort key. For example, [[Category:Whatever| ]]. Other special characters, such as '*' and '!' are also used for this purpose.


What goes on a category page?

Category pages exist to be a convenient cross-reference to related articles and other categories. 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. If a category and a page have a one-to-one correspondence, then the Template:Tl template or a similar template is often the best solution.



Somebody changed my categorization - what do I do?

It is preferable not to change the categorization system once it is agreed. Please use the Talk page to discuss changes.



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. This is to avoid the situation where someone is placing an article into multiple categories, someone else is populating a category with multiple articles and parent categories, while someone else is trying to restructure part of the category tree, and nobody ends up with what they want.



What categories already exist?

The best way to find out what exists is to browse. Either start at Category or start at Category:Fundamental, which shows the "top" level categories, to which all other categories should be connected.


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 Special:Uncategorizedcategories.


How do I delete a category?

Ask the admin.


What is the state of categorisation?

When trying to categorise an article, it is still difficult to tell into which categories it should be placed, and when trying to categorise by a field of interest, one is likely to intersect someone else's efforts from another field.

Category policies are still being determined through experimentation, discussion, and polls. Categorisations and systems are likely to be discussed and improved upon for a very long time.


Categories and articles having the same name.

In many cases, a category will have a "main article" or "overview", which describes the subject of that category. In these cases the category and the article often have the same name. If this is the case, do the following

  • Add the "{{catmore}}" tag in the category, after any description of the material covered by that 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:''catname''| ]]).

For such a category/article pair, the guidelines for what other categories the "main article" should be in are still being worked out. Normally articles should not appear both in a category and a "parent" of that category. Some editors feel that an exception should be made for the "main article" of a category—that in many cases the category system makes more sense if each main article appears in some or all of the categories that the equivalent category appears in. Others suggest that the main article should occur only in its like-named category and no others. The latter may be optimal if the category structure is in flux, but it is not optimal for browsing, where the user has to keep bouncing back an forth between the categories of "main" pages and other pages.

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]]

This helps to prevent confusion by blocking others from creating a competing page that overlaps in scope and you will be able to use the catmore template without specifying any additional parameters.

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



How to create categories

Creating a category is as simple as adding a soft link to the appropriate article in the Category: namespace; for instance, to add Griffin to the "Greek Mythology" category, you would edit the article and enter [[Category:Greek Mythology]] at the bottom. Although the link will not appear in the article text, a page called Category:Greek Mythology will automatically list alphabetically all articles that contain the [[Category:Greek Mythology]] link. The appeal of categories is that unlike lists, they update themselves automatically, and that one can use them to quickly find related articles. However, categories are not a substitute for lists, and you will find that many articles belong to both lists and categories. You may see some inconsistencies when first creating the category: it may alternate between appearing empty and appearing with your first additions. It will probably correct itself in a few minutes.

Note that, although "uncreated" categories will correctly list 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 edit link from an article and add a parent category and a category description as explained below.


Creating subcategories

Create subcategory pages by putting the name of the parent category on a category page that you would like to be the subcategory. Child categories (subcategories) are created by putting [[category:parent_category_name]] on the lower-level category pages. For example, on a (sub)category page called category:Roses you put [[category:Flowers]], Roses becomes a subcategory of Flowers.

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. A good general rule is that articles should be placed in the most specific categories they reasonably fit in.

For instance, the instance Dracula does not belong to the category "Myths and Legends" but "Classic vampires" as it is only recently that the historical character has been associated with vampirism.

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 (like whether or not it's fictional or scientific or whatever), you may want to avoid labelling it or mark the categorization as disputed. Most categorizations are pretty straightforward, though.



Making groups of subcategories

Categories can only list 200 entries at a time. When there are more than 200 entries, only the first 200 will be displayed. To make it easy to navigate, add a TOC (table of contents). TOCs are added by typing:

{{CategoryTOC}} - which adds a complete TOC (Top, 0 - 9, A-Z)
{{CatAZ}} - which adds a TOC without numbers. This is for categories with members that only start with letters.

When a given category gets crowded, also consider making several 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:Cryptozoology gets too big, you don't have to choose between subdividing it by geographical areas or subdividing it by type of creatures, you can simultaneously subdivide it in both ways).


Categories requirements and usage

User browsing

Categories (along with other features, like cross-references) should help users find the information they are looking for as quickly as possible, even if they don't know that it exists or what it's called.

Links to categories

You can create a link to a category page without adding the page to that category by using a colon before the word Category. Example: [[:Category:Spirits] appears as Category:Spirits.


Redirected categories

Although it is possible to attempt to redirect categories by adding a line such as #REDIRECT [[:Category:Spirits]] 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.


Category sorting

Contrary to some expectations, text after a pipe ("|") in a category link is not used in place of the category text. Rather, this text is used as the sort key on the category page itself. However, again contrary to expectations, that sort text is not displayed.


It is possible to force an article or subcategory to the top of the list by using a non-alphanumeric character as the first after the pipe. For example, using [[Category:Classic monsters| Frankenstein monster]] (note the space) or [[Category:Classic monsters|*Frankenstein monster]] would force that article to be displayed before all the others.