Template:Val: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Kwamikagami parentheses (a±b)×10ʸ |
meta>Kwamikagami only () for ± errors |
||
| 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: {{{2|}}}|{{#if: {{{e|}}}| | -->{{#if: {{{2|}}}|{{#ifexpr: 0{{{2}}}}}|{{{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: {{{2|}}}|{{#if: {{{e|}}}|)}}}}<!-- close parentheses | -->{{#if: {{{2|}}}|{{#ifexpr: 0{{{2}}}}}|{{{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:14, 2 February 2014
Lua error in Module:Documentation at line 7: Module:Documentation/config returned boolean, table expected.