Difference between revisions of "Template:Convert/mi"

From Teampedia
Jump to: navigation, search
 
Line 1: Line 1:
{{#switch:{{{2|}}}
+
<includeonly>{{FORMATNUM:{{#if:{{{num|}}}|{{{num}}}|{{{1}}}}}}}&nbsp;{{#ifexpr:({{#ifeq:{{LC:{{{abbr|mos}}}}}|mos|1|0}} OR {{#ifeq:{{LC:{{{abbr|mos}}}}}|no|1|0}})|{{#ifeq:{{LC:{{{wiki|no}}}}}|yes|{{w|nocat=1|mile|miles}}|miles}}|{{#ifeq:{{LC:{{{wiki|no}}}}}|yes|{{w|nocat=1|mile|mi}}|mi}}}} ({{FORMATNUM:{{#expr:{{#if:{{{num|}}}|{{{num}}}|{{{1}}}}}*1.609344 round {{{precision|0}}}}}}}&nbsp;{{#ifeq:{{LC:{{{abbr|mos}}}}}|no|{{#ifeq:{{LC:{{{spell|american}}}}}|commonwealth|{{#ifeq:{{LC:{{{wiki|no}}}}}|no|kilometres|{{w|nocat=1|kilometre|kilometres}}}}|{{#ifeq:{{LC:{{{wiki|no}}}}}|no|kilometers|{{w|nocat=1|kilometre|kilometers}}}}}}|{{#ifeq:{{LC:{{{wiki|no}}}}}|no|km|{{w|nocat=1|kilometre|km}}}}}})</includeonly><noinclude>{{documentation}}[[Category:Conversion templates|{{PAGENAME}}]]</noinclude>
| adj
+
| on = {{convert|{{{1|50}}}|mi|km|adj=on}}
+
| off
+
| abbr
+
| #default = {{convert|{{{1|50}}}|mi|km|abbr=on}}
+
}}<noinclude>
+
{{documentation}}  
+
</noinclude>
+

Latest revision as of 02:45, 11 April 2020

[create] Documentation icon Template documentation
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.