You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
User:Derangement/Templates/SummaryRow: Difference between revisions
Jump to navigation
Jump to search
Derangement (talk | contribs) (New parameters: icon, faction, won, lost, tied. (played and win% are calculated automatically)) |
Derangement (talk | contribs) m (Fixed win% to be between 0 and 100 (instead of between 0 and 1). Derp.) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>|- | <includeonly>|- | ||
!style="border-right:none;" | {{#ifeq: {{{faction|total}}} | total | | | ||
!style="border-left:none;" | !style="border-right:none;"{{!}}{{{icon|}}} | ||
!style="border-left:none;"{{!}}{{{faction|}}} | |||
}} | |||
!{{#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 }}% }} | ||
|{{{won|0}}} | {{#ifeq: {{{faction|total}}} | total | ! | {{!}} }}{{{won|0}}} | ||
|{{{lost|0}}} | {{#ifeq: {{{faction|total}}} | total | ! | {{!}} }}{{{lost|0}}} | ||
|{{{tied|0}}}</includeonly><noinclude> | {{#ifeq: {{{faction|total}}} | total | ! | {{!}} }}{{{tied|0}}} | ||
This is a template for a single row in [[Derangement]]'s games summary table. | {{#ifeq: {{{faction|total}}} | total | | | ||
!style="border-right:none;"{{!}}{{{icon|}}} | |||
!style="border-left:none;"{{!}}{{{faction|}}} | |||
}} | |||
{{#ifeq: {{{faction|total}}} | total | ! | {{!}} }}{{{survived|0}}} | |||
{{#ifeq: {{{faction|total}}} | total | ! | {{!}} }}{{{lynched|0}}} | |||
{{#ifeq: {{{faction|total}}} | total | ! | {{!}} }}{{{killed|0}}} | |||
{{#ifeq: {{{faction|total}}} | total | ! | {{!}} }}{{{endgamed|0}}}</includeonly><noinclude> | |||
This is a template for a single row in [[Derangement]]'s [[User:Derangement/Templates/SummaryTable|games summary table]]. | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 17:41, 4 February 2015
This is a template for a single row in Derangement's games summary table.