Difference between revisions of "Template:BracketMatchSummary"
From QWiki
m |
m (Added category:Templates) |
||
(29 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
Date | Date | ||
− | -->{{#if:{{{date|}}}|<div class="bracket-popup-body-time">{{#ifeq:{{{finished|}}}|true|{{{date}}}|<span class=" | + | -->{{#if:{{{date|}}}|<div class="bracket-popup-body-time">{{#ifeq:{{{finished|}}}|true|{{{date}}}|{{#if:{{{stream|}}}|<span class="hasStream">[http://twitch.tv/{{{stream|}}} {{{stream|}}}] {{#if:{{{stream2|}}}|<span class="hasStream">[http://twitch.tv/{{{stream2|}}} {{{stream2|}}}]</span><br />|}}</span><br />|}}<span class="datetime">{{{date}}}</span><br /><span class="countdown"></span>}}</div>}}<!-- |
− | -->{{#vardefine:timezone|{{#explode:{{#explode:{{{date|}}}|data-tz="|1 | + | -->{{#vardefine:timezone|{{#explode:{{#explode:{{{date|}}}|data-tz="|1}}|"|0}}}}<!-- |
− | |||
Maps | Maps | ||
Line 23: | Line 22: | ||
-->{{#if:{{{shot2|}}}|<div class="bracket-popup-body-match" style="background:white;padding:3px;float:left;">[[File:{{{shot2|}}}|120px]]</div>| }}<!-- | -->{{#if:{{{shot2|}}}|<div class="bracket-popup-body-match" style="background:white;padding:3px;float:left;">[[File:{{{shot2|}}}|120px]]</div>| }}<!-- | ||
-->{{#if:{{{shot3|}}}|<div class="bracket-popup-body-match" style="background:white;padding:3px;float:left;">[[File:{{{shot3|}}}|120px]]</div>| }}<!-- | -->{{#if:{{{shot3|}}}|<div class="bracket-popup-body-match" style="background:white;padding:3px;float:left;">[[File:{{{shot3|}}}|120px]]</div>| }}<!-- | ||
− | -->{{#if:{{{shot4|}}}|<div class="bracket-popup-body-match" style="background:white;padding:3px;float:left;">[[File:{{{shot4|}}}| | + | -->{{#if:{{{shot4|}}}|<div class="bracket-popup-body-match" style="background:white;padding:3px;float:left;">[[File:{{{shot4|}}}|120px]]</div>| }}<!-- |
− | -->{{#if:{{{shot5|}}}|<div class="bracket-popup-body-match" style="background:white;padding:3px;float:left;">[[File:{{{shot5|}}}| | + | -->{{#if:{{{shot5|}}}|<div class="bracket-popup-body-match" style="background:white;padding:3px;float:left;">[[File:{{{shot5|}}}|120px]]</div>| }}<!-- |
− | -->{{#if:{{{shot6|}}}|<div class="bracket-popup-body-match" style="background:white;padding:3px;float:left;">[[File:{{{shot6|}}}| | + | -->{{#if:{{{shot6|}}}|<div class="bracket-popup-body-match" style="background:white;padding:3px;float:left;">[[File:{{{shot6|}}}|120px]]</div>| }}<!-- |
Comment | Comment | ||
Line 37: | Line 36: | ||
-->{{#if:{{{preview|}}}|[[File:Preview Icon.png|link={{{preview}}}|alt=preview|15px|Preview]]}} <!-- | -->{{#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:{{{lrthread|}}}|[[File:LiveReport.png|link={{{lrthread}}}|alt=lrthread|15px|Live Report Thread]]}} <!-- | ||
− | -->{{#if:{{{vod|}}}|[[File:vod.png|link={{{vod}}}| | + | -->{{#if:{{{vod|}}}|[[File:vod.png|link={{{vod}}}|20px|Watch VOD]] [{{{vod}}} Watch VOD {{#if:{{{stream|}}}|({{{stream|}}})}}]}} <!-- |
+ | -->{{#if:{{{vod2|}}}|[[File:vod.png|link={{{vod2}}}|20px|Watch VOD]] [{{{vod2}}} Watch VOD {{#if:{{{stream2|}}}|({{{stream2|}}})}}]}} <!-- | ||
-->{{#if:{{{vodgame1|}}}|{{vodlink|gamenum=1|vod={{{vodgame1|}}}|source=url}}}} <!-- | -->{{#if:{{{vodgame1|}}}|{{vodlink|gamenum=1|vod={{{vodgame1|}}}|source=url}}}} <!-- | ||
-->{{#if:{{{vodgame2|}}}|{{vodlink|gamenum=2|vod={{{vodgame2|}}}|source=url}}}} <!-- | -->{{#if:{{{vodgame2|}}}|{{vodlink|gamenum=2|vod={{{vodgame2|}}}|source=url}}}} <!-- | ||
Line 111: | Line 111: | ||
-->{{#vardefine:vodgame9|{{{vodgame9|}}}}}<!-- | -->{{#vardefine:vodgame9|{{{vodgame9|}}}}}<!-- | ||
-->{{#vardefine:finished|{{{finished|}}}}}<!-- | -->{{#vardefine:finished|{{{finished|}}}}}<!-- | ||
− | --></includeonly><noinclude>{{documentation}}</noinclude> | + | --></includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude> |
Latest revision as of 10:17, 23 November 2020
Documentation (view - edit)
This template is used by bracket templates as it needs wrapping code to actually work. It creates the overlay with information about maps, VODs, etc. that appears on click.
Example
The code:
{{8SEBracket |R1=Quarterfinals (Bo5) |R2=Semifinals (Bo7) |R3=Finals (Bo7) <!-- QUARTERFINALS --> |R1D1=DOOMer |R1D1flag=se |R1D1score=2 |R1D1win= |R1D2=Avenger |R1D2flag=pl |R1D2score=3 |R1D2win=1 |R1G1details={{BracketMatchSummary |date=February 21, 2021 18:10 {{Abbr/CEST}} |stream=suddendeathTV |stream2=gLAd |vod=https://www.twitch.tv/videos/746776070 |vod2=https://www.twitch.tv/videos/746776070 |map1=dm3 |map1win=1 |map1p1frags=15 |map1p2frags=13 |map1ot= |map2=dm2 |map2win=2 |map2p1frags=11 |map2p2frags=14 |map2ot=1 |map3=dm6 |map3win=1 |map3p1frags=5 |map3p2frags=4 |map3ot= |map4=dm1 |map4win=2 |map4p1frags=16 |map4p2frags=17 |map4ot= |map5=dm4 |map5win=1 |map5p1frags=23 |map5p2frags=15 |map5ot= }} }}
gives us:
Quarterfinals (Bo5)

2

Avenger 


3
R1D3
R1D4
R1D5
R1D6
R1D7
R1D8
Semifinals (Bo7)
R2W1
R2W2
R2W3
R2W4
Finals (Bo7)
R3W1
R3W2
3rd Place Match
R3D1
R3D2
Use
- |mapX=
- Set the name of the map, X is 1-9.
- |mapXwin=
- Set this to "1", "2", "skip" or "draw" to either set a winner or show the map wasn't played or had no winner.
- |mapXp1frags=
- Set the number of frags for player 1 on on map X.
- |mapXp2frags=
- Set the number of frags for player 2 on on map X.
- |mapXot=
- (Optional) Set number of overtimes on map X.
- |mapXp1lineup=
- (Optional) Set lineup for player 1 as comma separated list on map X.
- |mapXp2lineup=
- (Optional) Set lineup for player 2 as comma separated list on map X.
- |shotX=
- (Optional) Add a screenshot for map X. Example:
|shot1=20200920 no vs au e1m2.jpg
will add a 120px thumbnail in the bottom of the overlay. Multiple shots will simply show up after one another. - |vodgameX=
- (Optional) Put a link to the VOD of mapX here. For less clutter, use one vod for the entire game:
- |vod=
- (Optional) Put a link to the VOD of the game. If
|stream=
is present, its name will show as vod link. - |vod2=
- (Optional) Put a link to a second VOD of the game. If
|stream2=
is present, its name will show as vod link. - |stream=
- (Optional) Add a link to the stream. Use only stream name, not full url.
- |stream2=
- (Optional) Add a link to a second stream. Use only stream name, not full url.
- |comment=
- (Optional) Option to leave a short note about noteworthy events (e.g. a draw, reason for a walkover).
- |date=
- (Optional) Set the date of the match, or date with time (format: February 21, 2021 18:10 CEST). If the date is in the future, a countdown will show.
- |finished=
- (Optional) Set this to "true" to hide the countdown.
Copy/Paste
Minimal with 3 maps: {{BracketMatchSummary |map1= |map1win= |map1p1frags= |map1p2frags= |map1ot= |map2= |map2win= |map2p1frags= |map2p2frags= |map2ot= |map3= |map3win= |map3p1frags= |map3p2frags= |map3ot= }} Minimal with 5 maps: {{BracketMatchSummary |map1= |map1win= |map1p1frags= |map1p2frags= |map1ot= |map2= |map2win= |map2p1frags= |map2p2frags= |map2ot= |map3= |map3win= |map3p1frags= |map3p2frags= |map3ot= |map4= |map4win= |map4p1frags= |map4p2frags= |map4ot= |map5= |map5win= |map5p1frags= |map5p2frags= |map5ot= }} |
Full with 7 maps: {{BracketMatchSummary |date= |vod= |stream= |comment= |map1= |map1win= |map1p1frags= |map1p2frags= |map1ot= |map1p1lineup= |map1p2lineup= |map2= |map2win= |map2p1frags= |map2p2frags= |map2ot= |map2p1lineup= |map2p2lineup= |map3= |map3win= |map3p1frags= |map3p2frags= |map3ot= |map3p1lineup= |map3p2lineup= |map4= |map4win= |map4p1frags= |map4p2frags= |map4ot= |map4p1lineup= |map4p2lineup= |map5= |map5win= |map5p1frags= |map5p2frags= |map5ot= |map5p1lineup= |map5p2lineup= |map6= |map6win= |map6p1frags= |map6p2frags= |map6ot= |map6p1lineup= |map6p2lineup= |map7= |map7win= |map7p1frags= |map7p2frags= |map7ot= |map7p1lineup= |map7p2lineup= }} |