Template:MatchList/doc

From QWiki
< Template:MatchList
Revision as of 12:42, 23 November 2020 by Bps (talk | contribs) (Updated doc)

This template is an iteration of the {{MatchListStart}} {{MatchListSlot}} {{MatchListEnd}} family of templates. The main feature is to show a list of matches in a group with the maps that were played if the person so wishes to expand the list. Also the template calculates the score automatically based on the wins that are registered for each player. It supports a thirteen player round robin style group (78 matches) with the matches being up to best of nine. (this was upped from 7 players/21 matches for HammerTime tournament) Both 1v1 and 2v2 matches are supported in {{MatchMaps}}

A big way this template differs from most others is that you will use another template within the MatchList template.

Example

The code:

{{MatchList
|title=Detailed Results
|uncollapsed-maps=true
|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:

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.
|uncollapsed-maps=
set to "true" to have the maps shown when the table is not collapsed.
|class=
set your own classes, default is "wikitable collapsible collapsed".
|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.

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 walk over, you will also need to set the |winner=.
|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