Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Materialscientist
Undid revision 323625022 by Headbomb (talk) another test-undo
meta>Materialscientist
m Reverted edits by Materialscientist (talk) to last version by SkyLined
Line 3: Line 3:
{{documentation}}
{{documentation}}
<!--
<!--
PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS
PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS
Normally, the code for the template is included, but this template is too complex to do that.
Normally, the code for the template is included, but this template is too complex to do that.
Line 34: Line 35:
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 47:
                       -->{{{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 12:19, 5 November 2009