Help:Category: Difference between revisions
Content deleted Content added
m →Setting sort keys: initial case sensitive |
m Protected "Help:Category": Persistent vandalism ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)) |
||
(801 intermediate revisions by more than 100 users not shown) | |||
Line 1: | Line 1: | ||
{{MovedToMediaWiki}} |
|||
<-[[MediaWiki User's Guide]] |
|||
[[Category:Reader handbook]] |
|||
You can place a page in a '''category''' by adding <nowiki>[[Category:</nowiki>''foobar''<nowiki>]]</nowiki> to the article's text (where ''foobar'' is the name of the category). |
|||
[[Category:Categorization]] |
|||
For example to add an article called Albert Einstein to the category "people" you would edit the article and add "<nowiki>[[Category:People]]</nowiki>". |
|||
== Setting sort keys == |
|||
If you want the article, in the list of articles in the category, to be positioned alphabetically by something else than its name you should use the following link form: <nowiki>[[Category:</nowiki>''foobar''<nowiki>|</nowiki>''sort key''<nowiki>]]</nowiki> (where ''foobar'' is the category name and ''sort key'' is the value to sort by). |
|||
For example to add an article called Albert Einstein to the the category "people" and have the article sorted by "Einstein, Albert" you would type "<nowiki>[[Category:People|Einstein, Albert]]</nowiki>". |
|||
The sort keys are case sensitive, so <nowiki>[[Category:</nowiki>''The Foobar''<nowiki>|</nowiki>''Foobar''<nowiki>]] is sorted before <nowiki>[[Category:</nowiki>''The Bar''<nowiki>|</nowiki>''bar''<nowiki>]]. |
|||
== Linking to a category == |
|||
If you want to link to a category without the current article being added to it you should use the following link form <nowiki>[[:Category:</nowiki>''foobar''<nowiki>]]</nowiki> (where ''foobar'' is the category name), note the extra : before Category. |
|||
== Sub-categories == |
|||
Category pages can be added to other categories and will be automatically recognized as sub-categories. For example you could edit <nowiki>[[Category:Soccer]]</nowiki> and add the link <nowiki>[[Category:Sport]]</nowiki>. The Soccer category would then be a sub-category of the Sport category. |
|||
== Viewing a list of categories == |
|||
You can see currently used categories for each project with [[Special:Categories]], for Wikipedia [[en:Special:Categories]]. |
|||
==See also== |
|||
*[[en:Wikipedia:Category]] |
|||
[[Category:MediaWiki User's Guide]] |
Latest revision as of 04:34, 25 January 2022
This page has been moved to Help:Category on mediawiki.org.
Any modifications or additions to this page should be made on mediawiki.org instead. |