Template:sortkey/documentation

This template is used to automatically generate a sortkey for some text. It should only be used for testing purposes or as part of templates, not directly in entries.

If you are considering using it in a template, please consider that there is almost certainly a better way to achieve the same effect, because every template that uses the  parameter will use automatic sort if no sortkey is provided.

Parameters

 * 1
 * The language code (Languages) of the language to generate a sortkey for. If the language has no sortkey defined, then only the default changes will be made (e.g. the output will be in uppercase).


 * 2
 * The text to sort, which should be written in the given language.


 * sc
 * The script code (Scripts), which specifies the script the text is given in. This is almost always unnecessary, as it is usually detected automatically.