Template:Sortkey/doc
Jump to navigation
Jump to search
This page contains the documentation for Template:Sortkey. It includes information about the template, such as usage and categories, and is not displayed when using the template itself.
This template is used to tell the software how to sort certain kinds of data in a sortable table when they would otherwise not be sorted intuitively.
Parameters
The following are types of formatting that can be used separately, each using a named parameter as shown. More types can be added as needed.
- date - formats a date; must be in an unambiguous format, such as "January 1, 2000" or "1 Jan 2000".
- number - formats a number.
- first unnamed parameter (optional) - use this to display different text in the cell. Otherwise, the given parameter will be used as is.
Constraints
Currently, the following apply, but if needed they can be accounted for with additional parameters.
- No other properties can be applied to the cell.
- Does not work with lists.
- Other content cannot be placed before the display text.
- It DOES work with additional content placed after the template.