Template:MatchList/doc

From QWiki
< Template:MatchList
Revision as of 20:47, 23 March 2021 by Bps (talk | contribs) (Updated doc)

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
January 3, 2015
Rock Finland 2
Finland Rock
Sweden Mutilator
GreenCheck.png
25 
 
NoCheck.png
 13
 
dm2

1 overtime

GreenCheck.png
17 
 
NoCheck.png
 4
 
dm4
0 Sweden Mutilator

Parameters

MatchList

|hide=
set to "false" to not have the match list collapsed.
|width=
set to the amount of pixels, ems, or percent, default is 300px.
|title=
set the title of the table, default is "Match List".
|matchX=
This is where you will insert the MatchMaps template, X is 1-21.
|tablestyle=
(Optional) defines additional table CSS styling.
|class=
set your own classes, default is "wikitable collapsible collapsed".

MatchMaps

|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) sets an alternate link for the player. Use the value false to remove the link.
|winner=
set the winner of the match with entering "1" or "2", nothing else is recognized.
|walkover=
(Optional) set this to "1" or "2" if the player won on walkover.
|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.
|title=
(Optional) to add a title in a separate row before the set of match results.
|vod, vod1, vod2, vod3, vod4, vod5=
(Optional) Put a link to the VOD(s) here.
vod1, vod2, etc. do not require the {{Vod}} template
|date=
(Optional) Put the date here. It will display between the title row and the first group slot.
|comment=
(Optional) to add a comment after the set of match results.

Associated Templates


Adapted from Liquipedia