You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

User:Derangement/Templates/SummaryRow: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(Added new columns, and its parameter: endgamed.)
m (Fixed win% to be between 0 and 100 (instead of between 0 and 1). Derp.)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
}}
}}
!{{#expr: {{{won|0}}}+{{{lost|0}}}+{{{tied|0}}} }}
!{{#expr: {{{won|0}}}+{{{lost|0}}}+{{{tied|0}}} }}
!{{#ifexpr: ({{{won|0}}}+{{{lost|0}}}+{{{tied|0}}}) = 0 | - | {{#expr: {{{won|0}}} / ({{{won|0}}}+{{{lost|0}}}+{{{tied|0}}}) }}% }}
!{{#ifexpr: ({{{won|0}}}+{{{lost|0}}}+{{{tied|0}}}) = 0 | - | {{#expr: 100 * {{{won|0}}} / ({{{won|0}}}+{{{lost|0}}}+{{{tied|0}}}) round 0 }}% }}
{{#ifeq: {{{faction|total}}} | total | ! | {{!}} }}{{{won|0}}}
{{#ifeq: {{{faction|total}}} | total | ! | {{!}} }}{{{won|0}}}
{{#ifeq: {{{faction|total}}} | total | ! | {{!}} }}{{{lost|0}}}
{{#ifeq: {{{faction|total}}} | total | ! | {{!}} }}{{{lost|0}}}

Latest revision as of 17:41, 4 February 2015

This is a template for a single row in Derangement's games summary table.