Difference between revisions of "Template:MatchListNoheader"

From QWiki
(Created page with "<includeonly><table class="matchlist {{{class|table table-bordered collapsible {{#ifeq:{{lc:{{{uncollapsed-maps|}}}}}|true|uncollapsed-maps}} {{#ifeq:{{lc:{{{hide}}}}}|false||...")
 
m
 
Line 1: Line 1:
 
<includeonly><table class="matchlist {{{class|table table-bordered collapsible {{#ifeq:{{lc:{{{uncollapsed-maps|}}}}}|true|uncollapsed-maps}} {{#ifeq:{{lc:{{{hide}}}}}|false||collapsed}}}}}" style="width:{{{width|300px}}}; margin: -1px 0 0 0; {{#if:{{{tablestyle|}}}|{{{tablestyle|}}};}}"><!--
 
<includeonly><table class="matchlist {{{class|table table-bordered collapsible {{#ifeq:{{lc:{{{uncollapsed-maps|}}}}}|true|uncollapsed-maps}} {{#ifeq:{{lc:{{{hide}}}}}|false||collapsed}}}}}" style="width:{{{width|300px}}}; margin: -1px 0 0 0; {{#if:{{{tablestyle|}}}|{{{tablestyle|}}};}}"><!--
Icons for interviews preview vod etc.
+
 
-->{{#if:{{{preview|}}} {{{lrthread|}}} {{{vod|}}} {{{interview|}}} {{{review|}}}|<span style="float:right;"><!--
 
-->{{#if:{{{preview|}}}|[[File:Preview Icon.png|link={{{preview}}}|alt=preview|15px|Preview]]}} <!--
 
-->{{#if:{{{lrthread|}}}|[[File:LiveReport.png|link={{{lrthread}}}|alt=lrthread|15px|Live Report Thread]]}} <!--
 
-->{{#if:{{{vod|}}}|[[File:vod.png|link={{{vod}}}|15px|Watch VOD]]}} <!--
 
-->{{#if:{{{interview|}}}|[[File:Int_Icon.png|link={{{interview}}}|20px|Interview]]}} <!--
 
-->{{#if:{{{review|}}}|[[File:Writers_Icon.png|link={{{review}}}|15px|Review]]}}</span>}}</th></tr><!--
 
 
List of matches (up to 21) -->
 
List of matches (up to 21) -->
 
{{#vardefine:match_number1|}}{{{match1|}}}{{#vardefine:match_number2|}}{{{match2|}}}{{#vardefine:match_number3|}}{{{match3|}}}{{#vardefine:match_number4|}}{{{match4|}}}{{#vardefine:match_number5|}}{{{match5|}}}{{#vardefine:match_number6|}}{{{match6|}}}{{#vardefine:match_number7|}}{{{match7|}}}{{#vardefine:match_number8|}}{{{match8|}}}{{#vardefine:match_number9|}}{{{match9|}}}{{#vardefine:match_number10|}}{{{match10|}}}{{#vardefine:match_number11|}}{{{match11|}}}{{#vardefine:match_number12|}}{{{match12|}}}{{#vardefine:match_number13|}}{{{match13|}}}{{#vardefine:match_number14|}}{{{match14|}}}{{#vardefine:match_number15|}}{{{match15|}}}{{#vardefine:match_number16|}}{{{match16|}}}{{#vardefine:match_number17|}}{{{match17|}}}{{#vardefine:match_number18|}}{{{match18|}}}{{#vardefine:match_number19|}}{{{match19|}}}{{#vardefine:match_number20|}}{{{match20|}}}{{#vardefine:match_number21|}}{{{match21|}}}{{#vardefine:match_number22|}}{{{match22|}}}{{#vardefine:match_number23|}}{{{match23|}}}{{#vardefine:match_number24|}}{{{match24|}}}{{#vardefine:match_number25|}}{{{match25|}}}{{#vardefine:match_number26|}}{{{match26|}}}{{#vardefine:match_number27|}}{{{match27|}}}{{#vardefine:match_number28|}}{{{match28|}}}{{#vardefine:match_number29|}}{{{match29|}}}{{#vardefine:match_number30|}}{{{match30|}}}{{#vardefine:match_number31|}}{{{match31|}}}{{#vardefine:match_number32|}}{{{match32|}}}{{#vardefine:match_number33|}}{{{match33|}}}{{#vardefine:match_number34|}}{{{match34|}}}{{#vardefine:match_number35|}}{{{match35|}}}{{#vardefine:match_number36|}}{{{match36|}}}{{#vardefine:match_number37|}}{{{match37|}}}{{#vardefine:match_number38|}}{{{match38|}}}{{#vardefine:match_number39|}}{{{match39|}}}{{#vardefine:match_number40|}}{{{match40|}}}{{#vardefine:match_number41|}}{{{match41|}}}{{#vardefine:match_number42|}}{{{match42|}}}{{#vardefine:match_number43|}}{{{match43|}}}{{#vardefine:match_number44|}}{{{match44|}}}{{#vardefine:match_number45|}}{{{match45|}}}{{#vardefine:match_number46|}}{{{match46|}}}{{#vardefine:match_number47|}}{{{match47|}}}{{#vardefine:match_number48|}}{{{match48|}}}{{#vardefine:match_number49|}}{{{match49|}}}{{#vardefine:match_number50|}}{{{match50|}}}{{#vardefine:match_number51|}}{{{match51|}}}{{#vardefine:match_number52|}}{{{match52|}}}{{#vardefine:match_number53|}}{{{match53|}}}{{#vardefine:match_number54|}}{{{match54|}}}{{#vardefine:match_number55|}}{{{match55|}}}{{#vardefine:match_number56|}}{{{match56|}}}{{#vardefine:match_number57|}}{{{match57|}}}{{#vardefine:match_number58|}}{{{match58|}}}{{#vardefine:match_number59|}}{{{match59|}}}{{#vardefine:match_number60|}}{{{match60|}}}{{#vardefine:match_number61|}}{{{match61|}}}{{#vardefine:match_number62|}}{{{match62|}}}{{#vardefine:match_number63|}}{{{match63|}}}{{#vardefine:match_number64|}}{{{match64|}}}{{#vardefine:match_number65|}}{{{match65|}}}{{#vardefine:match_number66|}}{{{match66|}}}{{#vardefine:match_number67|}}{{{match67|}}}{{#vardefine:match_number68|}}{{{match68|}}}{{#vardefine:match_number69|}}{{{match69|}}}{{#vardefine:match_number70|}}{{{match70|}}}{{#vardefine:match_number71|}}{{{match71|}}}{{#vardefine:match_number72|}}{{{match72|}}}{{#vardefine:match_number73|}}{{{match73|}}}{{#vardefine:match_number74|}}{{{match74|}}}{{#vardefine:match_number75|}}{{{match75|}}}{{#vardefine:match_number76|}}{{{match76|}}}{{#vardefine:match_number77|}}{{{match77|}}}{{#vardefine:match_number78|}}{{{match78|}}}
 
{{#vardefine:match_number1|}}{{{match1|}}}{{#vardefine:match_number2|}}{{{match2|}}}{{#vardefine:match_number3|}}{{{match3|}}}{{#vardefine:match_number4|}}{{{match4|}}}{{#vardefine:match_number5|}}{{{match5|}}}{{#vardefine:match_number6|}}{{{match6|}}}{{#vardefine:match_number7|}}{{{match7|}}}{{#vardefine:match_number8|}}{{{match8|}}}{{#vardefine:match_number9|}}{{{match9|}}}{{#vardefine:match_number10|}}{{{match10|}}}{{#vardefine:match_number11|}}{{{match11|}}}{{#vardefine:match_number12|}}{{{match12|}}}{{#vardefine:match_number13|}}{{{match13|}}}{{#vardefine:match_number14|}}{{{match14|}}}{{#vardefine:match_number15|}}{{{match15|}}}{{#vardefine:match_number16|}}{{{match16|}}}{{#vardefine:match_number17|}}{{{match17|}}}{{#vardefine:match_number18|}}{{{match18|}}}{{#vardefine:match_number19|}}{{{match19|}}}{{#vardefine:match_number20|}}{{{match20|}}}{{#vardefine:match_number21|}}{{{match21|}}}{{#vardefine:match_number22|}}{{{match22|}}}{{#vardefine:match_number23|}}{{{match23|}}}{{#vardefine:match_number24|}}{{{match24|}}}{{#vardefine:match_number25|}}{{{match25|}}}{{#vardefine:match_number26|}}{{{match26|}}}{{#vardefine:match_number27|}}{{{match27|}}}{{#vardefine:match_number28|}}{{{match28|}}}{{#vardefine:match_number29|}}{{{match29|}}}{{#vardefine:match_number30|}}{{{match30|}}}{{#vardefine:match_number31|}}{{{match31|}}}{{#vardefine:match_number32|}}{{{match32|}}}{{#vardefine:match_number33|}}{{{match33|}}}{{#vardefine:match_number34|}}{{{match34|}}}{{#vardefine:match_number35|}}{{{match35|}}}{{#vardefine:match_number36|}}{{{match36|}}}{{#vardefine:match_number37|}}{{{match37|}}}{{#vardefine:match_number38|}}{{{match38|}}}{{#vardefine:match_number39|}}{{{match39|}}}{{#vardefine:match_number40|}}{{{match40|}}}{{#vardefine:match_number41|}}{{{match41|}}}{{#vardefine:match_number42|}}{{{match42|}}}{{#vardefine:match_number43|}}{{{match43|}}}{{#vardefine:match_number44|}}{{{match44|}}}{{#vardefine:match_number45|}}{{{match45|}}}{{#vardefine:match_number46|}}{{{match46|}}}{{#vardefine:match_number47|}}{{{match47|}}}{{#vardefine:match_number48|}}{{{match48|}}}{{#vardefine:match_number49|}}{{{match49|}}}{{#vardefine:match_number50|}}{{{match50|}}}{{#vardefine:match_number51|}}{{{match51|}}}{{#vardefine:match_number52|}}{{{match52|}}}{{#vardefine:match_number53|}}{{{match53|}}}{{#vardefine:match_number54|}}{{{match54|}}}{{#vardefine:match_number55|}}{{{match55|}}}{{#vardefine:match_number56|}}{{{match56|}}}{{#vardefine:match_number57|}}{{{match57|}}}{{#vardefine:match_number58|}}{{{match58|}}}{{#vardefine:match_number59|}}{{{match59|}}}{{#vardefine:match_number60|}}{{{match60|}}}{{#vardefine:match_number61|}}{{{match61|}}}{{#vardefine:match_number62|}}{{{match62|}}}{{#vardefine:match_number63|}}{{{match63|}}}{{#vardefine:match_number64|}}{{{match64|}}}{{#vardefine:match_number65|}}{{{match65|}}}{{#vardefine:match_number66|}}{{{match66|}}}{{#vardefine:match_number67|}}{{{match67|}}}{{#vardefine:match_number68|}}{{{match68|}}}{{#vardefine:match_number69|}}{{{match69|}}}{{#vardefine:match_number70|}}{{{match70|}}}{{#vardefine:match_number71|}}{{{match71|}}}{{#vardefine:match_number72|}}{{{match72|}}}{{#vardefine:match_number73|}}{{{match73|}}}{{#vardefine:match_number74|}}{{{match74|}}}{{#vardefine:match_number75|}}{{{match75|}}}{{#vardefine:match_number76|}}{{{match76|}}}{{#vardefine:match_number77|}}{{{match77|}}}{{#vardefine:match_number78|}}{{{match78|}}}
 
</table></includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude>
 
</table></includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude>

Latest revision as of 08:14, 17 September 2020

Documentation (view - edit)

This template is identical to {{MatchList}}, with only one difference: it does not display a title/header above the match.

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:

{{MatchListNoheader
|title=Detailed Results
|uncollapsed-maps=true
|match1={{MatchMaps
|date=
|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=
This has no effect in this template. If you want a title, see {{MatchList}}
|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