Template:Percentage: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Hydrox
add support for zero-padding the figure
meta>Frietjes
m add safesubst
Line 1: Line 1:
<includeonly>{{#if: {{{pad|}}} | {{decimals | {{#expr:100*{{{1|0}}}/{{{2|100}}}}} | {{#expr: {{{3|{{{pad}}}}}} }} }} | {{#expr:100*{{{1|0}}}/{{{2|100}}} round ({{{3|0}}}>=0)*{{{3|0}}}}}}}{{{%|%}}}</includeonly><noinclude>
<includeonly>{{#if: {{{pad|}}} | {{decimals | {{{{{|safesubst:}}}#expr:100*{{{1|0}}}/{{{2|100}}}}} | {{{{{|safesubst:}}}#expr: {{{3|{{{pad}}}}}} }} }} | {{{{{|safesubst:}}}#expr:100*{{{1|0}}}/{{{2|100}}} round ({{{3|0}}}>=0)*{{{3|0}}}}}}}{{{%|%}}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 17:03, 30 August 2012