Changes

Template:Kilometer/doc

1,080 bytes added, 17:57, 29 February 2020
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..."
<includeonly>
[[Category:Formatting and function templates]]
</includeonly>
{{Documentation subpage}}

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

"the trail is {{kilometer|8}} long" and "it's a {{kilometer|5|on}} trail"

=== Usage ===
*'''<nowiki>{{kilometer|2}}</nowiki>''' or '''<nowiki>{{kilometer|2}}</nowiki>''' - ''will show as'' - {{kilometer|2}}

*'''<nowiki>{{kilometer|10-15}}</nowiki>''' or '''<nowiki>{{kilometer|10-15}</nowiki>''' - ''will show as'' - {{kilometer|10-15}}
*'''<nowiki>{{kilometer|2|on}}</nowiki>''' or '''<nowiki>{{kilometer|2|on}</nowiki>''' or '''<nowiki>{{kilometer|2|adj}</nowiki>''' - ''will show as'' - {{kilometer|2|adj}}

=== 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]]
*{{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.