Fyrimynd:Bronze3/doc
Hetta er ein dokumentatión undirsíða til Fyrimynd:Bronze3. Hon inniheldur kunning um nýtsluna, bólkar og um annað innihald, ið ikki er við í uppruna fyrimynd síðuni. |
This template is for including medal symbols in sporting event result tables, while preserving the ability for sort.
Template series
[rætta wikitekst]The first group of templates show medal images while giving a table sort of 01, 02 or 03, respectively.
The second group of templates are show medal images with display text of either Gold, Silver, Bronze. These also give a table sort of 01, 02 or 03, respectively.
{{Gold medal}}
=Gull
{{Silver medal}}
=Silvur
{{Bronze medal}}
=Bronsa
Usage
[rætta wikitekst]Simply insert the template where you would like to see the symbol. No parameters are required.
Sorting will work numerically unless the column contains any non-numeric text, in which case a text sort will occur (e.g. "10" is before "3"). The templates automatically use 01, 02 and 03 as the sorting. To get the desired sort results for other numbers it may be necessary to use the {{sort}}
template to specify appropriate sort keys to be inserted as hidden text in front of the displayed values. For example {{sort|9|DQ}}
displays "DQ" but sorts using "9 DQ".
Parameter
[rætta wikitekst]The link parameter can be used to pass a link to an article to {{sort}}
.
Example:
{{gold1|link=article name}}
It defaults to null.
Examples
[rætta wikitekst]
For example, the following code using two digit sorting... {| class="wikitable sortable" style="text-align:center" |- ! Rank !! Place !! Bad Sort |- | {{Gold01}} || First || 1 |- | {{Silver02}} || Second || 2 |- | {{Bronze03}} || Third || 3 |- | {{Sort|04|4}} || Fourth || {{Sort|04|4}} |- | {{Sort|05|5}} || Fifth || {{Sort|05|5}} |- | 10 || Tenth || 10 |- | 11 || Eleventh || 11 |- | 20 || Twentieth || 20 |- | 50 || Fiftieth || 50 |- | {{Sort|98|NM}} || No mark || NM |- | {{Sort|99|DQ}} || Disqualified || DQ |} |
...will displays as:
|
Deprecated templates
[rætta wikitekst]The below templates have had their functionality merged into the main templates, as bad sorting is never a useful feature.
- Template:Goca (backlinks rætta)
- Template:Sica (backlinks rætta)
- Template:Brca (backlinks rætta)
- Template:Gold01 (backlinks rætta)
- Template:Silver02 (backlinks rætta)
- Template:Bronze03 (backlinks rætta)
See also
[rætta wikitekst]- Template:Sort (backlinks rætta) — for using names in sortable tables
- m:Help:Sorting