Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Kwamikagami
No edit summary
meta>Kwamikagami
(rv.)
Line 29: Line 29:
                 -->{{{p|}}}<!-- If p (prefix) is defined, display it.
                 -->{{{p|}}}<!-- If p (prefix) is defined, display it.
                 -->{{#if: {{{1|}}}|<!-- Are there any arguments?
                 -->{{#if: {{{1|}}}|<!-- Are there any arguments?
                   -->{{#if: {{{e|}}}|{{#if: {{{2|}}}|{{#ifexpr: 0{{{2}}}={{{2}}}|&#0028;}}}}}}<!-- Add parentheses if there is ±-error and exponent
                   -->{{#if: {{{2|}}}|{{#if: {{{e|}}}|(}}}}<!-- Add parentheses if there is ±-error and exponent
                   -->{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{1|}}}}}{{{end|}}}<!-- Output arg1, formatted.
                   -->{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{1|}}}}}{{{end|}}}<!-- Output arg1, formatted.
                   -->{{#if: {{{2|}}}|<!-- Are there 2 or more arguments?
                   -->{{#if: {{{2|}}}|<!-- Are there 2 or more arguments?
Line 46: Line 46:
                     -->}}<!-- End Are there 3 arguments?
                     -->}}<!-- End Are there 3 arguments?
                   -->}}<!-- End Are there 2 arguments?
                   -->}}<!-- End Are there 2 arguments?
                   -->{{#if: {{{e|}}}|{{#if: {{{2|}}}|{{#ifexpr: 0{{{2}}}={{{2}}}|&#0029;}}}}}}<!-- close parentheses
                   -->{{#if: {{{2|}}}|{{#if: {{{e|}}}|)}}}}<!-- close parentheses
                   -->{{#if:{{{e|}}}|<span style="white-space:nowrap;margin-left:0.25em;margin-right:0.15em">×</span>10<sup>{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{e}}}}}</sup>}}<!-- e=exponent
                   -->{{#if:{{{e|}}}|<span style="white-space:nowrap;margin-left:0.25em;margin-right:0.15em">×</span>10<sup>{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{e}}}}}</sup>}}<!-- e=exponent
                 -->|<!-- Are there any arguments? NO
                 -->|<!-- Are there any arguments? NO

Revision as of 09:31, 2 February 2014