Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>TheFeds
Removing category update code and removing support for deprecated h and f parameters (per discussion).
meta>SkyLined
m +nocategory allows showing error without adding page to Category:Pages with incorrect formatting templates use
Line 9: Line 9:
START ERROR CHECKING:
START ERROR CHECKING:
-->{{#ifeq:{{valid|number={{{1}}}}}|false|<!-- Is arg1 not a valid number?
-->{{#ifeq:{{valid|number={{{1}}}}}|false|<!-- Is arg1 not a valid number?
   -->{{FormattingError|Error in {{tl|val}}: first argument is not a valid number or requires too much precision to display.}}<!--
   -->{{FormattingError|Error in {{tl|val}}: first argument is not a valid number or requires too much precision to display.|nocategory={{{nocategory|}}}}}<!--
-->|<!-- Is arg1 not a valid number? NO
-->|<!-- Is arg1 not a valid number? NO
   -->{{#ifeq:{{valid|number={{{2|0}}}}}|false|<!-- Is arg2 not a valid number?
   -->{{#ifeq:{{valid|number={{{2|0}}}}}|false|<!-- Is arg2 not a valid number?
     -->{{FormattingError|Error in {{tl|val}}: second argument is not a valid number or requires too much precision to display.}}<!--
     -->{{FormattingError|Error in {{tl|val}}: second argument is not a valid number or requires too much precision to display.|nocategory={{{nocategory|}}}}}<!--
   -->|<!-- Is arg2 not a valid number? NO
   -->|<!-- Is arg2 not a valid number? NO
     -->{{#ifeq:{{valid|number={{{3|0}}}}}|false|<!-- Is arg3 not a valid number?
     -->{{#ifeq:{{valid|number={{{3|0}}}}}|false|<!-- Is arg3 not a valid number?
       -->{{FormattingError|Error in {{tl|val}}: third argument is not a valid number or requires too much precision to display.}}<!--
       -->{{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}}} >= 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.|nocategory={{{nocategory|}}}}}<!--
       -->|<!-- Is arg3 positive? NO
       -->|<!-- Is arg3 positive? NO
         -->{{#ifeq:{{valid|number={{{e|0}}}}}|false|<!-- Is arg "e" not a valid number?
         -->{{#ifeq:{{valid|number={{{e|0}}}}}|false|<!-- Is arg "e" not a valid number?
           -->{{FormattingError|Error in {{tl|val}}: exponent ('''e''') is not a valid number or requires too much precision to display.}}<!--
           -->{{FormattingError|Error in {{tl|val}}: exponent ('''e''') is not a valid number or requires too much precision to display.|nocategory={{{nocategory|}}}}}<!--
         -->|<!-- Is arg "e" not a valid number? NO
         -->|<!-- Is arg "e" not a valid number? NO
           -->{{#ifeq:{{{u|{{{ul|{{{up|{{{upl|}}}}}}}}}}}}|{{{up|{{{upl}}}}}}|<!-- Is arg "up" or "upl" specified but not arg "u" or "ul"?
           -->{{#ifeq:{{{u|{{{ul|{{{up|{{{upl|}}}}}}}}}}}}|{{{up|{{{upl}}}}}}|<!-- Is arg "up" or "upl" specified but not arg "u" or "ul"?
             -->{{FormattingError|Error in {{tl|val}}: unit ('''u''' or '''ul''') is not specified but units per ('''up''' or '''upl''') is.}}<!--
             -->{{FormattingError|Error in {{tl|val}}: unit ('''u''' or '''ul''') is not specified but units per ('''up''' or '''upl''') is.|nocategory={{{nocategory|}}}}}<!--
           -->|<!-- Is arg "up" specified but not arg "u"? NO
           -->|<!-- Is arg "up" specified but not arg "u"? NO
             -->{{#ifeq:{{{u}}}{{{ul}}}|{{{u|}}}{{{ul|}}}|<!-- Is arg "u" and "ul" specified?
             -->{{#ifeq:{{{u}}}{{{ul}}}|{{{u|}}}{{{ul|}}}|<!-- Is arg "u" and "ul" specified?
               -->{{FormattingError|Error in {{tl|val}}: unit ('''u''') and units with link ('''ul''') are both specified, only one is allowed.}}<!--
               -->{{FormattingError|Error in {{tl|val}}: unit ('''u''') and units with link ('''ul''') are both specified, only one is allowed.|nocategory={{{nocategory|}}}}}<!--
             -->|<!-- Is arg "u" and "ul" specified? NO
             -->|<!-- Is arg "u" and "ul" specified? NO
               -->{{#ifeq:{{{up}}}{{{upl}}}|{{{up|}}}{{{upl|}}}|<!-- Is arg "up" and "upl" specified?
               -->{{#ifeq:{{{up}}}{{{upl}}}|{{{up|}}}{{{upl|}}}|<!-- Is arg "up" and "upl" specified?
                 -->{{FormattingError|Error in {{tl|val}}: unit per ('''up''') and units per with link ('''upl''') are both specified, only one is allowed.}}<!--
                 -->{{FormattingError|Error in {{tl|val}}: unit per ('''up''') and units per with link ('''upl''') are both specified, only one is allowed.|nocategory={{{nocategory|}}}}}<!--
               -->|<!-- Is arg "up" and "upl" specified? NO
               -->|<!-- Is arg "up" and "upl" specified? NO
END ERROR CHECKING, START OUTPUT
END ERROR CHECKING, START OUTPUT

Revision as of 12:33, 3 June 2009