Template:Gold1/doc

This template is for including medal symbols in sporting event result tables, while preserving the ability for sort.

The, , and templates support sorting in tables with one digit place numbers, while the , , and  templates support sorting in tables with two digit place numbers.

Usage
Simply insert the template where you would like to see the symbol. No parameters are required.

For tables where the sorted column contains only numbers and the above templates, sorting will work fine. However, if the column contains any non-numeric text, including the display value in any templates, the sort function will perform a text sort instead of a numeric sort. To get the desired sort results it may be necessary to use the template to specify appropriate sort keys to be inserted as hidden text in front of the displayed values. For example "" displays "DQ" but sorts using "9 DQ".

Also, for text sorting to give appropriate results for numeric values, all values must have the same number of integer digits. Again, the template can also be used for this. For example, "9" will sort higher than "10", but "" will sort lower than "10". To support tables having where rank exceeds 9 that also have non-numeric content, the "", "", and "" templates are provided. These templates yield short keys "01", "02", and "03". See the second example below.

Examples
The following code...

...will display as:

For example, the following code using two digit sorting...

...will displays as: