Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Cpiral
(new delimitnum version called with "fmt|", not "fmt|gaps")
meta>Cpiral
(Remove non-critical error checking to greatly reduce post-expansion include size)
Line 2: Line 2:
--><span class="nowrap"><!--
--><span class="nowrap"><!--
START ERROR CHECKING:
START ERROR CHECKING:
                -->{{#iferror:{{#expr:{{{1|0}}}}}<!-- Is arg1 not a valid number?
-->{{#ifeq:{{{u}}}{{{ul}}}|{{{u|}}}{{{ul|}}}<!-- Is arg "u" and "ul" specified?
arg1 isn't valid -->|{{FormattingError|Error in {{tl|val}}: first argument is not a valid number.|nocategory={{{nocategory|}}}}}<!--
arg1 is    valid -->|{{#iferror:{{#expr:{{{2|0}}}}}<!-- Is arg2 not a valid number?
    arg2 isn't valid -->|{{FormattingError|Error in {{tl|val}}: second argument is not a valid number.|nocategory={{{nocategory|}}}}}<!--
    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 is    valid -->|{{#ifexpr: {{{2|0}}} < 0<!-- Is arg2 negative?
          arg2 is negative -->|{{FormattingError|Error in {{tl|val}}: second argument is negative.|nocategory={{{nocategory|}}}}}<!--
          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"  is    valid -->|{{#ifeq:{{{u}}}{{{ul}}}|{{{u|}}}{{{ul|}}}<!-- Is arg "u" and "ul" specified?
   "u"  & "ul"      both specified -->|{{FormattingError|Error in {{tl|val}}: unit ('''u''') and units with link ('''ul''') are both specified, only one is allowed.|nocategory={{{nocategory|}}}}}<!--
   "u"  & "ul"      both specified -->|{{FormattingError|Error in {{tl|val}}: unit ('''u''') and units with link ('''ul''') are both specified, only one is allowed.|nocategory={{{nocategory|}}}}}<!--
   "u"  & "ul"  not both specified -->|{{#ifeq:{{{up}}}{{{upl}}}|{{{up|}}}{{{upl|}}}<!-- Is arg "up" and "upl" specified?
   "u"  & "ul"  not both specified  
-->|{{#ifeq:{{{up}}}{{{upl}}}|{{{up|}}}{{{upl|}}}<!-- Is arg "up" and "upl" specified?
     "up" & "ulp"    both specified -->|{{FormattingError|Error in {{tl|val}}: unit per ('''up''') and units per with link ('''upl''') are both specified, only one is allowed.|nocategory={{{nocategory|}}}}}<!--
     "up" & "ulp"    both specified -->|{{FormattingError|Error in {{tl|val}}: unit per ('''up''') and units per with link ('''upl''') are both specified, only one is allowed.|nocategory={{{nocategory|}}}}}<!--
     "up" & "ulp" not both specified -->|<!--
     "up" & "ulp" not both specified  
-->|<!--
END OPENING OF ERROR CHECKING, START OUTPUT
END OPENING OF ERROR CHECKING, START OUTPUT


Line 222: Line 214:
                   -->}}<!-- End Is arg "up" and "upl" specified?
                   -->}}<!-- End Is arg "up" and "upl" specified?
               -->}}<!-- End Is arg "u" and "ul" specified?
               -->}}<!-- End Is arg "u" and "ul" specified?
            -->}}<!-- End Is arg "e" not a valid number?
        -->}}<!-- End Is arg2 negative?
      -->}}<!-- End Is arg3 not a valid number?
  -->}}<!-- End Is arg2 not a valid number?
-->}}<!-- End Is arg1 not a valid number?
END ERROR CHECKING
END ERROR CHECKING
--></span></includeonly><noinclude>
--></span></includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 18:16, 19 June 2015