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
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{{win|0}}}-{{{loss|0}}}-{{{draw|0}}} ({{{faction|Total}}} - {{#expr: (({{{win|0}}}/({{{win|0}}}+{{{loss|0}}}))*100)round2}}%)</includeonly><noinclude>
<includeonly>'''{{winratiofaction
|faction=Total
|win={{#expr: ({{{townwin|0}}}+{{{mafiawin|0}}}+{{{otherwin|0}}})}}
|loss={{#expr: ({{{townloss|0}}}+{{{mafialoss|0}}}+{{{otherloss|0}}})}}
|draw={{#expr: ({{{towndraw|0}}}+{{{mafiadraw|0}}}+{{{otherdraw|0}}})}}}}'''
:{{winratiofaction
|faction=Town
|win={{{townwin}}}
|loss={{{townloss}}}
|draw={{{towndraw}}}}}
:{{winratiofaction
|faction=Mafia
|win={{{mafiawin}}}
|loss={{{mafialoss}}}
|draw={{{mafiadraw}}}}}
:{{winratiofaction
|faction=Anything Else
|win={{{otherwin}}}
|loss={{{otherloss}}}
|draw={{{otherdraw}}}}}</includeonly><noinclude>
== Summary ==
== Summary ==
This template generates win-loss-draw records.
This template generates win-loss-draw records for multiple factions at once.


== Syntax ==
== Syntax ==
<pre>{{winratio
<pre>{{winratio
|faction=
|townwin=
|win=
|townloss=
|loss=
|towndraw=
|draw=}}</pre>
|mafiawin=
|mafialoss=
|mafiadraw=
|otherwin=
|otherloss=
|otherdraw=}}</pre>


== Parameters ==
== Parameters ==
=== faction ===
=== townwin ===
:Town, Mafia, Anything Else. Defaults to Total.
:Number of games won as town.
=== win ===
=== townloss ===
:Number of games won.
:Number of games lost as town.
=== loss ===
=== towndraw ===
:Number of games lost.
:Number of games drawn as town.
=== draw ===
=== mafiawin ===
:Number of games drawn.
: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 ==
== Example ==
{{winratio
{{winratio
|faction=Mafia
|townwin=3
|win=2
|townloss=1
|loss=1
|towndraw=2
|draw=3}}
|mafiawin=2
|mafialoss=4
|mafiadraw=0
|otherwin=5
|otherloss=2
|otherdraw=1}}


[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 14:38, 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%)