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

Template:Winratio: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 3: Line 3:
|win={{#expr: ({{{townwin|0}}}+{{{mafiawin|0}}}+{{{otherwin|0}}})}}
|win={{#expr: ({{{townwin|0}}}+{{{mafiawin|0}}}+{{{otherwin|0}}})}}
|loss={{#expr: ({{{townloss|0}}}+{{{mafialoss|0}}}+{{{otherloss|0}}})}}
|loss={{#expr: ({{{townloss|0}}}+{{{mafialoss|0}}}+{{{otherloss|0}}})}}
|draw={{#expr: ({{{towndraw|0}}}+{{{mafiadraw|0}}}+{{{otherdraw|0}}})}}}}'''
|draw={{#expr: ({{{towndraw|0}}}+{{{mafiadraw|0}}}+{{{otherdraw|0}}})}}}}'''<br>
:{{winratiofaction
{{winratiofaction
|faction=Town
|faction=Town
|win={{{townwin}}}
|win={{{townwin}}}
|loss={{{townloss}}}
|loss={{{townloss}}}
|draw={{{towndraw}}}}}
|draw={{{towndraw}}}}}<br>
:{{winratiofaction
{{winratiofaction
|faction=Mafia
|faction=Mafia
|win={{{mafiawin}}}
|win={{{mafiawin}}}
|loss={{{mafialoss}}}
|loss={{{mafialoss}}}
|draw={{{mafiadraw}}}}}
|draw={{{mafiadraw}}}}}<br>
:{{winratiofaction
{{winratiofaction
|faction=Anything Else
|faction=Anything Else
|win={{{otherwin}}}
|win={{{otherwin}}}

Latest revision as of 17:39, 6 April 2012

Summary

This template generates win-loss-draw records for multiple factions at once.

Syntax

{{winratio
|townwin=
|townloss=
|towndraw=
|mafiawin=
|mafialoss=
|mafiadraw=
|otherwin=
|otherloss=
|otherdraw=}}

Parameters

townwin

Number of games won as town.

townloss

Number of games lost as town.

towndraw

Number of games drawn as town.

mafiawin

Number of games won as mafia.

mafialoss

Number of games lost as mafia.

mafiadraw

Number of games drawn as mafia.

otherwin

Number of games won as anything else.

otherloss

Number of games lost as anything else.

otherdraw

Number of games drawn as anything else.

Example

10-7-3 (Total - 58.8%)
3-1-2 (Town - 75%)
2-4-0 (Mafia - 33.3%)
5-2-1 (Anything Else - 71.4%)