Difference between revisions of "Template:BracketMatchTeams"

From comp.tf
Jump to navigation Jump to search
m
m (Semantics?)
Line 9: Line 9:
 
-->{{#vardefine:team2|{{#ifeq:{{{team2|}}}||{{#ifeq:{{{team2tf|TBD}}}||TBD}}|{{#ifeq:{{{team2|}}}|&nbsp;|TBD|{{#explode:{{#explode:{{Team/{{{team2|}}}}}|link=|1}}|]]|0}} }}}}}}<!--
 
-->{{#vardefine:team2|{{#ifeq:{{{team2|}}}||{{#ifeq:{{{team2tf|TBD}}}||TBD}}|{{#ifeq:{{{team2|}}}|&nbsp;|TBD|{{#explode:{{#explode:{{Team/{{{team2|}}}}}|link=|1}}|]]|0}} }}}}}}<!--
  
SMW storage - THIS NEEDS EDITING
+
SMW storage
{{#subobject:{{#var:team1|{{{team1tf|TBD}}}}}_vs_{{#var:team2|{{{team1tf|TBD}}}}}_at_{{#var:Raw_Match_date|TBD}}{{#var:timezone|}}_in_Match_{{#var:match_number|TBD}}
+
-->{{#subobject:{{#var:team1|{{{team1tf|TBD}}}}}_vs_{{#var:team2|{{{team1tf|TBD}}}}}_at_{{#var:Raw_Match_date|TBD}}{{#var:timezone|}}_in_Match_{{#var:match_number|TBD}}
 
|has team left={{#var:team1|{{{team1tf|TBD}}}}}
 
|has team left={{#var:team1|{{{team1tf|TBD}}}}}
 
|has team right={{#var:team2|{{{team2tf|TBD}}}}}
 
|has team right={{#var:team2|{{{team2tf|TBD}}}}}
Line 17: Line 17:
 
|Has map date={{#var:Match_date}}{{#var:timezone}}
 
|Has map date={{#var:Match_date}}{{#var:timezone}}
 
|Has tournament={{FULLPAGENAME}}
 
|Has tournament={{FULLPAGENAME}}
|Has match stream={{#var:stream|}}
+
|Has match stream={{#var:stream|}}<!--
 
|Has match vod={{#var:vod|}}
 
|Has match vod={{#var:vod|}}
 
|Has match vodgame1={{#var:vodgame1|}}
 
|Has match vodgame1={{#var:vodgame1|}}
Line 28: Line 28:
 
|Has match vodgame8={{#var:vodgame8|}}
 
|Has match vodgame8={{#var:vodgame8|}}
 
|Has match vodgame9={{#var:vodgame9|}}
 
|Has match vodgame9={{#var:vodgame9|}}
|Has tournament name={{#var:tournament_ticker_name|{{#var:tournament_name|{{FULLPAGENAME}}}}}}
+
-->{|Has tournament name={{#var:tournament_ticker_name|{{#var:tournament_name|{{FULLPAGENAME}}}}}}
 
|Has tournament icon={{#var:tournament_icon|}}
 
|Has tournament icon={{#var:tournament_icon|}}
 
|Is finished={{#ifeq:{{#var:finished|}}|true|true|{{#if:{{#var:Match_date|}}|{{#ifexpr:({{#time:U}}-{{#time:U|{{#var:Match_date}}{{#var:timezone}}}}) > 30800|true|false}}|false}}}}
 
|Is finished={{#ifeq:{{#var:finished|}}|true|true|{{#if:{{#var:Match_date|}}|{{#ifexpr:({{#time:U}}-{{#time:U|{{#var:Match_date}}{{#var:timezone}}}}) > 30800|true|false}}|false}}}}
Line 34: Line 34:
 
|Has team right score={{#var:team2wins|0}}
 
|Has team right score={{#var:team2wins|0}}
 
|has exact time={{#if:{{#var:timezone|}}|true|false}}
 
|has exact time={{#if:{{#var:timezone|}}|true|false}}
}}{{#vardefine:team1wins|0}}{{#vardefine:team2wins|0}}{{#vardefine:finished|false}}
+
}}{{#vardefine:team1wins|0}}{{#vardefine:team2wins|0}}{{#vardefine:finished|false}}</includeonly><noinclude>{{documentation}}</noinclude>
-->
 
</includeonly><noinclude>{{documentation}}</noinclude>
 

Revision as of 17:55, 22 May 2016