Difference between revisions of "Template:Mo"

From Teampedia
Jump to: navigation, search
m (Zacharycook505-104668625857976836193 moved page Template:Mi to km to Template:Convert/mi to km over redirect)
Line 1: Line 1:
<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>
+
{{#switch:{{{2|}}}
 +
| adj
 +
| on = {{convert|{{{1|50}}}|mi|km|adj=on}}
 +
| off
 +
| abbr
 +
| #default = {{convert|{{{1|50}}}|mi|km|abbr=on}}
 +
}}<noinclude>
 +
{{documentation}}  
 +
</noinclude>

Revision as of 18:13, 29 February 2020

50 mi (80.4672 km)

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