Difference between revisions of "Template:MatchMaps/doc"
From QWiki
(Created page with "This template is used by other templates as it needs wrapping code to actually work. == Associated Templates == *{{tl|MatchList}} *{{tl|MapWinner}}") |
m (Updated doc) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | This template is used | + | <div style="float:right;padding:0 10px 10px 10px;margin: 0 0 10px 40px;border: 1px solid #aaa;"> |
+ | <small>'''Related templates:'''</small> | ||
+ | * {{Tl|MatchList}} | ||
+ | * {{Tl|MatchListNoheader}} | ||
+ | * {{Tl|MapWinner}} | ||
+ | * {{Tl|MatchAbbr}} | ||
+ | </div>This template is used wrapped inside {{Tl|MatchList}} to display rows of matches in a group, expanded or hidden. It supports an unlimited number of matches, with each match being up to best of nine. | ||
− | == | + | A big way this template differs from most others is that you will use another template, {{Tl|MatchList}}, surrounding the MatchMaps template(s). |
− | + | ||
− | + | {{MatchList | |
+ | |width=600px | ||
+ | |title=Enclosing MatchList title | ||
+ | |hide=false | ||
+ | |match1={{MatchMaps | ||
+ | |title= | ||
+ | |player1=Team winning|player1flag=tbd | ||
+ | |player2=Team losing|player2flag=tbd | ||
+ | |winner=1 | ||
+ | |games1=2 |games2=1 | ||
+ | |details={{BracketMatchSummary | ||
+ | |date=December 29, 20:00 {{Abbr/UTC}} | ||
+ | |comment=You may use <mark><nowiki>|comment=</nowiki></mark> for additional info.<br /> Like, "Player X dropped half way into map3." | ||
+ | |map1win=2 |map1=dm2 |map1p1frags=92 |map1p2frags=231 |map1p1lineup=dot, Zepp, gor, gLAd |map1p2lineup=bps, raket, ok98, shaka | ||
+ | |map2win=1 |map2=e1m2 |map2p1frags=230 |map2p2frags=221 |map2p1lineup=dot, Zepp, gor, gLAd |map2p2lineup=bps, raket, ok98, tumult | ||
+ | |map3win=1 |map3=dm3 |map3p1frags=235 |map3p2frags=126 |map3p1lineup=dot, Zepp, gor, gLAd |map3p2lineup=bps, raket, ok98, shaka | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | |match2={{MatchMaps | ||
+ | |player1=Team winning on walkover |player1flag=tbd | ||
+ | |player2=Team losing on walkover |player2flag=tbd | ||
+ | |winner= | ||
+ | |walkover=1 | ||
+ | |games1= |games2= | ||
+ | |details={{BracketMatchSummary | ||
+ | |date=December 29 | ||
+ | |comment=You may use <mark><nowiki>|comment=</nowiki></mark> to explain why the WO was given.<br /> Like, "Team X never showed up." | ||
+ | |map1win= |map1= |map1p1frags= |map1p2frags= |map1p1lineup= |map1p2lineup= |map1ot= | ||
+ | |map2win= |map2= |map2p1frags= |map2p2frags= |map2p1lineup= |map2p2lineup= |map2ot= | ||
+ | |map3win= |map3= |map3p1frags= |map3p2frags= |map3p1lineup= |map3p2lineup= |map3ot= | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | |match3={{MatchMaps | ||
+ | |player1=Team draw|player1flag=tbd | ||
+ | |player2=Team draw|player2flag=tbd | ||
+ | |winner=draw | ||
+ | |walkover= | ||
+ | |games1=1 |games2=1 | ||
+ | |details={{BracketMatchSummary | ||
+ | |date=December 29, 20:00 {{Abbr/UTC}} | ||
+ | |comment=You may use <mark><nowiki>|comment=</nowiki></mark> for additional info.<br /> Like, "Map3 was cancelled." | ||
+ | |map1win=|map1=|map1p1frags=|map1p2frags= | ||
+ | |map2win=|map2=|map2p1frags=|map2p2frags= | ||
+ | }} | ||
+ | }} | ||
+ | |match4={{MatchMaps | ||
+ | |player1=Team1 in voided match|player1flag=tbd | ||
+ | |player2=Team2 in voided match|player2flag=tbd | ||
+ | |winner=void | ||
+ | |games1= |games2= | ||
+ | |details={{BracketMatchSummary | ||
+ | |date= | ||
+ | |map1win=|map1=|map1p1frags=|map1p2frags= | ||
+ | |map2win=|map2=|map2p1frags=|map2p2frags= | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | === 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: <mark>February 21, 2021 18:10 CEST</mark>). 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= <span style="background-color:#ddf4dd;"> 1 or 2 </span> | ||
+ | :set the winner of the match with "1" or "2". Scores will show. | ||
+ | ;|walkover= <span style="background-color:#ddf4dd;"> 1 or 2 </span> | ||
+ | :set the winner of the match by walkover to "1" or "2". Scores don't show, but the winner will show <span style="background-color:#ddf4dd;"> '''WO''' </span> and the loser will show <span style="border:1px solid #f2f2f2;"> - </span> | ||
+ | ;|winner= <span style="background-color:#FFFFBB;"> draw </span> | ||
+ | :set if the game was a draw. Scores will show (and should be equivalent). | ||
+ | ;|winner= <span style="background-color:#f2f2f2;"> void </span> | ||
+ | :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 == | ||
+ | <pre>{{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. --> | ||
+ | |||
+ | }}</pre> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Adapted from [http://wiki.teamliquid.net/starcraft2/Template:MatchMaps Liquipedia] |
Latest revision as of 18:54, 30 March 2021
Related templates:
- {{MatchList}}
- {{MatchListNoheader}}
- {{MapWinner}}
- {{MatchAbbr}}
This template is used wrapped inside {{MatchList}} to display rows of matches in a group, expanded or hidden. It supports an unlimited number of matches, with each match being up to best of nine.
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