(Redirected from Template:Mi)

50 mi (80 km)

[view] [edit] [history] [purge] Template documentation

To show distances in mile (and kilometre) such as:

"the trail is 5 mi (8.0 km) long" and "it's a 5-mile (8.0 km) trail"


  • {{mile|2}} or {{mi|2} - will show as - 2 mi (3.2 km)
  • {{mile|10-15}} or {{mi|10-15} - will show as - 10–15 mi (16–24 km)
  • {{mile|2|on}} or {{mi|2|on} or {{mi|2|adj} - will show as - 2-mile (3.2 km)


  • 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.