You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Percentage: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{{1}}}/{{{2}}} ({{#expr: (({{{1}}} / {{{2}}})round2)}}%)</includeonly><noinclude> == Summary == This template generates fractions and their percentage, rounded. ==...")
 
mNo edit summary
Line 1: Line 1:
<includeonly>{{{1}}}/{{{2}}} ({{#expr: (({{{1}}} / {{{2}}})round2)}}%)</includeonly><noinclude>
<includeonly>{{{1}}}/{{{2}}} ({{#expr: (({{{1}}} / {{{2}}})round2)*100}}%)</includeonly><noinclude>
== Summary ==
== Summary ==
This template generates fractions and their percentage, rounded.
This template generates fractions and their percentage, rounded.

Revision as of 14:49, 6 April 2012

Summary

This template generates fractions and their percentage, rounded.

Syntax

{{percentage|{{{1}}}|{{{2}}}}}

Parameters

{{{1}}}

the numerator of the fraction

{{{2}}}

the denominator of the fraction; must not be zero

Example

2/3 (67%)