From Wookieepedia, the Star Wars wiki.
You can place an article in a category by adding the string [[Category:Example]] to the article's text (where Example is the name of the category). A list of categories may be found at Special:Categories.
The category feature has several functions:
[edit] Sort keys
All articles in a given category are sorted alphabetically. If you want an article to be sorted by something other than its name, you should use the following link form in the article's text: [[Category:Example|Sort key]] (where Example is the category name, and Sort key is the value to sort the list by).
For example, by default, the article Luke Skywalker will be listed under the character's first name, "L", because it is the first letter of the article's name. You could instead force the article to be listed by the character's last name ("Skywalker, Luke") by using the string [[Category:Humans|Skywalker, Luke]].
Remember that sort keys are case sensitive, with capital letters being sorted before lowercase letters. Therefore, Luke Skywalker would appear in the list before servomotor.
[edit] Conventions
- When adding Human names (as well as those of other species) to a category, always sort by last name: for Luke Skywalker, use [[Category:Humans|Skywalker, Luke]]
- On "list categories" such as Category:Planets, include additional "list articles" by prefixing the sort key with an asterisk: for List of planets, use [[Category:Planets|*]]. This way, these articles will appear at the beginning of the list.
- Place categories in alphabetical order on separate lines at the end of an article. The only thing coming after a category would be an inter-wiki link.
- Do not place articles in redundant categories. For example, since Luke Skywalker is in Category:Individuals, the article does not go in Category:In-universe articles, as [[Category:Individuals]] is in that category itself.
[edit] Linking to a category
In order to link to a category without the current article being added to that category, place a colon before the word "Category" inside the link.
Example: [[:Category:Individuals]]
[edit] Sub-categories
Category pages may be added to other categories and are then recognized as sub-categories. For example, you could edit Category:Individuals and add the link {{Subcat|In-universe articles}}. The Individuals category would then be a sub-category of the In-universe articles category.
A category is a software feature of MediaWiki that provides automatic indexes, that are useful as table of contents. Together with links and templates they can structure a project and aid navigation.
Using categories
How can I categorize pages?
Any page can be put in a category by editing the page and adding a link to the category. Just type [[Category:]], and put the name of the category between the colon and the brackets.
[[Category:NAME]]
You can create new categories just by typing a new name. Pages can belong to more than one category, by having multiple category tags on the page.
All categories will appear at the bottom of an article page, in a "Categories" box. Clicking the category name will take you to a Category description page which will list all articles and subcategories contained within that category. You may click "edit" on a category description page to add additional text or images to the top of the page above the subcategory lists, and to place the category in another category.
Please note, category description pages are not designed to carry general content - they do not get counted in article statistics, and will not be found via many Special pages.
How do I create subcategories?
A category becomes a subcategory when you edit the category description page to add a Category tag for a "higher level" category. There is no limit to the number of subcategories a category may contain, or to the number of levels of categories. It is possible (though rarely desirable) to create category "loops".
The root category on most wikis is called Category:Browse. It is good practice to build a complete Category Tree, ensuring that all categories on your wiki have a place as subcategories of Category:Browse or its descendants.
How do I link to a category page?
To create an internal link to a category page without placing the edited page into the category itself, you must put a colon before the word "Category":
[[:Category:NAME]]
Can I redirect a category to another category?
No - attempting to Redirect a category will not work correctly (though it is technically possible). What you can do is add a notice (such as Wikia:Template:Category redirect) to inform users that a different category name should be used. You may then delete the old category once everything has been edited to show the correct category. However, if anyone might unknowingly try to re-create the "wrong" category, the template should remain in place for ever.[1]
Where can I see the currently used categories?
You can see a list of all currently used categories for each Wikia at Special:Categories. This list also displays how many pages are within each category.
You can reach this page by clicking the word "Categories" at the beginning of the box at the bottom of any categorized article, or by clicking "Special pages" in the sidebar.
Extensions
Category Tree
Special:CategoryTree is an alternate way to display the contents of a category. It can be transcluded in other pages. See mw:Extension:CategoryTree for details.
The extension also adds the ability to expand subcategories on a category page, allowing you to see further subcategories.
CategorySelect
CategorySelect (also sometimes referred to as 'Category tagging'), is a Wikia developed extension that allows users to quickly add a category to a page, without going into the edit mode for the page. It adds a small (usually green) button in the category area of the page, that uses AJAX functions to add the category code to the page for you.
Read more at Help:CategorySelect
See also
Notes
- ↑ See Wikipedia:Template talk:Category redirect for discussion.