You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:TotalWinRatio: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
|wins={{#expr: ({{{townwin|0}}}+{{{mafiawin|0}}}+{{{otherwin|0}}})}} | |wins={{#expr: ({{{townwin|0}}}+{{{mafiawin|0}}}+{{{otherwin|0}}})}} | ||
|losses={{#expr: ({{{townloss|0}}}+{{{mafialoss|0}}}+{{{otherloss|0}}})}} | |losses={{#expr: ({{{townloss|0}}}+{{{mafialoss|0}}}+{{{otherloss|0}}})}} | ||
|draws={{#expr: ({{{towndraw|0}}}+{{{mafiadraw|0}}}+{{{otherdraw|0}}})}}}} | |draws={{#expr: ({{{towndraw|0}}}+{{{mafiadraw|0}}}+{{{otherdraw|0}}})}}}}<br> | ||
{{WinsAsFaction | {{WinsAsFaction | ||
|faction=Town | |faction=Town |
Revision as of 03:16, 30 July 2012
This template creates a win ratio for each faction. It is meant to be used with its child template WinsAsFaction.
How it Looks
23–14–4 as All Alignments — 56.1% Win rate
3–5–0 as Town — 37.5% Win rate
12–3–1 as Mafia — 75% Win rate
8–6–3 as Other — 47.06% Win rate
The Code
{{TotalWinRatio|townwin=3|townloss=5|towndraw=0|mafiawin=12|mafialoss=3|mafiadraw=1|otherwin=8|otherloss=6|otherdraw=3}}