Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SkyLined
m If this doesn't work, I give up.
meta>SkyLined
Reverted to revision 622632962 by SkyLined (talk): Undo attempted fix of -0 as third argument issue. (TW)
Line 11: Line 11:
       -->{{FormattingError|Error in {{tl|val}}: third argument is not a valid number or requires too much precision to display.|nocategory={{{nocategory|}}}}}<!--
       -->{{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.|nocategory={{{nocategory|}}}}}<!--
         -->{{FormattingError|Error in {{tl|val}}: third argument is not negative.|nocategory={{{nocategory|}}}}}<!--
       -->|<!-- Is arg3 positive? NO
       -->|<!-- Is arg3 positive? NO
Line 59: Line 59:
                         -->p=+{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{2}}}}}<!--
                         -->p=+{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{2}}}}}<!--
                               Output +arg2, formatted.
                               Output +arg2, formatted.
                        -->{{{+errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}|<!--
                        -->{{{+errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}|<!--
                               Append something and/or add angle/percent symbol.
                               Append something and/or add angle/percent symbol.
                        -->{{#ifexpr: {{{3}}}=0|<!--
                          -->&minus;0<!--
                         -->b={{val/delimitnum|fmt={{{fmt|gaps}}}|{{{3}}}}}<!--
                              -0 is a special case.
                         -->|<!--
                          -->b={{val/delimitnum|fmt={{{fmt|gaps}}}|{{{3}}}}}<!--
                               Output -arg3, formatted.
                               Output -arg3, formatted.
                        -->}}<!--
                         -->{{{-errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!--
                         -->{{{-errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!--
                               Append something and/or add angle/percent symbol.
                               Append something and/or add angle/percent symbol.

Revision as of 18:28, 24 August 2014