Difference between revisions of "Template:MatchMaps"
From QWiki
m |
m (Error in last edit) |
||
(76 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
--><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><!-- | ||
− | -->}}<tr class="match-row"> | + | -->}}{{#if:{{{title|}}}|<tr><!-- |
− | <td class="matchlistslot" width="42%" align="right" {{#ifeq:{{{winner|}}}|1| | + | --><td colspan="4" style="font-weight:bold; background-color:#f2f2f2; font-size:85%; line-height:90%; height:13px;"><center>{{{title}}}</center></td></tr><!-- |
− | --> {{#if:{{{player1|}}}|{{{player1}}}}} <!-- | + | -->}}<!-- |
+ | --><tr class="match-row"> | ||
+ | <td class="matchlistslot" width="42%" align="right" style="font-size:100%;padding:7px 10px 8px 0; {{#ifeq:{{{walkover|}}}|1|background-color:#ddf4dd;font-weight:bold;"}}{{#ifeq:{{{winner|}}}|1|font-weight:bold; background-color:#ddf4dd;"}}{{#ifeq:{{{winner|}}}|draw|font-weight:bold;background-color:#FFFFBB;"}}{{#ifeq:{{{winner|}}}|void|background-color:#f2f2f2;"}}{{#ifeq:{{{winner|}}}|2|}}><!-- | ||
+ | --> {{#if:{{{player1|}}}|<span style="white-space: pre">{{{player1}}} </span><span style="white-space:nowrap;vertical-align: baseline;">{{flag/{{lc:{{{player1flag}}}}}}}}}</span><!-- | ||
--></td> | --></td> | ||
− | <td width="8%" align="center" {{#switch:{{{walkover | + | <td {{#switch:{{{winner}}}|void=colspan="2" width="16%"| #default=colspan="1" width="8%"}} align="center" {{#switch:{{{walkover}}}|1=style="font-weight:bold;background-color: rgb(221 244 221 / 50%);"> WO|2=> -|{{#ifeq:{{{winner|}}}|1|style="font-weight:bold;background-color: rgb(221 244 221 / 50%);"}}{{#ifeq:{{{winner|}}}|draw|style="font-weight:bold; background-color: rgb(255 255 187 / 50%);"}}{{#ifeq:{{{winner|}}}|void|style="background-color:#fff;"}}> {{#if:{{{games1|}}}|{{{games1}}}|{{#ifeq:{{{winner|}}}|void|voided|0}}}}}}<!-- |
-->{{#if:{{{details|}}}|<div class="bracket-popup-wrapper bracket-popup-team" style="margin-left:{{#expr:({{{width|300}}}-580)/2}}px;"><div class="bracket-popup"> | -->{{#if:{{{details|}}}|<div class="bracket-popup-wrapper bracket-popup-team" style="margin-left:{{#expr:({{{width|300}}}-580)/2}}px;"><div class="bracket-popup"> | ||
<div class="bracket-popup-header"> | <div class="bracket-popup-header"> | ||
− | <div class="bracket-popup-header-left">{{#if:{{{player1|}}}|flag | + | <div class="bracket-popup-header-left">{{#if:{{{player1|}}}|{{flag/{{lc:{{{player1flag}}}}}}} {{{player1}}}}} <!-- |
--> {{#if:{{{team1cstrike|}}}|{{team2Short/cstrike|{{{team1cstrike}}}}}}} <!-- | --> {{#if:{{{team1cstrike|}}}|{{team2Short/cstrike|{{{team1cstrike}}}}}}} <!-- | ||
--> {{#if:{{{team1css|}}}|{{team2Short/css|{{{team1css}}}}}}} <!-- | --> {{#if:{{{team1css|}}}|{{team2Short/css|{{{team1css}}}}}}} <!-- | ||
--> {{#if:{{{team1csgo|}}}|{{team2Short/csgo|{{{team1csgo}}}}}}}</div> | --> {{#if:{{{team1csgo|}}}|{{team2Short/csgo|{{{team1csgo}}}}}}}</div> | ||
− | <div class="bracket-popup-header-right">{{#if:{{{ | + | <div class="bracket-popup-header-right">{{#if:{{{player2|}}}|{{flag/{{lc:{{{player2flag}}}}}}} {{{player2}}}}} <!-- |
--> {{#if:{{{team2cstrike|}}}|{{teamShort/cstrike|{{{team2cstrike}}}}}}} <!-- | --> {{#if:{{{team2cstrike|}}}|{{teamShort/cstrike|{{{team2cstrike}}}}}}} <!-- | ||
--> {{#if:{{{team2css|}}}|{{teamShort/css|{{{team2css}}}}}}} <!-- | --> {{#if:{{{team2css|}}}|{{teamShort/css|{{{team2css}}}}}}} <!-- | ||
Line 24: | Line 27: | ||
--> </div></div>}}<!-- | --> </div></div>}}<!-- | ||
--></td> | --></td> | ||
− | <td width="8%" align="center" {{#switch:{{{walkover | + | {{#ifeq:{{{winner|}}}|void|| |
− | <td class="matchlistslot" width="42%" {{#ifeq:{{{winner|}}}|2| | + | <td {{#switch:{{{winner}}}|void=colspan="2" width="16%"| #default=colspan="1" width="8%"}} align="center" {{#switch:{{{walkover}}}|2=style="font-weight:bold;background-color: rgb(221 244 221 / 50%);"> WO|1=> -|{{#ifeq:{{{winner|}}}|2|style="font-weight:bold;background-color: rgb(221 244 221 / 50%);"}}{{#ifeq:{{{winner|}}}|draw|style="font-weight:bold;background-color: rgb(255 255 187 / 50%);"}}{{#ifeq:{{{winner|}}}|void|style="background-color:#fff;"}}> {{#if:{{{games2|}}}|{{{games2}}}|{{#ifeq:{{{winner|}}}|void|voided|0}}}}}} }}</td> |
− | -->{{#if:{{{player2|}}}|{{{player2}}}}} <!-- | + | <td class="matchlistslot" width="42%" style="font-size:100%;padding:7px 0 8px 10px; {{#ifeq:{{{walkover|}}}|2|background-color:#ddf4dd;font-weight:bold;"}}{{#ifeq:{{{winner|}}}|2|font-weight:bold; background-color:#ddf4dd;"}}{{#ifeq:{{{winner|}}}|draw|font-weight:bold;background-color:#FFFFBB;"}}{{#ifeq:{{{winner|}}}|void|background-color:#f2f2f2;"}}{{#ifeq:{{{winner|}}}|1|}}><!-- |
+ | -->{{#if:{{{player2|}}}|<span style="white-space:nowrap;vertical-align: baseline;">{{flag/{{lc:{{{player2flag}}}}}}} </span><span style="white-space: pre">{{{player2}}}}}</span><!-- | ||
+ | |||
--></td> | --></td> | ||
</tr><!-- | </tr><!-- |
Latest revision as of 22:30, 22 March 2021
Documentation (view - edit)
Related templates:
- {{MatchList}}
- {{MatchListNoheader}}
- {{MapWinner}}
- {{MatchAbbr}}
A big way this template differs from most others is that you will use another template, {{MatchList}}, surrounding the MatchMaps template(s).
Enclosing MatchList title | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Team winning | 2 Team winning
Team losing
December 29, 20:00 UTC
dm2 dot, Zepp, gor, gLAd bps, raket, ok98, shaka
e1m2 dot, Zepp, gor, gLAd bps, raket, ok98, tumult
dm3 dot, Zepp, gor, gLAd bps, raket, ok98, shaka |
1 | Team losing | ||||||||||||||||||
Team winning on walkover | WO Team winning on walkover
Team losing on walkover
December 29 |
- | Team losing on walkover | ||||||||||||||||||
Team draw | 1 Team draw
Team draw
December 29, 20:00 UTC |
1 | Team draw | ||||||||||||||||||
Team1 in voided match | voided | Team2 in voided match |
MatchMaps
- |title=
- (Optional) set to add a title in a separate row before the set of matches.
- |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. It will display above the match, as a gray header row.
- |player1=
- |player2=
- set the name of the player 1 & 2.
- |player1flag=
- |player2flag=
- set the flag for player 1 & 2 with the two letter ISO code.
- |player1link=
- |player2link=
- (Optional) set an alternate link for the player.
- |winner= 1 or 2
- set the winner of the match with "1" or "2". Scores will show.
- |walkover= 1 or 2
- set the winner of the match by walkover to "1" or "2". Scores don't show, but the winner will show WO and the loser will show -
- |winner= draw
- set if the game was a draw. Scores will show (and should be equivalent).
- |winner= void
- set if the game was voided. No scores will show.
- |mapX=
- set the name of the map.
- |mapXwin=
- set the winner of the map with "1" or "2".
- |comment=
- (Optional) to add a comment after the set of match results.
Copy/Paste
{{MatchList |width=100% |title=My matchlist title |hide=false |match1={{MatchMaps |player1= |player1flag= |player2= |player2flag= |winner= |walkover= |games1= |games2= |details={{BracketMatchSummary |date= |comment= |map1win= |map1= |map1p1frags= |map1p2frags= |map1p1lineup= |map1p2lineup= |map1ot= |map2win= |map2= |map2p1frags= |map2p2frags= |map2p1lineup= |map2p2lineup= |map2ot= |map3win= |map3= |map3p1frags= |map3p2frags= |map3p1lineup= |map3p2lineup= |map3ot= }} }} |match2={{MatchMaps |player1= |player1flag= |player2= |player2flag= |winner= |walkover= |games1= |games2= |details={{BracketMatchSummary |date= |comment= |map1win= |map1= |map1p1frags= |map1p2frags= |map1p1lineup= |map1p2lineup= |map1ot= |map2win= |map2= |map2p1frags= |map2p2frags= |map2p1lineup= |map2p2lineup= |map2ot= |map3win= |map3= |map3p1frags= |map3p2frags= |map3p1lineup= |map3p2lineup= |map3ot= }} }} |match3={{MatchMaps |player1= |player1flag= |player2= |player2flag= |winner= |walkover= |games1= |games2= |details={{BracketMatchSummary |date= |comment= |map1win= |map1= |map1p1frags= |map1p2frags= |map1p1lineup= |map1p2lineup= |map1ot= |map2win= |map2= |map2p1frags= |map2p2frags= |map2p1lineup= |map2p2lineup= |map2ot= |map3win= |map3= |map3p1frags= |map3p2frags= |map3p1lineup= |map3p2lineup= |map3ot= }} }} |match4={{MatchMaps |player1= |player1flag= |player2= |player2flag= |winner= |walkover= |games1= |games2= |details={{BracketMatchSummary |date= |comment= |map1win= |map1= |map1p1frags= |map1p2frags= |map1p1lineup= |map1p2lineup= |map1ot= |map2win= |map2= |map2p1frags= |map2p2frags= |map2p1lineup= |map2p2lineup= |map2ot= |map3win= |map3= |map3p1frags= |map3p2frags= |map3p1lineup= |map3p2lineup= |map3ot= }} }} <!-- Copy/paste blocks of matches to the number of matches you need, remember to change |matchX, and don't forget the ending '}}' following this comment, which ends the list. This comment can safely be removed. --> }}
Adapted from Liquipedia