Template Documentation (sometimes hidden or invisible)
Template tools: purge • what links here • what transclude this • subpages |
- Description
This template is used to sort files or pages in a category which have a progressive numeration up to two or more digits. This is used to avoid that "Page 20" will be sorted after "Page 100", since the system doesn't consider the number as a whole but rather each digits when sorting.
- Notes
The page or files must have a title in the form Word #
, the template will sort the page making the number #
a four-digits one, adding zeros where necessary. Existing in-page sort-key will overwritten the template one, so they must be removed. Sadly, the {{DEFAULTSORT:}}
magic word cannot read template parameters, so they cannot be added in it.
- Syntax
Type {{Sort}}
in the page.
- Samples
Page 1
will be sorted asPage 0001
.Page 100
will be sorted asPage 0100
.Page 1000
will be sorted asPage 1000
.
- See Also
Visit Template:Sort/doc to edit this text! (How does this work?) (Refresh this text - why?)