Difference between revisions of "Template:BracketMatchSummary"
From QWiki
m |
m (Added 'mapname' on hovering each screenshot (except shotwide, what to say)) |
||
(91 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}}|"|0}}}}<!-- | -->{{#vardefine:timezone|{{#explode:{{#explode:{{{date|}}}|data-tz="|1}}|"|0}}}}<!-- | ||
− | |||
Maps | Maps | ||
− | -->{{#if:{{{map1|}}} {{{map2|}}} {{{map3|}}} {{{map4|}}} {{{map5|}}} {{{map6|}}} {{{map7|}}} {{{map8|}}} {{{map9|}}}|<!-- | + | -->{{#if:{{{map1|}}} {{{map2|}}} {{{map3|}}} {{{map4|}}} {{{map5|}}} {{{map6|}}} {{{map7|}}} {{{map8|}}} {{{map9|}}} {{{map10|}}} {{{map11|}}}|<!-- |
-->{{#if:{{{date1|}}}|{{BracketMatchSummaryDate|{{{date1}}}}}}}{{#if:{{{map1|}}}|{{MapWinner|{{{map1}}}|{{{map1win|}}}|{{{map1p1frags|}}}|{{{map1p2frags|}}}|{{{map1ot|}}}|{{{map1p1lineup|}}}|{{{map1p2lineup|}}}}}}}<!-- | -->{{#if:{{{date1|}}}|{{BracketMatchSummaryDate|{{{date1}}}}}}}{{#if:{{{map1|}}}|{{MapWinner|{{{map1}}}|{{{map1win|}}}|{{{map1p1frags|}}}|{{{map1p2frags|}}}|{{{map1ot|}}}|{{{map1p1lineup|}}}|{{{map1p2lineup|}}}}}}}<!-- | ||
-->{{#if:{{{date2|}}}|{{BracketMatchSummaryDate|{{{date2}}}}}}}{{#if:{{{map2|}}}|{{MapWinner|{{{map2}}}|{{{map2win|}}}|{{{map2p1frags|}}}|{{{map2p2frags|}}}|{{{map2ot|}}}|{{{map2p1lineup|}}}|{{{map2p2lineup|}}}}}}}<!-- | -->{{#if:{{{date2|}}}|{{BracketMatchSummaryDate|{{{date2}}}}}}}{{#if:{{{map2|}}}|{{MapWinner|{{{map2}}}|{{{map2win|}}}|{{{map2p1frags|}}}|{{{map2p2frags|}}}|{{{map2ot|}}}|{{{map2p1lineup|}}}|{{{map2p2lineup|}}}}}}}<!-- | ||
Line 17: | Line 16: | ||
-->{{#if:{{{date8|}}}|{{BracketMatchSummaryDate|{{{date8}}}}}}}{{#if:{{{map8|}}}|{{MapWinner|{{{map8}}}|{{{map8win|}}}|{{{map8p1frags|}}}|{{{map8p2frags|}}}|{{{map8ot|}}}|{{{map8p1lineup|}}}|{{{map8p2lineup|}}}}}}}<!-- | -->{{#if:{{{date8|}}}|{{BracketMatchSummaryDate|{{{date8}}}}}}}{{#if:{{{map8|}}}|{{MapWinner|{{{map8}}}|{{{map8win|}}}|{{{map8p1frags|}}}|{{{map8p2frags|}}}|{{{map8ot|}}}|{{{map8p1lineup|}}}|{{{map8p2lineup|}}}}}}}<!-- | ||
-->{{#if:{{{date9|}}}|{{BracketMatchSummaryDate|{{{date9}}}}}}}{{#if:{{{map9|}}}|{{MapWinner|{{{map9}}}|{{{map9win|}}}|{{{map9p1frags|}}}|{{{map9p2frags|}}}|{{{map9ot|}}}|{{{map9p1lineup|}}}|{{{map9p2lineup|}}}}}}}<!-- | -->{{#if:{{{date9|}}}|{{BracketMatchSummaryDate|{{{date9}}}}}}}{{#if:{{{map9|}}}|{{MapWinner|{{{map9}}}|{{{map9win|}}}|{{{map9p1frags|}}}|{{{map9p2frags|}}}|{{{map9ot|}}}|{{{map9p1lineup|}}}|{{{map9p2lineup|}}}}}}}<!-- | ||
− | -->}}<!-- | + | -->{{#if:{{{date10|}}}|{{BracketMatchSummaryDate|{{{date10}}}}}}}{{#if:{{{map10|}}}|{{MapWinner|{{{map10}}}|{{{map10win|}}}|{{{map10p1frags|}}}|{{{map10p2frags|}}}|{{{map10ot|}}}|{{{map10p1lineup|}}}|{{{map10p2lineup|}}}}}}}<!-- |
+ | -->{{#if:{{{date11|}}}|{{BracketMatchSummaryDate|{{{date11}}}}}}}{{#if:{{{map11|}}}|{{MapWinner|{{{map11}}}|{{{map11win|}}}|{{{map11p1frags|}}}|{{{map11p2frags|}}}|{{{map11ot|}}}|{{{map11p1lineup|}}}|{{{map11p2lineup|}}}}}}}<!-- | ||
+ | --></div>}}<!-- | ||
− | + | Screenshots | |
− | -->{{#if:{{{shot1|}}}|<div class="bracket-popup-body-match" style=" | + | -->{{#if:{{{shot1|}}} {{{shotwide|}}}|<!-- |
− | -->{{#if:{{{shot2|}}}|<div class="bracket-popup-body-match" style=" | + | --><div class="bracket-popup-footer plainlinks" ><!-- |
− | -->{{#if:{{{shot3|}}}|<div class="bracket-popup-body-match" style=" | + | -->{{#if:{{{shot1|}}}|<div class="bracket-popup-body-match" style="padding:5px 0 5px 5px;float:left;">[[File:{{{shot1|}}}|120px|{{{map1|}}}]]</div>| }}<!-- |
− | -->{{#if:{{{shot4|}}}|<div class="bracket-popup-body-match" style=" | + | -->{{#if:{{{shot2|}}}|<div class="bracket-popup-body-match" style="padding:5px 0px 5px 9px;float:left;">[[File:{{{shot2|}}}|120px|{{{map2|}}}]]</div>| }}<!-- |
− | -->{{#if:{{{shot5|}}}|<div class="bracket-popup-body-match" style=" | + | -->{{#if:{{{shot3|}}}|<div class="bracket-popup-body-match" style="padding:5px 0px 5px 9px;float:left;">[[File:{{{shot3|}}}|120px|{{{map3|}}}]]</div>| }}<!-- |
− | -->{{#if:{{{shot6|}}}|<div class="bracket-popup-body-match" style=" | + | -->{{#if:{{{shot4|}}}|<div class="bracket-popup-body-match" style="padding:5px 0px 5px 5px;float:left;">[[File:{{{shot4|}}}|120px|{{{map4|}}}]]</div>| }}<!-- |
+ | -->{{#if:{{{shot5|}}}|<div class="bracket-popup-body-match" style="padding:5px 0px 5px 9px;float:left;">[[File:{{{shot5|}}}|120px|{{{map5|}}}]]</div>| }}<!-- | ||
+ | -->{{#if:{{{shot6|}}}|<div class="bracket-popup-body-match" style="padding:5px 0px 5px 9px;float:left;">[[File:{{{shot6|}}}|120px|{{{map1|}}}]]</div>| }}<!-- | ||
+ | -->{{#if:{{{shotwide|}}}|<div class="bracket-popup-body-match" style="padding:5px;float:left;">[[File:{{{shotwide|}}}|378px]]</div>| }}</div>}}<!-- | ||
Comment | Comment | ||
− | -->{{#if:{{{comment|}}}|<div class="bracket-popup- | + | -->{{#if:{{{comment|}}}|<div class="bracket-popup-footer plainlinks" style="clear:both;padding:10px;">{{{comment|}}}</div>| }}<!-- |
− | -->{{#if:{{{date|}}}{{{map1|}}}{{{veto1|}}}{{{comment|}}}| | + | -->{{#if:{{{date|}}}{{{map1|}}}{{{veto1|}}}{{{comment|}}}|}}<!-- |
Icons | Icons | ||
− | -->{{#if:{{{preview | + | -->{{#if:{{{preview|}}} {{{vod|}}} {{{vodgame1|}}} {{{vodgame2|}}} {{{vodgame3|}}} {{{vodgame4|}}} {{{vodgame5|}}} {{{vodgame6|}}} {{{vodgame7|}}} {{{vodgame8|}}} {{{vodgame9|}}} {{{interview|}}} {{{interview2|}}}|<!-- |
+ | --><div class="bracket-popup-footer plainlinks" style="clear:both;"><!-- | ||
+ | -->{{#if:{{{preview|}}}|[[File:Preview Icon.png|link={{{preview}}}|alt=preview|15px|Preview]]}} <!-- | ||
+ | -->{{#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|}}})}}]}}</div>}} <!-- | ||
+ | |||
+ | -->{{#if:{{{demo1|}}}|<!-- | ||
--><div class="bracket-popup-footer plainlinks"><!-- | --><div class="bracket-popup-footer plainlinks"><!-- | ||
− | -->{{#if:{{{ | + | -->{{#if:{{{demo1|}}}|Demo: {{demolink|gamenum=1|demo={{{demo1|}}}|source=url}}}} <!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{demo2|}}}|{{demolink|gamenum=2|demo={{{demo2|}}}|source=url}}}} <!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{demo3|}}}|{{demolink|gamenum=3|demo={{{demo3|}}}|source=url}}}} <!-- |
+ | -->{{#if:{{{demo4|}}}|{{demolink|gamenum=4|demo={{{demo4|}}}|source=url}}}} <!-- | ||
+ | -->{{#if:{{{demo5|}}}|{{demolink|gamenum=5|demo={{{demo5|}}}|source=url}}}} <!-- | ||
+ | -->{{#if:{{{demo6|}}}|{{demolink|gamenum=6|demo={{{demo6|}}}|source=url}}}} <!-- | ||
+ | -->{{#if:{{{demo7|}}}|{{demolink|gamenum=7|demo={{{demo7|}}}|source=url}}}} <!-- | ||
-->{{#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 64: | Line 78: | ||
-->{{#vardefine:map8|{{{map8|}}}}}<!-- | -->{{#vardefine:map8|{{{map8|}}}}}<!-- | ||
-->{{#vardefine:map9|{{{map9|}}}}}<!-- | -->{{#vardefine:map9|{{{map9|}}}}}<!-- | ||
+ | -->{{#vardefine:map10|{{{map10|}}}}}<!-- | ||
+ | -->{{#vardefine:map11|{{{map11|}}}}}<!-- | ||
-->{{#vardefine:map1_date|{{#replace:{{#explode:{{{date1|}}}|<|0}}|- |}}}}<!-- | -->{{#vardefine:map1_date|{{#replace:{{#explode:{{{date1|}}}|<|0}}|- |}}}}<!-- | ||
-->{{#vardefine:map2_date|{{#replace:{{#explode:{{{date2|}}}|<|0}}|- |}}}}<!-- | -->{{#vardefine:map2_date|{{#replace:{{#explode:{{{date2|}}}|<|0}}|- |}}}}<!-- | ||
Line 73: | Line 89: | ||
-->{{#vardefine:map8_date|{{#replace:{{#explode:{{{date8|}}}|<|0}}|- |}}}}<!-- | -->{{#vardefine:map8_date|{{#replace:{{#explode:{{{date8|}}}|<|0}}|- |}}}}<!-- | ||
-->{{#vardefine:map9_date|{{#replace:{{#explode:{{{date9|}}}|<|0}}|- |}}}}<!-- | -->{{#vardefine:map9_date|{{#replace:{{#explode:{{{date9|}}}|<|0}}|- |}}}}<!-- | ||
+ | -->{{#vardefine:map10_date|{{#replace:{{#explode:{{{date10|}}}|<|0}}|- |}}}}<!-- | ||
+ | -->{{#vardefine:map11_date|{{#replace:{{#explode:{{{date11|}}}|<|0}}|- |}}}}<!-- | ||
-->{{#vardefine:map1win|{{{map1win|}}}}}<!-- | -->{{#vardefine:map1win|{{{map1win|}}}}}<!-- | ||
-->{{#vardefine:map2win|{{{map2win|}}}}}<!-- | -->{{#vardefine:map2win|{{{map2win|}}}}}<!-- | ||
Line 82: | Line 100: | ||
-->{{#vardefine:map8win|{{{map8win|}}}}}<!-- | -->{{#vardefine:map8win|{{{map8win|}}}}}<!-- | ||
-->{{#vardefine:map9win|{{{map9win|}}}}}<!-- | -->{{#vardefine:map9win|{{{map9win|}}}}}<!-- | ||
+ | -->{{#vardefine:map10win|{{{map10win|}}}}}<!-- | ||
+ | -->{{#vardefine:map11win|{{{map11win|}}}}}<!-- | ||
-->{{#vardefine:m1p1race|{{{map1p1race|}}}}}<!-- | -->{{#vardefine:m1p1race|{{{map1p1race|}}}}}<!-- | ||
-->{{#vardefine:m2p1race|{{{map2p1race|}}}}}<!-- | -->{{#vardefine:m2p1race|{{{map2p1race|}}}}}<!-- | ||
Line 91: | Line 111: | ||
-->{{#vardefine:m8p1race|{{{map8p1race|}}}}}<!-- | -->{{#vardefine:m8p1race|{{{map8p1race|}}}}}<!-- | ||
-->{{#vardefine:m9p1race|{{{map9p1race|}}}}}<!-- | -->{{#vardefine:m9p1race|{{{map9p1race|}}}}}<!-- | ||
+ | -->{{#vardefine:m9p1race|{{{map10p1race|}}}}}<!-- | ||
+ | -->{{#vardefine:m9p1race|{{{map11p1race|}}}}}<!-- | ||
-->{{#vardefine:m1p2race|{{{map1p2race|}}}}}<!-- | -->{{#vardefine:m1p2race|{{{map1p2race|}}}}}<!-- | ||
-->{{#vardefine:m2p2race|{{{map2p2race|}}}}}<!-- | -->{{#vardefine:m2p2race|{{{map2p2race|}}}}}<!-- | ||
Line 100: | Line 122: | ||
-->{{#vardefine:m8p2race|{{{map8p2race|}}}}}<!-- | -->{{#vardefine:m8p2race|{{{map8p2race|}}}}}<!-- | ||
-->{{#vardefine:m9p2race|{{{map9p2race|}}}}}<!-- | -->{{#vardefine:m9p2race|{{{map9p2race|}}}}}<!-- | ||
+ | -->{{#vardefine:m9p2race|{{{map10p2race|}}}}}<!-- | ||
+ | -->{{#vardefine:m9p2race|{{{map11p2race|}}}}}<!-- | ||
-->{{#vardefine:vod|{{{vod|}}}}}<!-- | -->{{#vardefine:vod|{{{vod|}}}}}<!-- | ||
-->{{#vardefine:vodgame1|{{{vodgame1|}}}}}<!-- | -->{{#vardefine:vodgame1|{{{vodgame1|}}}}}<!-- | ||
Line 111: | Line 135: | ||
-->{{#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:05, 8 November 2024
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, demos, etc. that appears on click.
Example
The code:
{{4SEBracket |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 |demo1=http://demo.qhlan.org/qhlan12/1on1/duel_(1)lethalwiz_vs_lethalwiz%5bpovdmm4%5d040109-1231.mvd |demo2=http://demo.qhlan.org/qhlan12/1on1/duel_(1)lethalwiz_vs_lethalwiz%5bpovdmm4%5d040109-1231.mvd |demo3=http://demo.qhlan.org/qhlan12/1on1/duel_(1)lethalwiz_vs_lethalwiz%5bpovdmm4%5d040109-1231.mvd |demo4=http://demo.qhlan.org/qhlan12/1on1/duel_(1)lethalwiz_vs_lethalwiz%5bpovdmm4%5d040109-1231.mvd |demo5=http://demo.qhlan.org/qhlan12/1on1/duel_(1)lethalwiz_vs_lethalwiz%5bpovdmm4%5d040109-1231.mvd |map1=dm3 |map1win=1 |map1p1frags=15 |map1p2frags=13 |shot1=20200920-no vs au-dm3.jpg |map2=dm2 |map2win=2 |map2p1frags=11 |map2p2frags=14 |shot2=slvscan-dm2.png |map2ot=1 |map3=aerowalk |map3win=1 |map3p1frags=5 |map3p2frags=4 |shot3=slvscan-aerowalk.png |map4=dm1 |map4win=2 |map4p1frags=16 |map4p2frags=17 |map5=dm4 |map5win=1 |map5p1frags=WIN |map5p2frags=WO |comment={{player|Avenger|flag=pl}} forfeited the decider map. }} }}
gives us:
Quarterfinals (Bo5)
DOOMer
2
DOOMer
Avenger
15 | |
13 | |
dm3
11 | |
14 | |
dm2
1 overtime
5 | |
4 | |
aerowalk
16 | |
17 | |
dm1
WIN | |
WO | |
dm4
Avenger
3
R1D3
R1D4
Semifinals (Bo7)
R2W1
R2W2
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. - |demoX=
- (Optional) Put a link to the demo of mapX here. Up to 7 demos supported.
- |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= }} |