Difference between revisions of "Template:Infobox UK place/dist"
Jump to navigation
Jump to search
imported>MusikAnimal m (Protected "Template:Infobox UK place/dist": Highly visible template; 2,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))) |
imported>Johnuniq (use Module:Convert/helper to remove any reference from number to avoid expression errors (convert handles a reference included in the input value); this is for Cairndow and more) |
||
| Line 4: | Line 4: | ||
rounding of output is based on input, unless less than 10 when one decimal place is used | rounding of output is based on input, unless less than 10 when one decimal place is used | ||
| − | --><includeonly>{{#ifeq: {{{type|}}}|mile|<!-- then -->{{convert| | + | --><includeonly>{{#ifeq: {{{type|}}}|mile|<!-- then -->{{convert|{{{distance|}}}|mi|km|abbr=on|{{#ifexpr: {{#invoke:convert/helper|cleanNumber|{{{distance|1}}}}}<10|1|}} }}|<!-- else -->{{convert|{{{distance|}}}|km|mi|abbr=on|{{#ifexpr: {{#invoke:convert/helper|cleanNumber|{{{distance|1}}}}}<10|1|}} }} }}</includeonly> |