Difference between revisions of "Template:BracketMatchSummary"

From comp.tf
Jump to navigation Jump to search
m (Second attempt)
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
 +
Date
 +
-->{{#if:{{{date|}}}|<div style="border-bottom: 1px dotted #aaa; padding:2px; font-size:85%; line-height:12.5px; text-align:center;">{{#ifeq:{{{finished|}}}|true|{{{date}}}|<span class="streamLink">{{{stream|}}}</span><span class="datetime">{{{date}}}</span><br /><span class="countdown"></span>}}</div>}}<!--
  
Date
+
Date operations for storage in variables (and later SMW in BracketMatchTeams)
-->{{#if:{{{date|}}}|<div style="border-bottom:1px dotted #aaa;padding:2px;font-size:85%;line-height:12.5px;text-align:center;">{{#ifeq:{{{finished|}}}|true|{{{date}}}|<span class="streamLink">{{{stream|}}}</span><span class="datetime">{{{date}}}</span><br /><span class="countdown"></span>}}</div>}}<!--
 
 
-->{{#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:Raw_Match_date|{{#explode:{{{date|TBD}}}|<|0}}}}<!--
 +
-->{{#vardefine:finished|{{{finished|}}}}}<!--
 +
-->{{#vardefine:sub1|{{{sub1|}}}}}<!--
 +
-->{{#vardefine:sub2|{{{sub2|}}}}}<!--
 +
-->{{#vardefine:sub3|{{{sub3|}}}}}<!--
 +
-->{{#vardefine:sub4|{{{sub4|}}}}}<!--
 +
-->{{#vardefine:sub5|{{{sub5|}}}}}<!--
 +
-->{{#vardefine:replaced1|{{{replaced1|}}}}}<!--
 +
-->{{#vardefine:replaced2|{{{replaced2|}}}}}<!--
 +
-->{{#vardefine:replaced3|{{{replaced3|}}}}}<!--
 +
-->{{#vardefine:replaced4|{{{replaced4|}}}}}<!--
 +
-->{{#vardefine:replaced5|{{{replaced5|}}}}}<!--
 +
-->{{#vardefine:stream|{{{stream|}}}}}<!--
  
 
Maps
 
Maps
-->{{#if:{{{map1|}}} {{{map2|}}} {{{map3|}}} {{{map4|}}} {{{map5|}}} {{{map6|}}} {{{map7|}}} {{{map8|}}} {{{map9|}}}|<!--
+
--><div class="matches" style="padding:2px 1px">{{{match1|}}}{{{match2|}}}{{{match3|}}}{{{match4|}}}{{{match5|}}}{{{match6|}}}{{{match7|}}}{{{match8|}}}{{{match9|}}}{{{details|}}}</div><!--
--><div style="font-size:85%;line-height:12.5px;text-align:left;padding:2px 0px;">
 
{{#if:{{{date1|}}}|{{BracketMatchSummaryDate|{{{date1}}}}}}}{{#if:{{{map1|}}}|{{MapWinner|{{{map1}}}|{{{map1win|}}}}}}}<!--
 
-->{{#if:{{{date2|}}}|{{BracketMatchSummaryDate|{{{date2}}}}}}}{{#if:{{{map2|}}}|{{MapWinner|{{{map2}}}|{{{map2win|}}}}}}}<!--
 
-->{{#if:{{{date3|}}}|{{BracketMatchSummaryDate|{{{date3}}}}}}}{{#if:{{{map3|}}}|{{MapWinner|{{{map3}}}|{{{map3win|}}}}}}}<!--
 
-->{{#if:{{{date4|}}}|{{BracketMatchSummaryDate|{{{date4}}}}}}}{{#if:{{{map4|}}}|{{MapWinner|{{{map4}}}|{{{map4win|}}}}}}}<!--
 
-->{{#if:{{{date5|}}}|{{BracketMatchSummaryDate|{{{date5}}}}}}}{{#if:{{{map5|}}}|{{MapWinner|{{{map5}}}|{{{map5win|}}}}}}}<!--
 
-->{{#if:{{{date6|}}}|{{BracketMatchSummaryDate|{{{date6}}}}}}}{{#if:{{{map6|}}}|{{MapWinner|{{{map6}}}|{{{map6win|}}}}}}}<!--
 
-->{{#if:{{{date7|}}}|{{BracketMatchSummaryDate|{{{date7}}}}}}}{{#if:{{{map7|}}}|{{MapWinner|{{{map7}}}|{{{map7win|}}}}}}}<!--
 
-->{{#if:{{{date8|}}}|{{BracketMatchSummaryDate|{{{date8}}}}}}}{{#if:{{{map8|}}}|{{MapWinner|{{{map8}}}|{{{map8win|}}}}}}}<!--
 
-->{{#if:{{{date9|}}}|{{BracketMatchSummaryDate|{{{date9}}}}}}}{{#if:{{{map9|}}}|{{MapWinner|{{{map9}}}|{{{map9win|}}}}}}}<!--
 
--></div>}}<!--
 
  
Vetoes
+
Stands-ins
-->{{#if:{{{veto1|}}}{{{veto2|}}}|<div style="border-top:1px dotted #aaa;padding-top:2px;font-size:85%;font-weight:bold;line-height:12.5px;text-align:center;">Vetoes</div><div style="display:table-row;font-size:85%;line-height:16px;padding:0px 5px;">
+
-->{{#if:{{{sub1|}}}{{{replaced1|}}}|<div style="border-top: 1px solid #aaa; padding:2px; font-size:85%; line-height:12.50px; text-align:center;">'''Stands-ins'''<br />'''[[{{{sub1}}}]] &#10230; [[{{{replaced1}}}]]'''}}<!--
<div style="display:table-cell;text-align:center;width:100px;padding-bottom:2px;padding-right:2px;">{{{veto1|-}}}</div>
+
-->{{#if:{{{sub2|}}}{{{replaced2|}}}|<br />'''[[{{{sub2}}}]] &#10230; [[{{{replaced2}}}]]'''}}<!--
<div style="display:table-cell;text-align:center;width:100px;padding-bottom:2px;padding-left:2px;">{{{veto2|-}}}</div>
+
-->{{#if:{{{sub3|}}}{{{replaced3|}}}|<br />'''[[{{{sub3}}}]] &#10230; [[{{{replaced3}}}]]'''}}<!--
</div>}}<!--
+
-->{{#if:{{{sub4|}}}{{{replaced4|}}}|<br />'''[[{{{sub4}}}]] &#10230; [[{{{replaced4}}}]]'''}}<!--
 +
-->{{#if:{{{sub5|}}}{{{replaced5|}}}|<br />'''[[{{{sub5}}}]] &#10230; [[{{{replaced5}}}]]'''}}<!--
 +
-->{{#if:{{{sub1|}}}{{{replaced1|}}}{{{sub2|}}}{{{replaced2|}}}{{{sub3|}}}{{{replaced3|}}}{{{sub4|}}}{{{replaced4|}}}{{{sub5|}}}{{{replaced5|}}}|</div>}}<!--
  
 
Comment  
 
Comment  
-->{{#if:{{{comment|}}}|<div style="border-top:1px dotted #aaa;padding:2px;font-size:85%;line-height:12.5px;text-align:left;">{{{comment}}}</div>}}<!--
+
-->{{#if:{{{comment|}}}|<div style="border-top: 1px dotted #aaa; padding:2px; font-size:85%; line-height:12.50px; text-align:left;">{{{comment}}}</div>}}</includeonly>
 
 
Icons
 
-->{{#if:{{{preview|}}} {{{lrthread|}}} {{{vod|}}} {{{vodgame1|}}} {{{vodgame2|}}} {{{vodgame3|}}} {{{vodgame4|}}} {{{vodgame5|}}} {{{vodgame6|}}} {{{vodgame7|}}} {{{vodgame8|}}} {{{vodgame9|}}} {{{interview|}}} {{{interview2|}}} {{{review|}}} {{{recap|}}}|<!--
 
--><div class="bracket-icons"><!--
 
-->{{#if:{{{preview|}}}|[[File:Preview Icon.png|link={{{preview}}}|alt=preview|15px|Preview]]}} <!--
 
-->{{#if:{{{lrthread|}}}|[[File:LiveReport.png|link={{{lrthread}}}|alt=lrthread|15px|Live Report Thread]]}} <!--
 
-->{{#if:{{{vod|}}}|[[File:vod.png|link={{{vod}}}|15px|Watch VOD]]}} <!--
 
-->{{#if:{{{vodgame1|}}}|{{vodlink|gamenum=1|vod={{{vodgame1|}}}|source=url}}}} <!--
 
-->{{#if:{{{vodgame2|}}}|{{vodlink|gamenum=2|vod={{{vodgame2|}}}|source=url}}}} <!--
 
-->{{#if:{{{vodgame3|}}}|{{vodlink|gamenum=3|vod={{{vodgame3|}}}|source=url}}}} <!--
 
-->{{#if:{{{vodgame4|}}}|{{vodlink|gamenum=4|vod={{{vodgame4|}}}|source=url}}}} <!--
 
-->{{#if:{{{vodgame5|}}}|{{vodlink|gamenum=5|vod={{{vodgame5|}}}|source=url}}}} <!--
 
-->{{#if:{{{vodgame6|}}}|{{vodlink|gamenum=6|vod={{{vodgame6|}}}|source=url}}}} <!--
 
-->{{#if:{{{vodgame7|}}}|{{vodlink|gamenum=7|vod={{{vodgame7|}}}|source=url}}}} <!--
 
-->{{#if:{{{vodgame8|}}}|{{vodlink|gamenum=8|vod={{{vodgame8|}}}|source=url}}}} <!--
 
-->{{#if:{{{vodgame9|}}}|{{vodlink|gamenum=9|vod={{{vodgame9|}}}|source=url}}}} <!--
 
-->{{#if:{{{interview|}}}|[[File:Int_Icon.png|link={{{interview}}}|20px|Interview]]}} <!--
 
-->{{#if:{{{interview2|}}}|[[File:Int_Icon.png|link={{{interview2}}}|20px|Interview]]}} <!--
 
-->{{#if:{{{review|}}}|[[File:Writers_Icon.png|link={{{review}}}|15px|Recap]]}}<!--
 
-->{{#if:{{{recap|}}}|[[File:Writers_Icon.png|link={{{recap}}}|15px|Recap]]}}<!--
 
--></div>}}<!--
 
Big junk of variables, they are used in BracketMatchPlayers to create a subobject for every map
 
-->{{#vardefine:Match_date|{{#replace:{{#explode:{{{date|}}}|<|0}}|-}}}}<!--
 
-->{{#vardefine:Raw_Match_date|{{#explode:{{{date|TBD}}}|<|0}}}}<!--
 
-->{{#vardefine:map1|{{{map1|}}}}}<!--
 
-->{{#vardefine:map2|{{{map2|}}}}}<!--
 
-->{{#vardefine:map3|{{{map3|}}}}}<!--
 
-->{{#vardefine:map4|{{{map4|}}}}}<!--
 
-->{{#vardefine:map5|{{{map5|}}}}}<!--
 
-->{{#vardefine:map6|{{{map6|}}}}}<!--
 
-->{{#vardefine:map7|{{{map7|}}}}}<!--
 
-->{{#vardefine:map8|{{{map8|}}}}}<!--
 
-->{{#vardefine:map9|{{{map9|}}}}}<!--
 
-->{{#vardefine:map1_date|{{#replace:{{#explode:{{{date1|}}}|<|0}}|- |}}}}<!--
 
-->{{#vardefine:map2_date|{{#replace:{{#explode:{{{date2|}}}|<|0}}|- |}}}}<!--
 
-->{{#vardefine:map3_date|{{#replace:{{#explode:{{{date3|}}}|<|0}}|- |}}}}<!--
 
-->{{#vardefine:map4_date|{{#replace:{{#explode:{{{date4|}}}|<|0}}|- |}}}}<!--
 
-->{{#vardefine:map5_date|{{#replace:{{#explode:{{{date5|}}}|<|0}}|- |}}}}<!--
 
-->{{#vardefine:map6_date|{{#replace:{{#explode:{{{date6|}}}|<|0}}|- |}}}}<!--
 
-->{{#vardefine:map7_date|{{#replace:{{#explode:{{{date7|}}}|<|0}}|- |}}}}<!--
 
-->{{#vardefine:map8_date|{{#replace:{{#explode:{{{date8|}}}|<|0}}|- |}}}}<!--
 
-->{{#vardefine:map9_date|{{#replace:{{#explode:{{{date9|}}}|<|0}}|- |}}}}<!--
 
-->{{#vardefine:map1win|{{{map1win|}}}}}<!--
 
-->{{#vardefine:map2win|{{{map2win|}}}}}<!--
 
-->{{#vardefine:map3win|{{{map3win|}}}}}<!--
 
-->{{#vardefine:map4win|{{{map4win|}}}}}<!--
 
-->{{#vardefine:map5win|{{{map5win|}}}}}<!--
 
-->{{#vardefine:map6win|{{{map6win|}}}}}<!--
 
-->{{#vardefine:map7win|{{{map7win|}}}}}<!--
 
-->{{#vardefine:map8win|{{{map8win|}}}}}<!--
 
-->{{#vardefine:map9win|{{{map9win|}}}}}<!--
 
-->{{#vardefine:m1p1race|{{{map1p1race|}}}}}<!--
 
-->{{#vardefine:m2p1race|{{{map2p1race|}}}}}<!--
 
-->{{#vardefine:m3p1race|{{{map3p1race|}}}}}<!--
 
-->{{#vardefine:m4p1race|{{{map4p1race|}}}}}<!--
 
-->{{#vardefine:m5p1race|{{{map5p1race|}}}}}<!--
 
-->{{#vardefine:m6p1race|{{{map6p1race|}}}}}<!--
 
-->{{#vardefine:m7p1race|{{{map7p1race|}}}}}<!--
 
-->{{#vardefine:m8p1race|{{{map8p1race|}}}}}<!--
 
-->{{#vardefine:m9p1race|{{{map9p1race|}}}}}<!--
 
-->{{#vardefine:m1p2race|{{{map1p2race|}}}}}<!--
 
-->{{#vardefine:m2p2race|{{{map2p2race|}}}}}<!--
 
-->{{#vardefine:m3p2race|{{{map3p2race|}}}}}<!--
 
-->{{#vardefine:m4p2race|{{{map4p2race|}}}}}<!--
 
-->{{#vardefine:m5p2race|{{{map5p2race|}}}}}<!--
 
-->{{#vardefine:m6p2race|{{{map6p2race|}}}}}<!--
 
-->{{#vardefine:m7p2race|{{{map7p2race|}}}}}<!--
 
-->{{#vardefine:m8p2race|{{{map8p2race|}}}}}<!--
 
-->{{#vardefine:m9p2race|{{{map9p2race|}}}}}<!--
 
</includeonly>
 

Latest revision as of 20:25, 26 August 2017