Open main menu

Gobblerpedia β

Changes

Template:Convert/-/AoffSoff

1,646 bytes added, 05:06, 22 February 2012
m
Protected Template:Convert/-/AoffSoff: Highly visible template ([edit=sysop] (indefinite) [move=sysop] (indefinite))
{{#ifexpr: abs( {{formatnum:{{{1|9}}}|R}}0 ) >= abs( {{formatnum:{{{1|9}}}|R}} )|<!--check if n+1/x0 >= n+1/x
then-1-is-one-number-->{{{1}}}|<!--
else-1-has-fraction-->{{convert/numdisp|{{{1|1+4/5}}}}}<!--
-->}}<!--endif n0 >= n
-->{{
#ifexpr:{{formatnum:{{{2|4}}}|R}} < 0
|&nbsp;&ndash;&#32;|–}}<!--show range word
-->{{<!--
-->#ifexpr: abs( {{formatnum:{{{2|4}}}|R}}0 ) >= abs( {{formatnum:{{{2|4}}}|R}} )|<!--check if m+1/x0 >= m+1/x
then-2-is-one-number-->{{{2}}}|<!--
else-2-has-fraction-->{{convert/numdisp|{{{2|3+6/7}}}}}<!--
-->}}<!--endif#2 n0 >= n
--> {{#ifexpr:( {{formatnum:{{{2|3/4}}}|R}} ) < 1.0001 and ( {{formatnum:{{{2|3/4}}}|R}} ) > 0|{{{n}}}|{{{l|{{{n}}}s}}}<!--end-->}}<noinclude>

<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]]).

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.

[[Category:2010 Convert unit subtemplates]]
[[Category:Subtemplates of Template Convert]]
[[ar:قالب:Convert/-/AoffSoff]]
[[id:Templat:Convert/-/AoffSoff]]
[[pt:Predefinição:Convert/-/AoffSoff]]
</noinclude>
Anonymous user