Template:Val: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined Removed eval's - they're not needed and caused an error |
meta>SkyLined m Added up argument |
||
| Line 20: | Line 20: | ||
-->|<!-- Is arg3 positive? NO | -->|<!-- Is arg3 positive? NO | ||
-->{{#if:{{#ifexpr: {{{e|0}}}}}|<!-- Is arg "e" not a valid number? | -->{{#if:{{#ifexpr: {{{e|0}}}}}|<!-- Is arg "e" not a valid number? | ||
-->{{FormattingError|Error in {{tl|val}}: exponent is not a valid number.}}<!-- | -->{{FormattingError|Error in {{tl|val}}: exponent (e) is not a valid number.}}<!-- | ||
-->|<!-- Is arg "e" not a valid number? NO | -->|<!-- Is arg "e" not a valid number? NO | ||
-->{{#if:{{{u|{{{up|}}}}}}}}|<!-- Is arg "up" specified but not arg "u"? | |||
-->{{FormattingError|Error in {{tl|val}}: unit (u) is not specified but units per (up) is.}}<!-- | |||
-->|<!-- Is arg "e" not a valid number? NO | |||
END ERROR CHECKING, START OUTPUT | END ERROR CHECKING, START OUTPUT | ||
-->{{{h|}}}<!-- h=Header | |||
-->{{val/delimitnum|{{{1|}}}}}<!-- Output arg1, formatted. | |||
-->{{#if: {{{2|}}}|<!-- Are there 2 or more arguments? | |||
--> <!-- space | |||
-->{{#if: {{{3|}}}|<!-- Are there 3 arguments? | |||
-->{{su|w=f|<!-- Uncertainty = +X -Y (3 arguments) | |||
-->p=+{{val/delimitnum|{{{2}}}}}|<!-- Output +arg2, formatted. | |||
-->b={{val/delimitnum|{{{3}}}}}<!-- Output -arg3, formatted. | |||
-->}}<!-- | |||
-->|<!-- Are there 3 arguments? NO | |||
-->{{#if:{{#ifexpr: 0{{{2}}}}}|<!-- Second argument is "(number)"? | |||
-->{{{2}}}<!-- Significance = (X) | |||
-->|<!-- Second argument is "(number)"? NO | |||
-->± {{val/delimitnum|{{{2}}}}}<!-- Uncertainty = ±X | |||
-->}}<!-- End second argument is "(number)"? | |||
-->}}<!-- End Are there 3 arguments? | |||
-->}}<!-- End Are there 2 arguments? | |||
-->{{#if:{{{e|}}}| × 10{{su|p={{val/delimitnum|{{{e}}}}}}}</sup>}}<!-- e=exponent | |||
-->{{#if:{{{u|}}}| {{ScientificValue/units|{{{u}}}}}}}<!-- u=units | |||
-->{{#if:{{{up|}}}|/{{ScientificValue/units|{{{up}}}}}}}<!-- up=per units | |||
-->{{{f|}}}<!-- f=Footer | |||
-->}}<!-- End Is arg "up" specified but not arg "u"? | |||
-->}}<!-- End Is arg "e" not a valid number? | -->}}<!-- End Is arg "e" not a valid number? | ||
-->}}<!-- End Is arg3 positive? | -->}}<!-- End Is arg3 positive? | ||
Revision as of 14:28, 15 April 2008
Lua error in package.lua at line 80: module 'Module:Documentation/config' not found.