Difference between revisions of "Template:MatchMaps"

From comp.tf
Jump to navigation Jump to search
Line 31: Line 31:
 
-->{{#vardefine:team2|{{#ifeq:{{{team2|}}}||TBD|{{#ifeq:{{{team2|}}}|&nbsp;|TBD|{{#ifexist:Template:Team/{{{team2|}}}|{{#explode:{{#explode:{{Team/{{{team2|}}}}}|link=|1}}|]]|0}}|{{{team2|}}}}} }}}}}}<!--
 
-->{{#vardefine:team2|{{#ifeq:{{{team2|}}}||TBD|{{#ifeq:{{{team2|}}}|&nbsp;|TBD|{{#ifexist:Template:Team/{{{team2|}}}|{{#explode:{{#explode:{{Team/{{{team2|}}}}}|link=|1}}|]]|0}}|{{{team2|}}}}} }}}}}}<!--
 
SMW storage
 
SMW storage
-->{{#subobject:{{#var:team1|TBD}}_vs_{{#var:team2|TBD}}_at_{{#var:Raw_Match_date|TBD}}{{#var:timezone|}}_in_Match_{{#var:match_number|TBD}}
+
-->{{#subobject:{{#if:{{{team1tf|}}}|{{{team1tf|}}}|{{{team1tf|TBD}}}}}_vs_{{#if:{{{team2tf|}}}|{{{team2tf|}}}|{{{team2tf|TBD}}}}}_at_{{#var:Raw_Match_date|TBD}}{{#var:timezone|}}_in_Match_{{#var:match_number|TBD}}
|is map number=1
+
|has team left={{#if:{{{team1tf|}}}|{{{team1tf|}}}|{{{team1tf|TBD}}}}}
|has team left={{#var:team1|TBD}}
+
|has team right={{#if:{{{team2tf|}}}|{{{team2tf|}}}|{{{team2tf|TBD}}}}}
|has team right={{#var:team2|TBD}}
 
 
|Has sub={{#var:sub1}}
 
|Has sub={{#var:sub1}}
 
|Has sub={{#var:sub2}}
 
|Has sub={{#var:sub2}}

Revision as of 18:48, 4 March 2017

(view - edit) Documentation

This template is used by: