Difference between revisions of "Template:Mo"

From Teampedia
Jump to: navigation, search
m (Zacharycook505-104668625857976836193 moved page Template:Mile to Template:Convert/mile 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|[[mile]]s|miles}}|{{#ifeq:{{LC:{{{wiki|no}}}}}|yes|[[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|[[kilometre]]s}}|{{#ifeq:{{LC:{{{wiki|no}}}}}|no|kilometers|[[kilometre|kilometers]]}}}}|{{#ifeq:{{LC:{{{wiki|no}}}}}|no|km|[[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 00:56, 1 March 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.