Template:Convert/LoffAonSoff

From RouteWiki
< Template:Convert
Revision as of 03:00, 9 March 2011 by Plastikspork (talk) (pp)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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