Template

MatchList

From Shadow Era Wiki

Revision as of 10:15, 2 July 2014 by Aphistos (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

(view - edit) Documentation

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 six player round robin style group (15 matches) with the matches being up to best of nine.

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

Example

The code:

{{MatchList
|match1={{MatchMaps
|player1=PuMa
|player2=Kas 
|winner=1
|map1win=2
|map2win=1
|map3win=1
}}
}}

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-15.
|preview=
(Optional) Put a link to a preview here.
|lrthread=
(Optional) Put a link to the live report thread here.
|vod=
(Optional) Put a link to the VOD(s) here.
|interview=
(Optional) Put a link to the interview(s) here.
|recap=
(Optional) Put a link to the recap here.
|comment=
(Optional) Put a comment here.

MatchMaps

|player1=
|player2=
set the name of the player 1 & 2.
|winner=
set the winner of the match with entering "1", "2" or "draw" nothing else is recognized.
|walkover=
set this to "1" or "2" if the player won on walk over, you will also need to set the |winner=.
|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.

Snippet code

For MatchList

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

For MatchMaps

{{MatchMaps
|player1=  
|player2=  
|winner=
|map1win= 
|map2win= 
|map3win= 
|map4win= 
|map5win= 
|map6win= 
|map7win= 
|map8win= 
|map9win= 
}}

Associated Templates