Template:Val: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined |
meta>SkyLined Copy fix for "allow -0 as third argument" issue from sandbox. |
||
| Line 11: | Line 11: | ||
-->{{FormattingError|Error in {{tl|val}}: third argument is not a valid number or requires too much precision to display.|nocategory={{{nocategory|}}}}}<!-- | -->{{FormattingError|Error in {{tl|val}}: third argument is not a valid number or requires too much precision to display.|nocategory={{{nocategory|}}}}}<!-- | ||
-->|<!-- Is arg3 not a valid number? NO | -->|<!-- Is arg3 not a valid number? NO | ||
-->{{#ifexpr: {{{3|-1}}} > | -->{{#ifexpr: {{{3|-1}}} > 0|<!-- Is arg3 positive or -0? | ||
-->{{FormattingError|Error in {{tl|val}}: third argument is not negative.|nocategory={{{nocategory|}}}}}<!-- | -->{{FormattingError|Error in {{tl|val}}: third argument is not negative.|nocategory={{{nocategory|}}}}}<!-- | ||
-->|<!-- Is arg3 positive? NO | -->|<!-- Is arg3 positive? NO | ||
| Line 46: | Line 46: | ||
Output arg1, formatted. | Output arg1, formatted. | ||
-->{{{end|}}}<!-- | -->{{{end|}}}<!-- | ||
-->{{#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? | ||
There are three arguments. | There are three arguments. | ||
-->{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Uncertainty = +X/-Y | -->{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Uncertainty = +X/-Y | ||
| Line 62: | Line 59: | ||
Append something and/or add angle/percent symbol. | Append something and/or add angle/percent symbol. | ||
-->b={{val/delimitnum|fmt={{{fmt|gaps}}}|{{{3}}}}}<!-- | -->b={{#ifexpr: {{{3}}} = 0|−}}{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{3}}}}}<!-- | ||
Output -arg3, formatted. | Output -arg3, formatted. | ||
-->{{{-errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- | -->{{{-errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- | ||
Revision as of 08:06, 25 August 2014
Lua error in Module:Documentation at line 7: Module:Documentation/config returned boolean, table expected.