Difference between revisions of "Template:Convert/LoffAonSoff"
[http://www.nga.gov/content/ngaweb/research/casva/research-projects.html A Project of the National Gallery of Art, Center for Advanced Study in the Visual Arts ]
Emily Pugh (talk | contribs) m (1 revision) |
Emily Pugh (talk | contribs) m (1 revision) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
| 1={{convert/{{#if:{{{4|}}}|s}}{{#if:{{{3|}}}|p}}round<noinclude>{{{?}}}</noinclude>|{{{1}}}|{{#expr:( {{{2|1}}} )/{{{b|4}}}}}|{{{3}}}|{{{4}}}|{{{j}}} | | 1={{convert/{{#if:{{{4|}}}|s}}{{#if:{{{3|}}}|p}}round<noinclude>{{{?}}}</noinclude>|{{{1}}}|{{#expr:( {{{2|1}}} )/{{{b|4}}}}}|{{{3}}}|{{{4}}}|{{{j}}} | ||
}}| sep={{#if:{{{u|}}} | }}| sep={{#if:{{{u|}}} | ||
− | + | | <!-- | |
− | |||
-->| }}| | -->| }}| | ||
2={{#if:{{{u|}}} | 2={{#if:{{{u|}}} | ||
Line 10: | Line 9: | ||
|{{{u|}}}|{{{l|{{{n}}}s}}}}}}}<noinclude> | |{{{u|}}}|{{{l|{{{n}}}s}}}}}}}<noinclude> | ||
{{pp-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. | + | This '''[[Template:Convert/LoffAonSoff]]''' invokes [[Template:Convert/outsep]] to display the converted result and unit symbol (if any), with {sep} to control wrapping. Numbers less than 1,000 is not wrapped nor are unit symbols. 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. |
[[Category:Subtemplates of Template Convert]] | [[Category:Subtemplates of Template Convert]] | ||
</noinclude> | </noinclude> |
Latest revision as of 20:39, September 10, 2013
{{convert/outsep{{{?}}} | 1={{convert/round{{{?}}}|{{{1}}}|0.25|{{{3}}}|{{{4}}}|{{{j}}} }}| sep= | 2={{{n}}}| 3={{{n}}}s}} This Template:Convert/LoffAonSoff invokes Template:Convert/outsep to display the converted result and unit symbol (if any), with {sep} to control wrapping. Numbers less than 1,000 is not wrapped nor are unit symbols. 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.