Difference between revisions of "Template:Convert/LoffAonSoff"
From RouteWiki
(pp) |
m (1 revision) |
(No difference)
|
Latest revision as of 21:04, 23 March 2011
{{convert/outsep{{{?}}} | 1={{convert/{{#if:|s}}{{#if:|p}}round{{{?}}}|{{{1}}}|{{#expr:( 1 )/4}}|{{{3}}}|{{{4}}}|{{{j}}} }}| sep={{#if:
|{{#ifexpr:abs( ( 1 )/4 ) < 20000 | | }}| }}|
2={{#if:
|{{{u}}}|{{{n}}}}}|
3={{#if:
||{{{n}}}s}}}}
Template:Pp-template This Template:Convert/LoffAonSoff invokes Template:Convert/outsep to display the converted result and unit symbol (if any), with {sep} to control wrapping. A number < 1,000 is not wrapped, or if the unit symbol is used, then only numbers above 20,000 can wrap at the unit symbol. If the unit symbol {{{u}}} is not set (such as with "acre"), then it passes both the singular unit name {{{n}}} and plural, {{{l}}}, or "{{{n}}}s" when no specific plural name has been defined.