Difference between revisions of "Template:Game"

From comp.tf
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 20: Line 20:
 
</div><!--
 
</div><!--
  
Variables transformations
 
-->{{#vardefine:team1|{{#ifeq:{{{team1|}}}||TBD|{{#ifeq:{{{team1|}}}|&nbsp;|TBD|{{#explode:{{#explode:{{Team/{{{team1|}}}}}|link=|1}}|]]|0}} }}}}}}<!--
 
-->{{#vardefine:team2|{{#ifeq:{{{team2|}}}||TBD|{{#ifeq:{{{team2|}}}|&nbsp;|TBD|{{#explode:{{#explode:{{Team/{{{team2|}}}}}|link=|1}}|]]|0}} }}}}}}<!--
 
-->{{#vardefine:map_name|{{#if:{{{map|}}}}}}}<!--
 
 
Storage of score in variables (later in SMW)
 
Storage of score in variables (later in SMW)
-->
+
-->{{#switch:{{{win|}}}
{{#switch:{{{win|}}}
 
 
|1={{#vardefine:team1wins|{{#expr:{{#var:team1wins|0}} + 1}} }}
 
|1={{#vardefine:team1wins|{{#expr:{{#var:team1wins|0}} + 1}} }}
 
|2={{#vardefine:team2wins|{{#expr:{{#var:team2wins|0}} + 1}} }}
 
|2={{#vardefine:team2wins|{{#expr:{{#var:team2wins|0}} + 1}} }}
| }}
+
| }}</includeonly>
{{#subobject:maps
 
|Has map ={{#var:map_name|TBD}}
 
}}{{#vardefine:games1|0}}{{#vardefine:games2|0}}{{#vardefine:finished|false}}
 
</includeonly>
 
 
<noinclude>
 
<noinclude>
{{documentation}}[[Category:Source Liquipedia]]
+
<div class="bracket-game-details" style="margin-left: 0px; margin-top: -30px; display: block;"><div class="matches" style="padding:2px 1px">{{Game |t1score=4 |t2score=1 |win=1 |map=cp_gullywash_final1 }}</div></div>
 
</noinclude>
 
</noinclude>

Latest revision as of 23:02, 26 August 2017