Difference between revisions of "Template:MatchList/doc"

From QWiki
m
m
Line 159: Line 159:
 
*{{tl|MapWinner}}
 
*{{tl|MapWinner}}
 
*{{tl|TeamMatchListHeader}} A header that can be placed on top of {{tl|MatchList}} to summarize a team match.
 
*{{tl|TeamMatchListHeader}} A header that can be placed on top of {{tl|MatchList}} to summarize a team match.
 +
 +
 +
Adapted from [http://wiki.teamliquid.net/starcraft2/Template:MatchList Liquipedia]

Revision as of 20:21, 12 January 2017

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 seven player round robin style group (21 matches) with the matches being up to best of nine. 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=Bisu  |player1race=p
|player2=Rock  |player2race=p
|winner=1
|map1win=1 |map1=Avalon 
|vodgame1={{vod |gamenum=1 |vod=https://www.youtube.com/watch?v=MziBIzkuMHI |source=url}}
|lrthread=http://www.teamliquid.net/forum/bw-tournaments/474460-ksl-ro16-groups-a-d-game-1-jan3
}}
}}

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 either full name or the two letter ISO code.
|player1race=
|player2race=
set the race for player 1 & 2 with p/t/z/r.
|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.
|preview
(Optional) Put a link to a preview here.
lrthread
(Optional) Put a link to the live report thread here.
|vod, vod1, vod2, vod3, vod4, vod5=
(Optional) Put a link to the VOD(s) here.
vod1, vod2, etc. do not require the {{Vod}} template
|interview=
(Optional) Put a link to the interview(s) here.
|review=
(Optional) Put a link to the review here.
|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.


Snippet code

MatchList

{{MatchList
|match1=
|match2=
|match3=
|match4=
|match5=
|match6=
|match7=
|match8=
|match9=
|match10=
|match11=
|match12=
|match13=
|match14=
|match15=
}}

MatchMaps

For 1v1 matches:

{{MatchMaps
|player1=  |player1flag=  |player1race=
|player2=  |player2flag=  |player2race= 
|winner=
|map1win= |map1=
|map2win= |map2=
|map3win= |map3=
|map4win= |map4=
|map5win= |map5=
|map6win= |map6=
|map7win= |map7=
|map8win= |map8=
|map9win= |map9=
}}

For 2v2 matches:

{{MatchMaps
|player1=  |player1flag=  |player1race=
|player1partner=  |player1partnerflag=  |player1partnerrace=
|player2=  |player2flag=  |player2race= 
|player2partner=  |player2partnerflag=  |player2partnerrace=
|winner=
|map1win= |map1=
|map2win= |map2=
|map3win= |map3=
|map4win= |map4=
|map5win= |map5=
|map6win= |map6=
|map7win= |map7=
|map8win= |map8=
|map9win= |map9=
}}

Associated Templates


Adapted from Liquipedia