• New article from the Springfield Shopper: A Sneak Peek for “Treehouse of Horror Presents: Simpsons Wicked This Way Comes” has been released!
  • New article from the Springfield Shopper: Season 36 News: Even more Preview Images for “O C’mon All Ye Faithful” have been released!
  • New article from the Springfield Shopper: Season 36 News: The stories which the segments of “Simpsons Wicked This Way Comes” are based of have been announced!
  • Wikisimpsons needs more Featured Article, Picture, Quote, Episode and Comprehensive article nominations!
  • Wikisimpsons has a Discord server! Click here for your invite! Join to talk about the wiki, Simpsons and Tapped Out news, or just to talk to other users.
  • Make an account! It's easy, free, and your work on the wiki can be attributed to you.
TwitterFacebookDiscord

Difference between revisions of "Help:Categories"

Wikisimpsons - The Simpsons Wiki
(Linking to a category)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''← [[Help: Contents]]'''
+
'''← [[Help:Contents]]'''
  
 
You can place an article in a '''category''' by adding the string <nowiki>[[Category:</nowiki>''Example''<nowiki>]]</nowiki> to the article's text (where ''Example'' is the name of the category).  A list of categories may be found at [[Special:Categories]].
 
You can place an article in a '''category''' by adding the string <nowiki>[[Category:</nowiki>''Example''<nowiki>]]</nowiki> to the article's text (where ''Example'' is the name of the category).  A list of categories may be found at [[Special:Categories]].
Line 5: Line 5:
 
The category feature has several functions:
 
The category feature has several functions:
  
==Sort keys==
+
== 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: <nowiki>[[Category:</nowiki>''Example''<nowiki>|</nowiki>''Sort key''<nowiki>]]</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:</nowiki>''Example''<nowiki>|</nowiki>''Sort key''<nowiki>]]</nowiki> (where ''Example'' is the category name, and ''Sort key'' is the value to sort the list by).
  
 
For example, by default, the article [[Bart Simpson]] will be listed under the individual's first name, "B", because it is the first letter of the article's name.  You could instead force the article to be listed by the individual's last name ("Simpson") by using the string <nowiki>[[Category:Characters|Simpson, Bart]]</nowiki>.
 
For example, by default, the article [[Bart Simpson]] will be listed under the individual's first name, "B", because it is the first letter of the article's name.  You could instead force the article to be listed by the individual's last name ("Simpson") by using the string <nowiki>[[Category:Characters|Simpson, Bart]]</nowiki>.
  
Remember that sort keys are case sensitive, with capital letters being sorted before lowercase letters. Therefore, ''Simpson, Bart'' would appear in the list before ''seymour skinner''.
+
Remember that sort keys are case sensitive, with capital letters being sorted before lowercase letters. Therefore, ''Simpson, Bart'' would appear in the list before ''Seymour Skinner''.
  
==Linking to a category==
+
Alternatively, you could add <nowiki>{{DEFAULTSORT:Y, X}}</nowiki> to a page. This will sort a page in all categories that page is in.
 +
 
 +
== 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:Main Characters]]</nowiki>
+
Example: <nowiki>[[:Category:Adults]]</nowiki> link to [[:Category:Adults]].
 +
 
 +
== Sub-categories ==
 +
Category pages may be added to other categories and are then recognized as sub-categories.  For example, you could edit <nowiki>[[Category:Adults]]</nowiki> and add the link <nowiki>[[Category:Characters]]</nowiki>. The Adults category would then be a sub-category of the Characters category.
 +
 
 +
== See also ==
 +
*[[Special:Categories]]
  
==Sub-categories==
+
{{Help}}
Category pages may be added to other categories and are then recognized as sub-categories.  For example, you could edit <nowiki>[[Category:Main Characters]]</nowiki> and add the link <nowiki>[[Category:Characters]]</nowiki>.  The Main Characters category would then be a sub-category of the Characters category.
 
  
 
[[Category: Help]]
 
[[Category: Help]]

Latest revision as of 05:29, November 19, 2011

Help:Contents

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:

Sort keys[edit]

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 Bart Simpson will be listed under the individual's first name, "B", because it is the first letter of the article's name. You could instead force the article to be listed by the individual's last name ("Simpson") by using the string [[Category:Characters|Simpson, Bart]].

Remember that sort keys are case sensitive, with capital letters being sorted before lowercase letters. Therefore, Simpson, Bart would appear in the list before Seymour Skinner.

Alternatively, you could add {{DEFAULTSORT:Y, X}} to a page. This will sort a page in all categories that page is in.

Linking to a category[edit]

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:Adults]] link to Category:Adults.

Sub-categories[edit]

Category pages may be added to other categories and are then recognized as sub-categories. For example, you could edit [[Category:Adults]] and add the link [[Category:Characters]]. The Adults category would then be a sub-category of the Characters category.

See also[edit]