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
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{{win|0}}}-{{{loss|0}}}-{{{draw|0}}} (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}}})}}}}'''<br>
{{winratiofaction
|faction=Town
|win={{{townwin}}}
|loss={{{townloss}}}
|draw={{{towndraw}}}}}<br>
{{winratiofaction
|faction=Mafia
|win={{{mafiawin}}}
|loss={{{mafialoss}}}
|draw={{{mafiadraw}}}}}<br>
{{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
|win=
|townwin=
|loss=
|townloss=
|draw=}}</pre>
|towndraw=
|mafiawin=
|mafialoss=
|mafiadraw=
|otherwin=
|otherloss=
|otherdraw=}}</pre>


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


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

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%)