Difference between revisions of "Template:MatchList/doc"

From QWiki
m (Updated doc)
m (Updated doc)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
This template is an iteration of the {{tl|MatchListStart}} {{tl|MatchListSlot}} {{tl|MatchListEnd}} family of templates.
+
The main feature is to show a list of matches in a group, expanded or hidden.  
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 an unlimited number of matches, with the each match being up to best of nine.
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 {{tl|MatchMaps}}
 
  
A big way this template differs from most others is that you will use another template within the MatchList template.
+
A big way this template differs from most others is that you will use another template - {{tl|MatchMaps}} - within the MatchList template.
  
 
== Example ==
 
== Example ==
Line 12: Line 9:
 
The code:
 
The code:
 
<pre>{{MatchList
 
<pre>{{MatchList
|title=Detailed Results
+
|hide=false
|uncollapsed-maps=true
+
|title=My group title
 
|match1={{MatchMaps
 
|match1={{MatchMaps
 
|date=January 3, 2015
 
|date=January 3, 2015
Line 29: Line 26:
 
Gives us:
 
Gives us:
 
{{MatchList
 
{{MatchList
|title=Detailed Results
+
|hide=false
|uncollapsed-maps=true
+
|title=My group title
 
|match1={{MatchMaps
 
|match1={{MatchMaps
 
|date=January 3, 2015
 
|date=January 3, 2015
Line 50: Line 47:
 
;|width=
 
;|width=
 
:set to the amount of pixels, ems, or percent, default is 300px.
 
: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=
 
;|title=
 
:set the title of the table, default is "Match List".
 
:set the title of the table, default is "Match List".
Line 60: Line 53:
 
;|tablestyle=
 
;|tablestyle=
 
: (Optional) defines additional table CSS styling.
 
: (Optional) defines additional table CSS styling.
 +
;|class=
 +
:set your own classes, default is "wikitable collapsible collapsed".
  
 
=== MatchMaps ===
 
=== MatchMaps ===
Line 74: Line 69:
 
:set the winner of the match with entering "1" or "2", nothing else is recognized.
 
:set the winner of the match with entering "1" or "2", nothing else is recognized.
 
;|walkover=
 
;|walkover=
: (Optional) set this to "1" or "2" if the player won on walk over, you will also need to set the '''|winner='''.
+
: (Optional) set this to "1" or "2" if the player won on walkover.
 
;|mapX=
 
;|mapX=
 
:set the name of the map, X is 1-9.
 
:set the name of the map, X is 1-9.

Revision as of 20:47, 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
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