Difference between revisions of "Template:MatchMaps"

From comp.tf
Jump to navigation Jump to search
(Created page with "<includeonly><table class="{{{class|wikitable matchlist collapsible{{#ifeq:{{lc:{{{uncollapsed-maps|}}}}}|true|uncollapsed-maps}} {{#ifeq:{{lc:{{{hide}}}}}|false||collapsed}}}...")
 
 
(96 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><table class="{{{class|wikitable matchlist collapsible{{#ifeq:{{lc:{{{uncollapsed-maps|}}}}}|true|uncollapsed-maps}} {{#ifeq:{{lc:{{{hide}}}}}|false||collapsed}}}}}" style="width:{{{width|300px}}}; margin: -1px 0 0 0;">
+
<includeonly>{{#if:{{{date|}}}|<tr><!--
<tr><th colspan="4"> {{{1|{{{title|Match List}}}}}}<!-- Icons for interviews preview vod etc.
+
-->{{#vardefine:timezone|{{#explode:{{#explode:{{{date|}}}|data-tz="|1}}|"|0}}}}<!--
-->{{#if:{{{preview|}}} {{{lrthread|}}} {{{vod|}}} {{{interview|}}} {{{review|}}} {{{recap|}}}|<span style="float:right;"><!--
+
-->{{#vardefine:Match_date|{{#replace:{{#explode:{{{date|}}}|<|0}}|-}}}}<!--
-->{{#if:{{{preview|}}}|[[File:Preview Icon.png|link={{{preview}}}|alt=preview|15px|Preview]]}} <!--
+
-->{{#vardefine:Raw_Match_date|{{#explode:{{{date|TBD}}}|<|0}}}}<!--
-->{{#if:{{{lrthread|}}}|[[File:LiveReport.png|link={{{lrthread}}}|alt=lrthread|15px|Live Report Thread]]}} <!--
+
--><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>
-->{{#if:{{{vod|}}}|[[File:vod.png|link={{{vod}}}|15px|Watch VOD]]}} <!--
+
</tr><!--
-->{{#if:{{{interview|}}}|[[File:Int_Icon.png|link={{{interview}}}|20px|Interview]]}} <!--
+
-->}}<tr class="match-row">
-->{{#if:{{{recap|}}}|[[File:Writers_Icon.png|link={{{recap}}}|15px|Recap]]}} <!--
+
<td class="matchlistslot" width="42%" align="right" {{#ifeq:{{{winner|}}}|1|style="font-weight:bold; background-color:#cfc"}}{{#ifeq:{{{winner|}}}|draw|style="font-weight:bold; background-color:#FFFFBB"}}><!--
-->{{#if:{{{review|}}}|[[File:Writers_Icon.png|link={{{review}}}|15px|Recap]]}}</span> }}</th></tr><!-- List of matches (up to 50) -->
+
--> {{#if:{{{team1|}}}|{{team2/{{lc:{{{team1}}}}}}}}} <!--
{{{match1|}}}{{{match2|}}}{{{match3|}}}{{{match4|}}}{{{match5|}}}{{{match6|}}}{{{match7|}}}{{{match8|}}}{{{match9|}}}{{{match10|}}}{{{match11|}}}{{{match12|}}}{{{match13|}}}{{{match14|}}}{{{match15|}}}{{{match16|}}}{{{match17|}}}{{{match18|}}}{{{match19|}}}{{{match20|}}}{{{match21|}}}{{{match22|}}}{{{match23|}}}{{{match24|}}}{{{match25|}}}{{{match26|}}}{{{match27|}}}{{{match28|}}}{{{match29|}}}{{{match30|}}}{{{match31|}}}{{{match32|}}}{{{match33|}}}{{{match34|}}}{{{match35|}}}{{{match36|}}}{{{match37|}}}{{{match38|}}}{{{match39|}}}{{{match40|}}}{{{match41|}}}{{{match42|}}}{{{match43|}}}{{{match44|}}}{{{match45|}}}{{{match46|}}}{{{match47|}}}{{{match48|}}}{{{match49|}}}{{{match50|}}}{{{match51|}}}{{{match52|}}}{{{match53|}}}{{{match54|}}}{{{match55|}}}{{{match56|}}}{{{match57|}}}{{{match58|}}}{{{match59|}}}{{{match60|}}}{{{match61|}}}{{{match62|}}}{{{match63|}}}{{{match64|}}}{{{match65|}}}{{{match66|}}}{{{match67|}}}{{{match68|}}}{{{match69|}}}{{{match70|}}}{{{match71|}}}{{{match72|}}}{{{match73|}}}{{{match74|}}}{{{match75|}}}{{{match76|}}}{{{match77|}}}{{{match78|}}}{{{match79|}}}{{{match80|}}}{{{match81|}}}{{{match82|}}}{{{match83|}}}{{{match84|}}}{{{match85|}}}{{{match86|}}}{{{match87|}}}{{{match88|}}}{{{match89|}}}{{{match90|}}}{{{match91|}}}{{{match92|}}}{{{match93|}}}{{{match94|}}}{{{match95|}}}{{{match96|}}}{{{match97|}}}{{{match98|}}}{{{match99|}}}{{{match100|}}}{{{match101|}}}{{{match102|}}}{{{match103|}}}{{{match104|}}}{{{match105|}}}{{{match106|}}}{{{match107|}}}{{{match108|}}}{{{match109|}}}{{{match110|}}}{{{match111|}}}{{{match112|}}}{{{match113|}}}{{{match114|}}}{{{match115|}}}{{{match116|}}}{{{match117|}}}{{{match118|}}}{{{match119|}}}{{{match120|}}}{{{match121|}}}{{{match122|}}}{{{match123|}}}{{{match124|}}}{{{match125|}}}{{{match126|}}}{{{match127|}}}{{{match128|}}}{{{match129|}}}{{{match130|}}}{{{match131|}}}{{{match132|}}}{{{match133|}}}{{{match134|}}}{{{match135|}}}{{{match136|}}}{{{match137|}}}{{{match138|}}}{{{match139|}}}{{{match140|}}}{{{match141|}}}{{{match142|}}}{{{match143|}}}{{{match144|}}}{{{match145|}}}{{{match146|}}}{{{match147|}}}{{{match148|}}}{{{match149|}}}{{{match150|}}}{{{match151|}}}{{{match152|}}}{{{match153|}}}{{{match154|}}}{{{match155|}}}{{{match156|}}}{{{match157|}}}{{{match158|}}}{{{match159|}}}{{{match160|}}}{{{match161|}}}{{{match162|}}}{{{match163|}}}{{{match164|}}}{{{match165|}}}{{{match166|}}}{{{match167|}}}{{{match168|}}}{{{match169|}}}{{{match170|}}}{{{match171|}}}{{{match172|}}}{{{match173|}}}{{{match174|}}}{{{match175|}}}{{{match176|}}}{{{match177|}}}{{{match178|}}}{{{match179|}}}{{{match180|}}}{{{match181|}}}{{{match182|}}}{{{match183|}}}{{{match184|}}}{{{match185|}}}{{{match186|}}}{{{match187|}}}{{{match188|}}}{{{match189|}}}{{{match190|}}}{{{match191|}}}{{{match192|}}}{{{match193|}}}{{{match194|}}}{{{match195|}}}{{{match196|}}}{{{match197|}}}{{{match198|}}}{{{match199|}}}{{{match200|}}}{{#vardefine:team1wins|0}}{{#vardefine:team2wins|0}}{{#vardefine:finished|false}}
+
--> {{#if:{{{team1tf|}}}|{{team2/tf|{{{team1tf}}}}}}} <!--
</table></includeonly><noinclude>{{documentation}}[[Category:Tournament Page Formatting Templates]][[Category:Source Liquipedia]][[Category:Templates]]</noinclude>
+
--></td>
 +
<td width="8%" align="center" {{#switch:{{{default|}}}|1=style="font-weight:bold;"> W|2=> -|{{#ifeq:{{{winner|}}}|1|style="font-weight:bold;"}}{{#ifeq:{{{winner|}}}|draw|style="font-weight:bold;"}}> {{#if:{{{games1|}}}|{{{games1}}}|0}}}}<!--
 +
-->{{#if:{{{details|}}}|<div class="bracket-game-details" style="margin-left:{{#expr:({{{width|300}}}-580)/2}}px;">
 +
<div class="header">
 +
<div class="left">{{#if:{{{team1|}}}|{{team2/{{lc:{{{team1}}}}}}}}} <!--
 +
--> {{#if:{{{team1tf|}}}|{{team2/tf|{{{team1tf}}}}}}} </div>
 +
<div class="right">{{#if:{{{team2|}}}|{{team1/{{lc:{{{team2}}}}}}}}} <!--
 +
--> {{#if:{{{team2tf|}}}|{{team1/tf|{{{team2tf}}}}}}} </div>
 +
</div>
 +
{{{details}}}<!--
 +
--> </div>}}<!--
 +
--></td>
 +
<td width="8%" align="center" {{#switch:{{{default|}}}|2=style="font-weight:bold;"> W|1=> -|{{#ifeq:{{{winner|}}}|2|style="font-weight:bold;"}}{{#ifeq:{{{winner|}}}|draw|style="font-weight:bold;"}}> {{#if:{{{games2|}}}|{{{games2}}}|0}}}}</td>
 +
<td class="matchlistslot" width="42%" {{#ifeq:{{{winner|}}}|2|style="font-weight:bold; background-color:#cfc"}}{{#ifeq:{{{winner|}}}|draw|style="font-weight:bold; background-color:#FFFFBB"}}><!--
 +
-->{{#if:{{{team2|}}}|{{team1/{{lc:{{{team2}}}}}}}}} <!--
 +
--> {{#if:{{{team2tf|}}}|{{team1/tf|{{{team2tf}}}}}}}</td>
 +
</tr><!--
 +
 
 +
Variables transformations
 +
-->{{#vardefine:team1|{{#if:{{{team1tf|}}}|{{{team1tf|}}}|{{#ifeq:{{{team1|}}}||TBD|{{#ifeq:{{{team1|}}}|&nbsp;|TBD|{{#ifexist:Template:Team/{{{team1|}}}|{{#explode:{{#explode:{{Team/{{{team1|}}}}}|link=|1}}|]]|0}}|{{{team1|}}}}} }}}}}}}}<!--
 +
-->{{#vardefine:team2|{{#if:{{{team2tf|}}}|{{{team2tf|}}}|{{#ifeq:{{{team2|}}}||TBD|{{#ifeq:{{{team2|}}}|&nbsp;|TBD|{{#ifexist:Template:Team/{{{team2|}}}|{{#explode:{{#explode:{{Team/{{{team2|}}}}}|link=|1}}|]]|0}}|{{{team2|}}}}} }}}}}}}}<!--
 +
 
 +
SMW storage
 +
-->{{#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
 +
|has team left={{#var:team1|TBD}}
 +
|has team right={{#var:team2|TBD}}
 +
|Has sub={{#var:sub1}}
 +
|Has sub={{#var:sub2}}
 +
|Has sub={{#var:sub3}}
 +
|Has sub={{#var:sub4}}
 +
|Has sub={{#var:sub5}}
 +
|Has replaced={{#var:replaced1|}}
 +
|Has replaced={{#var:replaced2|}}
 +
|Has replaced={{#var:replaced3|}}
 +
|Has replaced={{#var:replaced4|}}
 +
|Has replaced={{#var:replaced5|}}
 +
|Has map date={{#var:Match_date}}{{#var:timezone}}
 +
|Has tournament={{FULLPAGENAME}}
 +
|Has tournament tier={{#var:tournament_tier|}}
 +
|Has match stream={{{stream|{{#var:stream|}}}}}
 +
|Has tournament name={{#var:tournament_ticker_name|{{#var:tournament_name|{{FULLPAGENAME}}}}}}
 +
|Is part of series={{#var:tournament_series|}}
 +
|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}}}}
 +
|Has team left score={{{games1|0}}}
 +
|Has team right score={{{games2|0}}}
 +
|Has default={{{default|}}}<!--
 +
|Has details={{{details|}}} -->
 +
|has exact time={{#if:{{#var:timezone|}}|true|false}}
 +
}}{{#vardefine:games1|0}}{{#vardefine:games2|0}}{{#vardefine:finished|false}}</includeonly><noinclude>{{documentation}}[[Category:Source Liquipedia]]</noinclude>

Latest revision as of 16:48, 5 March 2017

(view - edit) Documentation

This template is used by: