Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined
oops, fixed last edit.
meta>Headbomb
implementing number ending
Line 34: Line 34:
END ERROR CHECKING, START OUTPUT
END ERROR CHECKING, START OUTPUT
                 -->{{{p|}}}<!-- If p (prefix) is defined, display it.
                 -->{{{p|}}}<!-- If p (prefix) is defined, display it.
                 -->{{val/delimitnum|{{{1|}}}}}<!-- Output arg1, formatted.
                 -->{{val/delimitnum|{{{1|}}}}}{{{end|}}}<!-- Output arg1, formatted.
                 -->{{#if: {{{2|}}}|<!-- Are there 2 or more arguments?
                 -->{{#if: {{{2|}}}|<!-- Are there 2 or more arguments?
                   -->{{#if: {{{3|}}}|<!-- Are there 3 arguments?
                   -->{{#if: {{{3|}}}|<!-- Are there 3 arguments?
                     --><span style="white-space:nowrap;margin-left:0.3em;">{{su|<!-- Uncertainty = +X -Y (3 arguments)
                     --><span style="white-space:nowrap;margin-left:0.3em;">{{su|<!-- Uncertainty = +X -Y (3 arguments)
                       -->w=f|a=r|<!-- Fixed width, right aligned
                       -->w=f|a=r|<!-- Fixed width, right aligned
                       -->p=+{{val/delimitnum|{{{2}}}}}|<!-- Output +arg2, formatted.
                       -->p=+{{val/delimitnum|{{{2}}}}}{{{+errend|}}}|<!-- Output +arg2, formatted.
                       -->b={{val/delimitnum|{{{3}}}}}<!-- Output -arg3, formatted.
                       -->b={{val/delimitnum|{{{3}}}}}{{{-errend|}}}<!-- Output -arg3, formatted.
                     -->}}</span><!--
                     -->}}</span><!--
                   -->|<!-- Are there 3 arguments? NO
                   -->|<!-- Are there 3 arguments? NO
Line 46: Line 46:
                       -->{{{2}}}<!-- Significance = (X)
                       -->{{{2}}}<!-- Significance = (X)
                     -->|<!-- Second argument is "(number)"? NO
                     -->|<!-- Second argument is "(number)"? NO
                       --><span style="white-space:nowrap;margin-left:0.3em;margin-right:0.15em">±</span>{{val/delimitnum|{{{2}}}}}<!-- Uncertainty = ±X
                       --><span style="white-space:nowrap;margin-left:0.3em;margin-right:0.15em">±</span>{{val/delimitnum|{{{2}}}}}{{{errend|}}}<!-- 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 04:29, 3 November 2009