https://heald.nga.gov/mediawiki/index.php?title=Template:Convert/-/AoffSoff&feed=atom&action=historyTemplate:Convert/-/AoffSoff - Revision history2024-03-29T00:45:24ZRevision history for this page on the wikiMediaWiki 1.35.2https://heald.nga.gov/mediawiki/index.php?title=Template:Convert/-/AoffSoff&diff=442&oldid=prevEmily Pugh: 1 revision2012-04-18T17:26:24Z<p>1 revision</p>
<p><b>New page</b></p><div>{{#ifexpr: abs( {{formatnum:{{{1|9}}}|R}}0 ) >= abs( {{formatnum:{{{1|9}}}|R}} )|<!--check if n+1/x0 >= n+1/x<br />
then-1-is-one-number-->{{{1}}}|<!--<br />
else-1-has-fraction-->{{convert/numdisp|{{{1|1+4/5}}}}}<!--<br />
-->}}<!--endif n0 >= n<br />
-->{{<br />
#ifexpr:{{formatnum:{{{2|4}}}|R}} < 0<br />
|&nbsp;&ndash;&#32;|–}}<!--show range word<br />
-->{{<!--<br />
-->#ifexpr: abs( {{formatnum:{{{2|4}}}|R}}0 ) >= abs( {{formatnum:{{{2|4}}}|R}} )|<!--check if m+1/x0 >= m+1/x<br />
then-2-is-one-number-->{{{2}}}|<!--<br />
else-2-has-fraction-->{{convert/numdisp|{{{2|3+6/7}}}}}<!--<br />
-->}}<!--endif#2 n0 >= n<br />
--> {{#ifexpr:( {{formatnum:{{{2|3/4}}}|R}} ) < 1.0001 and ( {{formatnum:{{{2|3/4}}}|R}} ) > 0|{{{n}}}|{{{l|{{{n}}}s}}}<!--end-->}}<noinclude><br />
<br />
<br>The '''[[Template:Convert/-/AoffSoff]]''' displays a range of two numbers separated by an en-dash "&ndash;" followed by the unit name, as singular or plural for the 2nd amount. If the 2nd amount is a negative number, then spaces are added around the en-dash, as "&nbsp;&ndash;&nbsp;" (see: [[WP:DASH]]).<br />
<br />
This template is used to show either the input range numbers or the output range numbers, which might contain commas or x10 notation. Optional parameters {amt1} & {amt2} could be used for numeric tests of the results, as passed with formatted results {1} and {2} from {&#123;[[Template:Convert/Dual/rnd|Convert/Dual/rnd]]}}, {&#123;[[Template:Convert/Dual/prnd|Convert/Dual/prnd]]}}, etc. <br />
<br />
[[Category:2010 Convert unit subtemplates]]<br />
[[Category:Subtemplates of Template Convert]]<br />
[[ar:قالب:Convert/-/AoffSoff]]<br />
[[id:Templat:Convert/-/AoffSoff]]<br />
[[pt:Predefinição:Convert/-/AoffSoff]]<br />
</noinclude></div>Emily Pugh