Difference between revisions of "Template:MatchList/doc"

From QWiki
m (Updated doc)
Line 1: Line 1:
 +
__NOTOC__
 
This template is an iteration of the {{tl|MatchListStart}} {{tl|MatchListSlot}} {{tl|MatchListEnd}} family of templates.
 
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 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.
 
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.
Line 15: Line 16:
 
|match1={{MatchMaps
 
|match1={{MatchMaps
 
|date=January 3, 2015
 
|date=January 3, 2015
|player1=Bisu |player1race=p
+
|player1=Rock |player1flag=fi
|player2=Rock |player2race=p
+
|player2=Mutilator |player2flag=se
 
|winner=1
 
|winner=1
|map1win=1 |map1=Avalon
+
|games1=2 |games2=0
|vodgame1={{vod |gamenum=1 |vod=https://www.youtube.com/watch?v=MziBIzkuMHI |source=url}}
+
|details={{BracketMatchSummary
|lrthread=http://www.teamliquid.net/forum/bw-tournaments/474460-ksl-ro16-groups-a-d-game-1-jan3
+
|map1win=1 |map1=dm2 |map1p1frags=25 |map1p2frags=13 |map1ot=1
 +
|map2win=1 |map2=dm4 |map2p1frags=17 |map2p2frags=4
 +
}}
 
}}
 
}}
 
}}</pre>
 
}}</pre>
Line 30: Line 33:
 
|match1={{MatchMaps
 
|match1={{MatchMaps
 
|date=January 3, 2015
 
|date=January 3, 2015
|player1=Bisu |player1race=p
+
|player1=Rock |player1flag=fi
|player2=Rock |player2race=p
+
|player2=Mutilator |player2flag=se
 
|winner=1
 
|winner=1
|map1win=1 |map1=Avalon
+
|games1=2 |games2=0
|vodgame1={{vod |gamenum=1 |vod=https://www.youtube.com/watch?v=MziBIzkuMHI |source=url}}
+
|details={{BracketMatchSummary
|lrthread=http://www.teamliquid.net/forum/bw-tournaments/474460-ksl-ro16-groups-a-d-game-1-jan3
+
|map1win=1 |map1=dm2 |map1p1frags=25 |map1p2frags=13 |map1ot=1
 +
|map2win=1 |map2=dm4 |map2p1frags=17 |map2p2frags=4
 +
}}
 
}}
 
}}
 
}}
 
}}
Line 62: Line 67:
 
;|player1flag=
 
;|player1flag=
 
;|player2flag=
 
;|player2flag=
:set the flag for player 1 & 2 with either full name or the two letter ISO code.
+
:set the flag for player 1 & 2 with the two letter ISO code.
;|player1race=
 
;|player2race=
 
:set the race for player 1 & 2 with p/t/z/r.
 
 
;|player1link=
 
;|player1link=
 
;|player2link=
 
;|player2link=
Line 79: Line 81:
 
;|title=
 
;|title=
 
: (Optional) to add a title in a separate row before the set of match results.
 
: (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=
 
;|vod, vod1, vod2, vod3, vod4, vod5=
 
:(Optional) Put a link to the VOD(s) here.
 
:(Optional) Put a link to the VOD(s) here.
 
:'''vod1''', '''vod2''', etc. do not require the {{tl|Vod}} template
 
:'''vod1''', '''vod2''', etc. do not require the {{tl|Vod}} template
;|interview=
 
:(Optional) Put a link to the interview(s) here.
 
;|review=
 
:(Optional) Put a link to the review here.
 
 
;|date=
 
;|date=
 
:(Optional) Put the date here. It will display between the title row and the first [[Template:GroupTableSlot|group slot]].
 
:(Optional) Put the date here. It will display between the title row and the first [[Template:GroupTableSlot|group slot]].
Line 95: Line 89:
 
: (Optional) to add a comment after the set of match results.
 
: (Optional) to add a comment after the set of match results.
  
 
== Snippet code ==
 
=== MatchList ===
 
<pre>
 
{{MatchList
 
|match1=
 
|match2=
 
|match3=
 
|match4=
 
|match5=
 
|match6=
 
|match7=
 
|match8=
 
|match9=
 
|match10=
 
|match11=
 
|match12=
 
|match13=
 
|match14=
 
|match15=
 
}}
 
</pre>
 
 
===MatchMaps===
 
For 1v1 matches:
 
<pre>
 
{{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=
 
}}
 
</pre>
 
 
For 2v2 matches:
 
<pre>
 
{{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=
 
}}
 
</pre>
 
 
== Associated Templates ==
 
== Associated Templates ==
 
*{{tl|MatchMaps}}
 
*{{tl|MatchMaps}}
 
*{{tl|MapWinner}}
 
*{{tl|MapWinner}}
*{{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]
 
Adapted from [http://wiki.teamliquid.net/starcraft2/Template:MatchList Liquipedia]

Revision as of 12:42, 23 November 2020

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