Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Headbomb
m Undid revision 398841194 by Headbomb (talk) MSGJ beat me to it and has better code structure
meta>Verdy p
m null editing (by spaces cleanup) to fix deleted categories
Line 28: Line 28:
END ERROR CHECKING, START OUTPUT
END ERROR CHECKING, START OUTPUT
                 -->{{{p|}}}<!-- If p (prefix) is defined, display it.
                 -->{{{p|}}}<!-- If p (prefix) is defined, display it.
                 -->{{#if: {{{1|}}}|<!-- Are there any arguments?
                 -->{{#if: {{{1|}}}|<!-- Are there any arguments?
                   -->{{val/delimitnum|{{{1|}}}}}{{{end|}}}<!-- Output arg1, formatted.
                   -->{{val/delimitnum|{{{1|}}}}}{{{end|}}}<!-- Output arg1, formatted.
Line 50: Line 49:
                   -->{{#if:{{{e|}}}|10{{su|p={{val/delimitnum|{{{e}}}}}}}}}<!-- e=exponent
                   -->{{#if:{{{e|}}}|10{{su|p={{val/delimitnum|{{{e}}}}}}}}}<!-- e=exponent
                 -->}}<!-- End Are there any arguments?
                 -->}}<!-- End Are there any arguments?
                 -->{{#if:{{{u|}}}|&nbsp;{{val/units|{{{u}}}}}}}<!-- u=units  
                 -->{{#if:{{{u|}}}|&nbsp;{{val/units|{{{u}}}}}}}<!-- u=units
                 -->{{#if:{{{ul|}}}|&nbsp;{{val/unitswithlink|{{{ul}}}}}}}<!-- u=units with link
                 -->{{#if:{{{ul|}}}|&nbsp;{{val/unitswithlink|{{{ul}}}}}}}<!-- u=units with link
                 -->{{#if:{{{up|}}}|/{{val/units|{{{up}}}}}}}<!-- up=per units  
                 -->{{#if:{{{up|}}}|/{{val/units|{{{up}}}}}}}<!-- up=per units
                 -->{{#if:{{{upl|}}}|/{{val/unitswithlink|{{{upl}}}}}}}<!-- up=per units with link
                 -->{{#if:{{{upl|}}}|/{{val/unitswithlink|{{{upl}}}}}}}<!-- up=per units with link
                 -->{{{s|}}}<!-- If s (suffix) is defined, display it.
                 -->{{{s|}}}<!-- If s (suffix) is defined, display it.

Revision as of 06:14, 27 November 2010