"ଛାଞ୍ଚ:Val" ପୃଷ୍ଠାର ସଂସ୍କରଣଗୁଡ଼ିକ ମଧ୍ୟରେ ତଫାତ
Content deleted Content added
imported>SkyLined |
imported>SkyLined A third attempt to allow use without any unnamed arguments |
||
୯ କ ଧାଡ଼ି:
--><span style="white-space:nowrap"><!--
START ERROR CHECKING:
-->{{#ifeq:{{valid|number={{{1|0}}}}}|false|<!-- Is arg1 not a valid number?
-->{{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
୩୫ କ ଧାଡ଼ି:
END ERROR CHECKING, START OUTPUT
-->{{{p|}}}<!-- If p (prefix) is defined, display it.
-->{{val/delimitnum|{{{1|}}}}}{{{end|}}}<!-- Output arg1, formatted.▼
-->{{#if: {{{
-->{{
-->
-->
-->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>10{{su|p={{val/delimitnum|{{{e}}}}}}}}}<!-- e=exponent
-->|<!-- Are there any arguments? NO
▲ -->{{#if:{{{e|}}}|10{{su|p={{val/delimitnum|{{{
-->}}<!-- End Are there any arguments?
-->{{#if:{{{u|}}}| {{val/units|{{{u}}}}}}}<!-- u=units
-->{{#if:{{{ul|}}}| {{val/unitswithlink|{{{ul}}}}}}}<!-- u=units with link
|