Template:DEFAULTSORT

Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

{{DEFAULTSORT:<sort key>}} is a magic word that is used to modify the sequence of pages in categories. Generally, this is used to place a family name first, so, for example, James T. Kirk would be alphabetized under "K" instead of "J."

Note that a sort key directly in a category tag will override this magic word, and that, for example, in DPL generated lists, the page will still be listed with its actual title, regardless of the modified sort order.

It is not necessary to use this magic word if the article's actual title is how it should be grouped.

In the case of multiple DEFAULTSORT tags, only the last one rendered will have any effect on categories.

Please use the magic word directly, with a ":", instead of this template, which uses a pipe symbol "|", if the article is in the pages with too many expensive parser function calls category.

Usage[edit source]

{{DEFAULTSORT|Sort key}}

See also[edit source]

External links[edit source]