You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:WinsAsFaction: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span style='font:normal 16px arial, verdana, helvetica'>'''{{{wins|0}}}<span style='margin:0 3px;position:relative;top:-2px;'>–</span>{{{losses|0}}}<span style='margin:0 3px;position:relative;top:-2px;'>–</span>{{{draws|0}}}''' as '''{{#switch:{{{faction}}}|Mafia=<span style='color:#b00'>Mafia</span>|Scum=<span style='color:#b00'>Scum</span>|Town=<span style='color:green'>Town</span>|SK=<span style='color:#777'> | <includeonly><span style='font:normal 16px arial, verdana, helvetica'>'''<span style='display:inline;block;width:20px;min-width:20px;>{{{wins|0}}}</span><span style='margin:0 3px;position:relative;top:-2px;'>–</span><span style='display:inline;block;width:20px;min-width:20px;>{{{losses|0}}}</span><span style='margin:0 3px;position:relative;top:-2px;'>–</span><span style='display:inline;block;width:20px;min-width:20px;>{{{draws|0}}}</span>''' as '''{{#switch:{{{faction}}}|Mafia=<span style='color:#b00'>Mafia</span>|Scum=<span style='color:#b00'>Scum</span>|Town=<span style='color:green'>Town</span>|SK=<span style='color:#777'>SK</span>|Serial Killer=<span style='color:#777'>SK</span>|Cult=<span style='color:#808'>Cult</span>|Other=<span style='color:#777'>Other</span>|All Alignments}} <span style='position:relative;top:-2px;'>—</span> {{#ifeq: {{{wins|0}}} | 0 | 0 | {{#expr: (({{{wins|0}}}/({{{wins|0}}}+{{{losses|0}}}+{{{draws|0}}}))*100)round2}}}}%''' Win rate</span></includeonly><noinclude>This template creates a win ratio for each faction. It is meant to be used with its parent template '''[[Template:TotalWinRatio|TotalWinRatio]]'''. | ||
==How it Looks== | |||
{{WinsAsFaction|faction=Cult|wins=16|losses=2|draws=1}} | {{WinsAsFaction|faction=Cult|wins=16|losses=2|draws=1}} | ||
==The Code== | |||
<pre>{{WinsAsFaction|faction=Cult|wins=16|losses=2|draws=1}}</pre></noinclude> | <pre style='font-size:120%;font-weight:bold;'>{{WinsAsFaction|faction=Cult|wins=16|losses=2|draws=1}}</pre></noinclude> |
Latest revision as of 03:54, 30 July 2012
This template creates a win ratio for each faction. It is meant to be used with its parent template TotalWinRatio.
How it Looks
16–2–1 as Cult — 84.21% Win rate
The Code
{{WinsAsFaction|faction=Cult|wins=16|losses=2|draws=1}}