Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined
m Fixed EndIf part of new error checks and inline documentation
meta>SkyLined
Expanded up/u check to include upl and ul
Line 20: Line 20:
       -->|<!-- 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.}}<!--
         -->|<!-- Is arg "e" not a valid number? NO
         -->|<!-- Is arg "e" not a valid number? NO
           -->{{#ifeq:{{{u|{{{up|}}}}}}|{{{up}}}|<!-- Is arg "up" specified but not arg "u"?
           -->{{#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) is not specified but units per (up) is.}}<!--
             -->{{FormattingError|Error in {{tl|val}}: unit ('''u''' or '''ul''') is not specified but units per ('''up''' or '''upl''') is.}}<!--
           -->|<!-- 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.}}<!--
             -->|<!-- 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.}}<!--
               -->|<!-- 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 20:00, 22 April 2008