Difference between revisions of "Help:Default Sorting"

From OutHistory
Jump to navigationJump to search
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
This page has been edited from Wikipedia.  
 
This page has been edited from Wikipedia.  
 +
  
 
== What is a default sort key? ==
 
== What is a default sort key? ==
Line 13: Line 14:
 
Even more importantly, pages about a person, such as [[George Eighmey]], would be alphabetized by the person's first rather than last name. <nowiki>To solve this problem write {{DEFAULTSORT:Eighmey, George}}</nowiki> above the categories listed on that page.
 
Even more importantly, pages about a person, such as [[George Eighmey]], would be alphabetized by the person's first rather than last name. <nowiki>To solve this problem write {{DEFAULTSORT:Eighmey, George}}</nowiki> above the categories listed on that page.
  
See also:
 
  
[[http://en.wikipedia.org/wiki/Wikipedia:Categorization#Category sorting | Wikipedia Category Sorting]]
+
 
 +
== See also ==
 +
 
 +
 
 +
[http://en.wikipedia.org/wiki/Wikipedia:Categorization#Other_requirements  Wikipedia Category Sorting]
 +
 
 +
 
 +
 
 +
 
 +
 
 +
[[Category:Help Pages]]

Latest revision as of 17:39, 2 August 2008

This page has been edited from Wikipedia.


What is a default sort key?

A page's default sort key, {{DEFAULTSORT}}, establishes the way that page will be alphabetized on the category pages to which it is linked. If a default sort ket is not specified, the default sort key is the article title. It is therefore not technically necessary to provide a {{DEFAULTSORT}} value if the article title is the desired default sort key.


Setting a default sort key

In some cases, alphabetizing an article by its title does not make sense. For example, an article such as The Sex Wars, 1970s to 1980s would automatically be alphabetized on its category pages under T rather than S. To solve this problem simply write {{DEFAULTSORT: Sex Wars, 1970s to 1980s}} above the categories listed on that page.


Even more importantly, pages about a person, such as George Eighmey, would be alphabetized by the person's first rather than last name. To solve this problem write {{DEFAULTSORT:Eighmey, George}} above the categories listed on that page.


See also

Wikipedia Category Sorting