Template:Horse race distance
Appearance
This template uses Lua: |
This template displays distances in a format suitable for use in a sortable table such as at List of British National Hunt races.
Distances are miles, furlongs and yards. Each distance field is optional and may include a fraction character.
The displayed text has a sort key similar to that produced by {{sort|m}}
where m is the distance in metres.
Examples
[edit]{{hrd|1}}
→ 1m{{hrd||2|}}
→ 2f{{hrd|1|2½}}
→ 1m 2½f{{hrd|1|2½|150}}
→ 1m 2½f 150y{{hrd|||1800}}
→ 1800y{{hrd|||}}
→ (nothing is displayed; values can be entered later){{hrd|1m}}
→ Invalid number "1m"