Difference between revisions of "Template:Mo"

From Teampedia
Jump to: navigation, search
m (Zacharycook505-104668625857976836193 moved page Template:Convert/mile to Template:Mile)
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|[[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>
| 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 19:29, 29 February 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.