Difference between revisions of "Template:DEFAULTSORT"
(add cat) |
m (1 revision) |
(No difference)
|
Latest revision as of 04:18, 22 March 2014
Ć
Caution | Please use {{DEFAULTSORT:Sortkey}} rather than {{DEFAULTSORT|Sortkey}}, with a colon (":"), not a pipe symbol ("|"). This uses the magic word directly instead of using the template to call the magic word. |
{{DEFAULTSORT:<sort key>}} is a magic word used to apply a sort key to many categories at once. It can be overridden for individual categories applied to an article by manually applying a sort key.
It is not necessary to use DEFAULTSORT at all if the article or page should be alphabetized according to its title (true for most articles).
To understand DEFAULTSORT read the following
- It is possible to set a default sort key which is different from {{PAGENAME}} by using the magic word {{DEFAULTSORT}} thus:
- {{DEFAULTSORT:new key}}
- In the case of multiple default sort key tags, the last DEFAULTSORT on the final rendering of a page applies for all categories, regardless of the position of the category tags. This also means that a DEFAULTSORT tag included from a template is not effective if another DEFAULTSORT tag occurs later on the page, even if the later DEFAULTSORT tag is also "hidden" (included by another template).
See also
- {{DISPLAYTITLE}}
fa:الگو:DEFAULTSORT
ru:Шаблон:Сортировка
The above documentation is transcluded from Template:DEFAULTSORT/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |