Template:Ratio

From PS4 Developer wiki
Revision as of 19:50, 29 January 2014 by Euss (talk | contribs) (Created page with "<includeonly>{{#ifexpr:{{{1}}}=0 AND {{{1}}}={{#if:{{{total|}}}|{{{total}}}|{{{2}}}}}|0|{{#expr:{{{1}}}/({{#if:{{{total|}}}|{{{total}}}|{{{1}}}+{{{2}}}}}) * 100 ROUND {{{round...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Usage

{{ratio|1|2}}
33.3% (1/3)
{{ratio|1|2|text=!!!!!}}
33.3!!!!!
{{ratio|1|total=3}}
33.3% (1/3)
{{ratio|1|2|round=4}}
33.3333% (1/3)

Displays a ratio of the first number to the total of both numbers.