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
mNo edit summary
Line 1: Line 1:
<includeonly>{{{win|0}}}-{{{loss|0}}}-{{{draw|0}}} (Total - {{#expr: (({{{win|0}}}/({{{win|0}}}+{{{loss|0}}}))*100)round2}}%)</includeonly><noinclude>
<includeonly>{{{win|0}}}-{{{loss|0}}}-{{{draw|0}}} ({{{faction|Total}}} - {{#expr: (({{{win|0}}}/({{{win|0}}}+{{{loss|0}}}))*100)round2}}%)</includeonly><noinclude>
== Summary ==
== Summary ==
This template generates win-loss-draw records.
This template generates win-loss-draw records.
Line 5: Line 5:
== Syntax ==
== Syntax ==
<pre>{{winratio
<pre>{{winratio
|faction=
|win=
|win=
|loss=
|loss=
Line 10: Line 11:


== Parameters ==
== Parameters ==
=== faction ===
:Town, Mafia, Anything Else. Defaults to Total.
=== win ===
=== win ===
:Number of games won.
:Number of games won.
Line 19: Line 22:
== Example ==
== Example ==
{{winratio
{{winratio
|faction=Mafia
|win=2
|win=2
|loss=1
|loss=1

Revision as of 14:18, 6 April 2012

Summary

This template generates win-loss-draw records.

Syntax

{{winratio
|faction=
|win=
|loss=
|draw=}}

Parameters

faction

Town, Mafia, Anything Else. Defaults to Total.

win

Number of games won.

loss

Number of games lost.

draw

Number of games drawn.

Example

2-1-3 (Mafia - 66.67%)