Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined
Removed n and s check - they are no longer used anywhere. Undid change to white-space:pre
meta>SkyLined
Removed eval's - they're not needed and caused an error
Line 7: Line 7:
--><span style="white-space:nowrap"><!--
--><span style="white-space:nowrap"><!--
START ERROR CHECKING:
START ERROR CHECKING:
-->{{#if:{{#ifexpr: {{eval|{{{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: {{eval|{{{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: {{eval|{{{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: {{eval|{{{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: {{eval|{{{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

Revision as of 14:02, 15 April 2008