Difference between revisions of "Template:MatchList/doc"
From QWiki
m (Updated doc) |
m (Major doc overhaul + including copy/paste code) |
||
Line 46: | Line 46: | ||
:set to "false" to not have the match list collapsed. | :set to "false" to not have the match list collapsed. | ||
;|width= | ;|width= | ||
− | :set | + | :set the width in pixels or percent, default is <mark>300px</mark>. |
;|title= | ;|title= | ||
:set the title of the table, default is "Match List". | :set the title of the table, default is "Match List". | ||
;|matchX= | ;|matchX= | ||
− | :This is where you | + | :match number from 1 - 21. This is where you insert the {{tl|MatchMaps}} template. |
− | |||
− | |||
;|class= | ;|class= | ||
− | :set your own classes, default is "wikitable collapsible collapsed". | + | : (Optional) set your own classes, default is "wikitable collapsible collapsed". |
=== MatchMaps === | === 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= | ;|player1= | ||
;|player2= | ;|player2= | ||
Line 65: | Line 67: | ||
;|player1link= | ;|player1link= | ||
;|player2link= | ;|player2link= | ||
− | : (Optional) | + | : (Optional) set an alternate link for the player. |
− | ;|winner= | + | ;|winner= <span style="background-color:#ddf4dd;"> 1 or 2 </span> |
− | :set the winner of the match with | + | :set the winner of the match with "1" or "2". Scores will show. |
− | ;|walkover= | + | ;|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= | ;|mapX= | ||
− | :set the name of the map | + | :set the name of the map. |
;|mapXwin= | ;|mapXwin= | ||
− | :set | + | :set the winner of the map with "1" or "2". |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
;|comment= | ;|comment= | ||
: (Optional) to add a comment after the set of match results. | : (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> | ||
== Associated Templates == | == Associated Templates == |
Revision as of 22:18, 23 March 2021
The main feature is to show a list of matches in a group, expanded or hidden. It supports an unlimited number of matches, with the each match being up to best of nine.
A big way this template differs from most others is that you will use another template - {{MatchMaps}} - within the MatchList template.
Example
The code:
{{MatchList |hide=false |title=My group title |match1={{MatchMaps |date=January 3, 2015 |player1=Rock |player1flag=fi |player2=Mutilator |player2flag=se |winner=1 |games1=2 |games2=0 |details={{BracketMatchSummary |map1win=1 |map1=dm2 |map1p1frags=25 |map1p2frags=13 |map1ot=1 |map2win=1 |map2=dm4 |map2p1frags=17 |map2p2frags=4 }} }} }}
Gives us:
My group title | |||
---|---|---|---|
Rock | 2 | 0 | Mutilator |
Parameters
MatchList
- |hide=
- set to "false" to not have the match list collapsed.
- |width=
- set the width in pixels or percent, default is 300px.
- |title=
- set the title of the table, default is "Match List".
- |matchX=
- match number from 1 - 21. This is where you insert the {{MatchMaps}} template.
- |class=
- (Optional) set your own classes, default is "wikitable collapsible collapsed".
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. --> }}
Associated Templates
Adapted from Liquipedia