289
edits
Changes
no edit summary
{{Documentation subpage}}<includeonly!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->{{FORMATNUM === Usage ===:<nowiki>{{#if:{{{convert/km to mi | num|}}}abbr |{{{num}}}spell |{{{1precision | wiki}}}}}}} </nowiki> ;{{#ifexprExamples:({{#ifeq:{{LC''[[WP:{{{abbrMOSNUM#Units of measurement|mos}}}}}|mos|1|0}} OR {{#ifeqManual of Style]] notation'':<nowiki>{{LC:{{{abbrconvert/km to mi|mos100}}}}}|no|1|0}})|</nowiki> → {{#ifeq:{{LC:{{{spellconvert/km to mi|american100}}}}}|american|{{#ifeq:{{LC''Short notation'':<nowiki>{{{wikiconvert/km to mi|no}}}}}100|abbr=yes|[[w:kilometre|kilometers]]|kilometers}}|</nowiki> → {{#ifeq:{{LC:{{{wikiconvert/km to mi|no}}}}}100|abbr=yes|[[w:kilometre|kilometres]]|kilometres}}}}|{{#ifeq:{{LC''Full notation'':<nowiki>{{{wiki|no}}}}}|yes|[[w:kilometre|convert/km]]to mi|km}}}} ({{FORMATNUM:{{#expr:{{#if:{{{num=100|}}}abbr=no|{{{num}}}spell=Commonwealth|{{{1}}}}}/1.609344 round {{{precision=2|0}}}}}wiki=yes}}</nowiki> →{{#ifeq:{{LC:{{{abbrconvert/km to mi|mos}}}}}num=100|abbr=no|{{#ifeq:{{LC:{{{spell=Commonwealth|precision=2|wiki|no=yes}}}}}| ''Italicized'' parameters are optional:*'''num''' is a required parameter, which specifies the number of kilometers to be converted to miles. Please do not format this parameter; i.e., use 1234 instead of 1,234.*'''''abbr''''' can take values of either ''mos'', ''yes|'', or ''no''. ''Mos'' will show the names of the units as specified in the [[wWP:mileMOSNUM#Units of measurement|milesManual of Style for dates and numbers]]|(kilometers, mi); ''yes'' will show the abbreviated names of the units (km, mi); and ''no'' will show the full names of the units (kilometers, miles}}|). The default value is ''mos''.*'''''spell''''' can take values of ''American'' or ''Commonwealth'' and is only meaningful when ''abbr'' is set to ''no''. ''American'' will use "kilometers", and ''Commonwealth''—"kilometres". The default value is ''American''.*'''''precision''''' is the number of decimal digits in the converted value. The default value is 0.*'''''wiki''''' specifies whether the names of the units should be wikified or not and can take values of either ''yes'' or ''no''. The default value is ''no''. Capitalization of the parameters is unimportant. === See also ===*{{#ifeq:{{LC:{{{wikitl|no}}}mi to km}}*{{tl|yes|[[w:mile|mi]]|miconvert}}}}) </includeonly><noinclude!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->{{documentation}}[[Category:Conversion templates|{{PAGENAME}}]] </noincludeincludeonly>