You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Winratio: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{{ | <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 | ||
| | |townwin= | ||
| | |townloss= | ||
| | |towndraw= | ||
| | |mafiawin= | ||
|mafialoss= | |||
|mafiadraw= | |||
|otherwin= | |||
|otherloss= | |||
|otherdraw=}}</pre> | |||
== Parameters == | == Parameters == | ||
=== | === townwin === | ||
: | :Number of games won as town. | ||
=== | === townloss === | ||
:Number of games won. | :Number of games lost as town. | ||
=== | === towndraw === | ||
:Number of games lost. | :Number of games drawn as town. | ||
=== | === 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 | ||
| | |townwin=3 | ||
| | |townloss=1 | ||
| | |towndraw=2 | ||
| | |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%)