Difference between revisions of "Template:Convert/mile/doc"
From Teampedia
(Created page with "{{Documentation subpage}} To show distances in mile (and kilometre) such as: "the trail is {{mi|5}} long" and "it's a {{mi|5|on}} trail" === Usage === *'''<nowiki>{{mile|2...") |
(No difference)
|
Revision as of 18:16, 29 February 2020
To show distances in mile (and kilometre) such as:
"the trail is Template:Mi long" and "it's a Template:Mi trail"
Usage
- {{mile|2}} or {{mi|2}</n/owiki>''' - ''will show as'' - {{mile|2}} *'''<nowiki>{{mile|10-15}} or {{mi|10-15} - will show as -
- REDIRECT Template:Mo
- {{mile|2|on}} or {{mi|2|on} or {{mi|2|adj} - will show as -
- Redirect Template:Convert/mi
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.