Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined
m (Removed evalns from n and s arguments)
meta>SkyLined
(Undid revision 205525288 by SkyLined (talk))
Line 13: Line 13:
       -->{{FormattingError|Error in {{tl|val}}: argument "s" is deprecated.}}<!--
       -->{{FormattingError|Error in {{tl|val}}: argument "s" is deprecated.}}<!--
     -->|<!-- Is there an argument "s"? NO
     -->|<!-- Is there an argument "s"? NO
       -->{{#if:{{#ifexpr: {{evalns|{{{1}}}}}}}|<!-- Is arg1 not a valid number?
       -->{{#if:{{#ifexpr: {{{1}}}}}|<!-- Is arg1 not a valid number?
         -->{{FormattingError|Error in {{tl|val}}: first argument is not a valid number.}}<!--
         -->{{FormattingError|Error in {{tl|val}}: first argument is not a valid number.}}<!--
       -->|<!-- Is arg1 not a valid number? NO
       -->|<!-- Is arg1 not a valid number? NO
         -->{{#if:{{#ifexpr: {{evalns|{{{2|0}}}}}}}|<!-- Is arg2 not a valid number?
         -->{{#if:{{#ifexpr: {{{2|0}}}}}|<!-- Is arg2 not a valid number?
           -->{{FormattingError|Error in {{tl|val}}: second argument is not a valid number.}}<!--
           -->{{FormattingError|Error in {{tl|val}}: second argument is not a valid number.}}<!--
         -->|<!-- Is arg2 not a valid number? NO
         -->|<!-- Is arg2 not a valid number? NO
           -->{{#if:{{#ifexpr: {{evalns|{{{3|0}}}}}}}|<!-- Is arg3 not a valid number?
           -->{{#if:{{#ifexpr: {{{3|0}}}}}|<!-- Is arg3 not a valid number?
             -->{{FormattingError|Error in {{tl|val}}: third argument is not a valid number.}}<!--
             -->{{FormattingError|Error in {{tl|val}}: third argument is not a valid number.}}<!--
           -->|<!-- Is arg3 not a valid number? NO
           -->|<!-- Is arg3 not a valid number? NO
             -->{{#ifexpr: {{evalns|{{{3|-1}}}}} >= 0|<!-- Is arg3 positive?
             -->{{#ifexpr: {{{3|-1}}} >= 0|<!-- Is arg3 positive?
               -->{{FormattingError|Error in {{tl|val}}: third argument is not negative.}}<!--
               -->{{FormattingError|Error in {{tl|val}}: third argument is not negative.}}<!--
             -->|<!-- Is arg3 positive? NO
             -->|<!-- Is arg3 positive? NO
               -->{{#if:{{#ifexpr: {{evalns|{{{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 is not a valid number.}}<!--
               -->|<!-- Is arg "e" not a valid number? NO
               -->|<!-- Is arg "e" not a valid number? NO
Line 35: Line 35:
                     -->{{su|w=f|<!-- Uncertainty = +X -Y (3 arguments)
                     -->{{su|w=f|<!-- Uncertainty = +X -Y (3 arguments)
                       -->p=+{{delimitnum|{{{2}}}}}|<!-- Output +arg2, formatted.
                       -->p=+{{delimitnum|{{{2}}}}}|<!-- Output +arg2, formatted.
                       -->b=&minus;{{delimitnum|{{evalns|-{{{3}}}}}}}<!-- Output -arg3, formatted.
                       -->b=&minus;{{delimitnum|{{#expr:-{{{3}}}}}}}<!-- Output -arg3, formatted.
                     -->}}<!--
                     -->}}<!--
                   -->|<!-- Are there 3 arguments? NO
                   -->|<!-- Are there 3 arguments? NO

Revision as of 10:34, 14 April 2008