"ଛାଞ୍ଚ:Val" ପୃଷ୍ଠାର ସଂସ୍କରଣଗୁଡ଼ିକ ମଧ୍ୟରେ ତଫାତ
Content deleted Content added
imported>SkyLined Null edit to fix incorrect categorization |
imported>SkyLined Allow use without any unnamed arguments, per talk page request. |
||
୮ କ ଧାଡ଼ି:
--><span style="white-space:nowrap"><!--
START ERROR CHECKING:
-->{{#ifeq:{{valid|number={{{1|0}}}}}|false|<!--
-->{{FormattingError|Error in {{tl|val}}: first argument is not a valid number or requires too much precision to display.|nocategory={{{nocategory|}}}}}<!--
-->|<!-- Is arg1 not a valid number? NO
-->{{#ifeq:{{valid|number={{{2|0}}}}}|false|<!--
-->{{FormattingError|Error in {{tl|val}}: second argument is not a valid number or requires too much precision to display.|nocategory={{{nocategory|}}}}}<!--
-->|<!-- Is arg2 not a valid number? NO
-->{{#ifeq:{{valid|number={{{3|0}}}}}|false|<!--
-->{{FormattingError|Error in {{tl|val}}: third argument is not a valid number or requires too much precision to display.|nocategory={{{nocategory|}}}}}<!--
-->|<!-- Is arg3 not a valid number? NO
-->{{#ifexpr: {{{3|-1}}} >= 0|<!--
-->{{FormattingError|Error in {{tl|val}}: third argument is not negative.|nocategory={{{nocategory|}}}}}<!--
-->|<!-- Is arg3 positive? NO
୩୪ କ ଧାଡ଼ି:
END ERROR CHECKING, START OUTPUT
-->{{{p|}}}<!-- If p (prefix) is defined, display it.
-->{{
-->{{#if: {{{2|}}}|<!-- Are there 2 or more arguments?▼
-->{{
-->
-->
-->p=+{{val/delimitnum|{{{2}}
-->b={{val/delimitnum|{{{3}}}}}{{{-errend|}}}<!--
-->
-->{{#if:{{#ifexpr: 0{{{2}}}}}|<!-- Second argument is "(number)"?
-->
-->
-->}}<!-- End Are there 3 arguments?▼
-->}}<!-- End
▲ -->}}<!-- End Are there 3 arguments?
▲ -->{{#if:{{{e|}}}|<span style="white-space:nowrap;margin-left:0.25em;margin-right:0.15em">×</span>10{{su|p={{val/delimitnum|{{{e}}}}}}}}}<!-- e=exponent
-->{{#if:{{{e|}}}|<span style="white-space:nowrap;margin-left:0.25em;margin-right:0.15em">×</span><!-- e=exponent, output "×"
--> End is there at least one unnamed argument
-->{{#if:{{{e|}}}|10{{su|p={{val/delimitnum|{{{e}}}}}}}}}<!-- e=exponent, output "10^e"
-->{{#if:{{{u|}}}| {{val/units|{{{u}}}}}}}<!-- u=units
-->{{#if:{{{ul|}}}| {{val/unitswithlink|{{{ul}}}}}}}<!-- u=units with link
|