Changes

Jump to: navigation, search

Template:Convert/mile/doc

1,004 bytes added, 17:16, 29 February 2020
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..."
{{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}}</nowiki>''' or '''<nowiki>{{mi|2}</n/owiki>''' - ''will show as'' - {{mile|2}}
*'''<nowiki>{{mile|10-15}}</nowiki>''' or '''<nowiki>{{mi|10-15}</nowiki>''' - ''will show as'' - {{mile|10-15}}
*'''<nowiki>{{mile|2|on}}</nowiki>''' or '''<nowiki>{{mi|2|on}</nowiki>''' or '''<nowiki>{{mi|2|adj}</nowiki>''' - ''will show as'' - {{mile|2|adj}}

=== 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]]
*{{tl|convert}} - from which this template is built; but this one removes the need to know full syntax and ensure consistent formatting throughout the site.

<includeonly>
[[Category:Formatting and function templates]]
</includeonly>



Navigation menu