Template:Convert/mile/doc
Revision as of 18:33, 29 February 2020 by Zacharycook505-104668625857976836193 (Talk | contribs)
Revision as of 18:33, 29 February 2020 by Zacharycook505-104668625857976836193 (Talk | contribs)
To show distances in mile (and kilometre) such as:
"the trail is
- REDIRECT Template:Mo long" and "it's a Template:Mi trail"
Usage
- {{mile|2}} or {{mi|2}} - will show as -
- Redirect Template:Convert/mi
- {{mile|10-15}} or {{mi|10-15} - will show as - 10-15 miles (-14 km)
- {{mile|2|on}} or {{mi|2|on} or {{mi |2|adj}} - will show as - 2 miles (3 km)
Parameters
- First parameter is distance number in miles
- also possible to show range using a dash
- Second optional parameter set to on or adj to produce the adjective form
See also
- Wikivoyage:Units
- {{convert}} - from which this template is built; but this one removes the need to know full syntax and ensure consistent formatting throughout the site.