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

Template:SetupHistory/Parser: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#ifeq:{{{Setup|}}}|{{PAGENAME}}|{{SetupHistory/Converter
{{#ifeq:{{{Setup|}}}|{{PAGENAME}}|{{SetupHistory/Converter
|Thread_ID={{{Thread_ID|}}}
|Thread_ID={{{Thread_ID|}}}
|GameType_&_ID={{{GameType_&_ID|}}}
|GameType_&_ID={{{GameType_&_ID|}}}
Line 5: Line 5:
|Result={{{Result|}}}
|Result={{{Result|}}}
}}|<div style="line-height:0"></div>}}{{#ifeq:{{PAGENAME}}|{{{Setup|}}}/Stats|{{#switch:{{{Result|}}}
}}|<div style="line-height:0"></div>}}{{#ifeq:{{PAGENAME}}|{{{Setup|}}}/Stats|{{#switch:{{{Result|}}}
|Town Win=&#124 T
|Town Win={{#ifeq:{{PAGENAME}}|SetupHistory/Stats|<nowiki>|}&#124{{#ifeq:{{PAGENAME}}|SetupHistory/Stats|</nowiki>|} T
|Mafia Win=&#124 M
|Mafia Win={{#ifeq:{{PAGENAME}}|SetupHistory/Stats|<nowiki>|}&#124{{#ifeq:{{PAGENAME}}|SetupHistory/Stats|<nowiki>|} M
}}|}}</includeonly><noinclude>{{Template
}}|}}
|Name=Setup History
|Type=Utility
|Sub=Yes
|Designer=wgeurts
}}
The parser for the [[Template:SetupHistory]]. It allows the template to only show the history for the correct setup on that setup page.</noinclude>

Revision as of 20:12, 29 January 2015

{{#ifeq:SetupHistory/Parser|/Stats|{{#switch:

|Town Win={{#ifeq:SetupHistory/Parser|SetupHistory/Stats||}&#124{{#ifeq:{{PAGENAME}}|SetupHistory/Stats||} T |Mafia Win=}&#124} M