Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined
m Changed spacing around "x" for exponents according to suggestion by User:Greg L
meta>SkyLined
m Adjusted spacing for uncertainty/significance to same values as "x"
Line 29: Line 29:
             -->{{val/delimitnum|{{{1|}}}}}<!-- Output arg1, formatted.
             -->{{val/delimitnum|{{{1|}}}}}<!-- Output arg1, formatted.
             -->{{#if: {{{2|}}}|<!-- Are there 2 or more arguments?
             -->{{#if: {{{2|}}}|<!-- Are there 2 or more arguments?
              -->&nbsp;<!-- space
               -->{{#if: {{{3|}}}|<!-- Are there 3 arguments?
               -->{{#if: {{{3|}}}|<!-- Are there 3 arguments?
                 -->{{su|w=f|<!-- Uncertainty = +X -Y (3 arguments)
                 --><span style="margin-left:0.3em;">{{su|w=f|<!-- Uncertainty = +X -Y (3 arguments)
                   -->p=+{{val/delimitnum|{{{2}}}}}|<!-- Output +arg2, formatted.
                   -->p=+{{val/delimitnum|{{{2}}}}}|<!-- Output +arg2, formatted.
                   -->b={{val/delimitnum|{{{3}}}}}<!-- Output -arg3, formatted.
                   -->b={{val/delimitnum|{{{3}}}}}<!-- Output -arg3, formatted.
                 -->}}<!--
                 -->}}</span><!--
               -->|<!-- Are there 3 arguments? NO
               -->|<!-- Are there 3 arguments? NO
                 -->{{#if:{{#ifexpr: 0{{{2}}}}}|<!-- Second argument is "(number)"?
                 -->{{#if:{{#ifexpr: 0{{{2}}}}}|<!-- Second argument is "(number)"?
                   -->{{{2}}}<!-- Significance = (X)
                   --><span style="margin-left:0.3em;">{{{2}}}</SPAN><!-- Significance = (X)
                 -->|<!-- Second argument is "(number)"? NO
                 -->|<!-- Second argument is "(number)"? NO
                   -->&plusmn;&nbsp;{{val/delimitnum|{{{2}}}}}<!-- Uncertainty = ±X
                   --><span style="margin-left:0.3em; margin-right:0.15em">±</span>{{val/delimitnum|{{{2}}}}}<!-- Uncertainty = ±X
                 -->}}<!-- End second argument is "(number)"?
                 -->}}<!-- End second argument is "(number)"?
               -->}}<!-- End Are there 3 arguments?
               -->}}<!-- End Are there 3 arguments?

Revision as of 08:01, 16 April 2008