Difference between revisions of "Template:MatchMaps"

From comp.tf
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
<includeonly>{{#if:{{{date|}}}|<tr><!--
 
<includeonly>{{#if:{{{date|}}}|<tr><!--
{{#vardefine:timezone|{{#explode:{{#explode:{{{date|}}}|data-tz="|1}}|"|0}}}}
+
-->{{#vardefine:timezone|{{#explode:{{#explode:{{{date|}}}|data-tz="|1}}|"|0}}}}<!--
{{#vardefine:Match_date|{{#replace:{{#explode:{{{date|}}}|<|0}}|-}}}}
+
-->{{#vardefine:Match_date|{{#replace:{{#explode:{{{date|}}}|<|0}}|-}}}}<!--
{{#vardefine:Raw_Match_date|{{#explode:{{{date|TBD}}}|<|0}}}}
+
-->{{#vardefine:Raw_Match_date|{{#explode:{{{date|TBD}}}|<|0}}}}<!--
 
--><td colspan="4" style="font-weight:bold; background-color:#f2f2f2; font-size:85%; line-height:90%; height:13px;"><center>{{#ifeq:{{{finished|}}}|true|{{{date}}}|<span class="streamLink">{{{stream|}}}</span><span class="datetime">{{{date}}}</span><br /><span class="countdown" style="font-weight:normal"></span>}}</center></td>
 
--><td colspan="4" style="font-weight:bold; background-color:#f2f2f2; font-size:85%; line-height:90%; height:13px;"><center>{{#ifeq:{{{finished|}}}|true|{{{date}}}|<span class="streamLink">{{{stream|}}}</span><span class="datetime">{{{date}}}</span><br /><span class="countdown" style="font-weight:normal"></span>}}</center></td>
 
</tr><!--
 
</tr><!--
Line 26: Line 26:
 
</tr><!--
 
</tr><!--
  
<!-- Re-enable and modify under new server change
 
 
Variables transformations
 
Variables transformations
{{#vardefine:team1|{{#ifeq:{{{team1|}}}||TBD|{{#ifeq:{{{team1|}}}|&nbsp;|TBD|{{#explode:{{#explode:{{Team/{{{team1|}}}}}|link=|1}}|]]|0}} }}}}}}
+
-->{{#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:team2|{{#ifeq:{{{team2|}}}||TBD|{{#ifeq:{{{team2|}}}|&nbsp;|TBD|{{#explode:{{#explode:{{Team/{{{team2|}}}}}|link=|1}}|]]|0}} }}}}}}<!--
 
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:{{#var:team1|TBD}}_vs_{{#var:team2|TBD}}_at_{{#var:Raw_Match_date|TBD}}{{#var:timezone|}}_in_Match_{{#var:match_number|TBD}}
 
|is map number=1
 
|is map number=1
 
|has team left={{#var:team1|TBD}}
 
|has team left={{#var:team1|TBD}}
Line 39: Line 38:
 
|Has tournament tier={{#var:tournament_tier|}}
 
|Has tournament tier={{#var:tournament_tier|}}
 
|Has match stream={{{stream|{{#var:stream|}}}}}
 
|Has match stream={{{stream|{{#var:stream|}}}}}
|Has tournament name={{#var:tournament_name|}}
+
|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 45: Line 44:
 
|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>[[Category:Source Liquipedia]]{{documentation}}</noinclude>
</includeonly><noinclude>[[Category:Source Liquipedia]]{{documentation}}</noinclude>
 

Revision as of 21:49, 10 March 2016

(view - edit) Documentation

This template is used by: