Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jimp
(notes)
meta>Jimp
(error for -ve {{{2}}} rather than +ve {{{3}}}. See Template_talk:Val#Bug: val can't do zero negative uncertainties.)
Line 8: Line 8:
     arg2 is    valid -->|{{#iferror:{{#expr:{{{3|0}}}}}<!-- Is arg3 not a valid number?
     arg2 is    valid -->|{{#iferror:{{#expr:{{{3|0}}}}}<!-- Is arg3 not a valid number?
         arg3 isn't valid -->|{{FormattingError|Error in {{tl|val}}: third argument is not a valid number.|nocategory={{{nocategory|}}}}}<!--
         arg3 isn't valid -->|{{FormattingError|Error in {{tl|val}}: third argument is not a valid number.|nocategory={{{nocategory|}}}}}<!--
         arg3 is    valid -->|{{#ifexpr: {{{3|-1}}} > 0<!-- Is arg3 positive or -0?
         arg3 is    valid -->|{{#ifexpr: {{{2|0}}} < 0<!-- Is arg2 negative?
           arg3 is positive -->|{{FormattingError|Error in {{tl|val}}: third argument is not negative.|nocategory={{{nocategory|}}}}}<!--
           arg2 is negative -->|{{FormattingError|Error in {{tl|val}}: second argument is negative.|nocategory={{{nocategory|}}}}}<!--
           arg3 is negative -->|{{#iferror:{{#expr:{{{e|0}}}}}<!-- Is arg "e" not a valid number?
           arg2 is positive -->|{{#iferror:{{#expr:{{{e|0}}}}}<!-- Is arg "e" not a valid number?
               "e"  isn't valid -->|{{FormattingError|Error in {{tl|val}}: exponent ('''e''') is not a valid number.|nocategory={{{nocategory|}}}}}<!--
               "e"  isn't valid -->|{{FormattingError|Error in {{tl|val}}: exponent ('''e''') is not a valid number.|nocategory={{{nocategory|}}}}}<!--
               "e"  is    valid -->|{{#ifeq:{{{u}}}{{{ul}}}|{{{u|}}}{{{ul|}}}<!-- Is arg "u" and "ul" specified?
               "e"  is    valid -->|{{#ifeq:{{{u}}}{{{ul}}}|{{{u|}}}{{{ul|}}}<!-- Is arg "u" and "ul" specified?
Line 142: Line 142:
-->}}<!-- End Is arg "u" and "ul" specified?
-->}}<!-- End Is arg "u" and "ul" specified?
-->}}<!-- End Is arg "e" not a valid number?
-->}}<!-- End Is arg "e" not a valid number?
-->}}<!-- End Is arg3 positive?
-->}}<!-- End Is arg2 negative?
-->}}<!-- End Is arg3 not a valid number?
-->}}<!-- End Is arg3 not a valid number?
-->}}<!-- End Is arg2 not a valid number?
-->}}<!-- End Is arg2 not a valid number?

Revision as of 09:50, 30 April 2015