Difference between revisions of "Category"
From Retro CDN
(Created page with "'''← Help: Contents''' You can place an article in a '''category''' by adding the string <nowiki>Category:''Example''</nowiki> to the article's text (where ''Exampl...") |
Ccawley2011 (talk | contribs) |
||
Line 8: | Line 8: | ||
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: <nowiki>[[Category:''Example''|''Sort key'']]</nowiki> (where ''Example'' is the category name, and ''Sort key'' is the value to sort the list by). | 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: <nowiki>[[Category:''Example''|''Sort key'']]</nowiki> (where ''Example'' is the category name, and ''Sort key'' is the value to sort the list by). | ||
− | For example, by default, the article [[Yuji Naka]] will be listed under his first name, "Y", 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 ("Naka, Yuji") by using the string <nowiki>[[Category:Developers|Naka, Yuji]]</nowiki>. | + | For example, by default, the article [[sega:Yuji Naka|Yuji Naka]] will be listed under his first name, "Y", 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 ("Naka, Yuji") by using the string <nowiki>[[Category:Developers|Naka, Yuji]]</nowiki>. |
==Linking to a category== | ==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. | 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: <nowiki>[[:Category: | + | Example: <nowiki>[[:Category:Screenshots]]</nowiki> produces [[:Category:Screenshots]] |
==Sub-categories== | ==Sub-categories== | ||
− | Category pages may be added to other categories and are then recognized as sub-categories. For example, you could edit [[:Category:Mega Drive | + | Category pages may be added to other categories and are then recognized as sub-categories. For example, you could edit [[:Category:Photos of Mega Drive accessories]] and add the link <nowiki>[[Category:Photos of accessories]]</nowiki>. The "Photos of Mega Drive accessories" category would then be a sub-category of the "Photos of accessories" category. |
[[Category:Help]] | [[Category:Help]] |
Latest revision as of 09:12, 6 November 2021
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). Though there are the main categories - Games, Characters, Items, Hardware, Developers, Sites, Sceners, Hacks and Hacking Information, a full list of categories may be found at Special:Categories.
The category feature has several functions:
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 Yuji Naka will be listed under his first name, "Y", 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 ("Naka, Yuji") by using the string [[Category:Developers|Naka, Yuji]].
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:Screenshots]] produces Category:Screenshots
Sub-categories
Category pages may be added to other categories and are then recognized as sub-categories. For example, you could edit Category:Photos of Mega Drive accessories and add the link [[Category:Photos of accessories]]. The "Photos of Mega Drive accessories" category would then be a sub-category of the "Photos of accessories" category.