Template:Kilometer/doc
Revision as of 18:57, 29 February 2020 by Zacharycook505-104668625857976836193 (Talk | contribs) (Created page with "<includeonly> Category:Formatting and function templates </includeonly> {{Documentation subpage}} To show distances in kilometre (and mile) such as: "the trail is {{kil...")
Revision as of 18:57, 29 February 2020 by Zacharycook505-104668625857976836193 (Talk | contribs) (Created page with "<includeonly> Category:Formatting and function templates </includeonly> {{Documentation subpage}} To show distances in kilometre (and mile) such as: "the trail is {{kil...")
To show distances in kilometre (and mile) such as:
"the trail is 8 kilometers (5 mi) long" and "it's a 5 kilometers (3 mi) trail"
Usage
- {{kilometer|2}} or {{kilometer|2}} - will show as - 2 kilometers (1 mi)
- {{kilometer|10-15}} or {{kilometer|10-15} - will show as - 10-15 kilometers (1 mi)
- {{kilometer|2|on}} or {{kilometer|2|on} or {{kilometer|2|adj} - will show as - 2 kilometers (1 mi)
Parameters
- First parameter is distance number in kilometer
- 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.