Difference between revisions of "NetHackWiki:Categories"

From NetHackWiki
Jump to navigation Jump to search
(List of categories: Category:Encyclopedia)
 
Line 1: Line 1:
 
{{community}}
 
{{community}}
 
 
A '''category''' is an automatic list of existing [[wiki]] pages, useful to both wiki editors and readers; it is useful for exploring wiki pages that have already been created.
 
A '''category''' is an automatic list of existing [[wiki]] pages, useful to both wiki editors and readers; it is useful for exploring wiki pages that have already been created.
  
Line 7: Line 6:
 
By convention, categories are named like articles, except that they tend to be plural nouns.
 
By convention, categories are named like articles, except that they tend to be plural nouns.
  
=== Category descriptions ===
+
==Category descriptions==
 
If you try to edit a category page, you will only be able to edit the category description that appears ''above'' the list of articles. To actually change the list of articles, you need to edit the individual articles and adjust their category links.
 
If you try to edit a category page, you will only be able to edit the category description that appears ''above'' the list of articles. To actually change the list of articles, you need to edit the individual articles and adjust their category links.
  
=== Sortkeys ===
+
==Sortkeys==
 
Each category page lists its pages in alphabetical order under first letter. It is possible to change this using sortkeys.
 
Each category page lists its pages in alphabetical order under first letter. It is possible to change this using sortkeys.
  
Line 18: Line 17:
 
* <code><nowiki>[[Category:Potions|See invisible]]</nowiki></code>
 
* <code><nowiki>[[Category:Potions|See invisible]]</nowiki></code>
  
=== List of categories ===
+
==List of categories==
 
Current categories include the following. There might already be new categories that are not in this list. You can also look at the current category tree using [[Special:CategoryTree]] (if your browser supports it).
 
Current categories include the following. There might already be new categories that are not in this list. You can also look at the current category tree using [[Special:CategoryTree]] (if your browser supports it).
  
Line 144: Line 143:
 
*** [[:Category:Roles]] ''for player [[role]]s (classes)''
 
*** [[:Category:Roles]] ''for player [[role]]s (classes)''
 
** [[:Category:Encyclopedia]] ''pages converted to [[Template:Encyclopedia]]''
 
** [[:Category:Encyclopedia]] ''pages converted to [[Template:Encyclopedia]]''
 +
 
Only create a category page if the category contains at least one page or two subcategories, and if the category has the potential to contain several pages or subcategories.
 
Only create a category page if the category contains at least one page or two subcategories, and if the category has the potential to contain several pages or subcategories.
  
=== See also ===
+
==See also==
 
* [http://nethackwiki.com/mediawiki/index.php?title=Special%3AAllPages&from=&to=&namespace=14 All pages (Category namespace)]
 
* [http://nethackwiki.com/mediawiki/index.php?title=Special%3AAllPages&from=&to=&namespace=14 All pages (Category namespace)]
 
* [[Special:Categories]] ''list of all categories''
 
* [[Special:Categories]] ''list of all categories''
 +
[[Category:NetHackWiki]]

Latest revision as of 18:31, 6 October 2012

A category is an automatic list of existing wiki pages, useful to both wiki editors and readers; it is useful for exploring wiki pages that have already been created.

To add a page to a category, put a link like [[Category:Articles]] at the bottom of the page. (You could put it anywhere, but the bottom is best.) To only make normal link, such as Category:Articles, use [[:Category:Articles]] with an extra colon before "Category". To move a page to a different category, edit the page and replace the [[Category:...]] tag with the one that you want to use.

By convention, categories are named like articles, except that they tend to be plural nouns.

Category descriptions

If you try to edit a category page, you will only be able to edit the category description that appears above the list of articles. To actually change the list of articles, you need to edit the individual articles and adjust their category links.

Sortkeys

Each category page lists its pages in alphabetical order under first letter. It is possible to change this using sortkeys.

For example, normally everything in Category:Potions would be under "P", because all of the articles start with "potion of": potion of enlightenment, potion of see invisible, and the others. However, using sortkeys, we can put the potion of enlightenment under "E" and that of see invisible under "S". The following code belongs at the bottom of its respective article:

  • [[Category:Potions|Enlightenment]]
  • [[Category:Potions|See invisible]]

List of categories

Current categories include the following. There might already be new categories that are not in this list. You can also look at the current category tree using Special:CategoryTree (if your browser supports it).

Only create a category page if the category contains at least one page or two subcategories, and if the category has the potential to contain several pages or subcategories.

See also