Difference between revisions of "Template:MatchList"

From comp.tf
Jump to navigation Jump to search
m
m
Line 9: Line 9:
 
-->{{#if:{{{review|}}}|[[File:Writers_Icon.png|link={{{review}}}|15px|Recap]]}}</span> }}</th></tr><!--
 
-->{{#if:{{{review|}}}|[[File:Writers_Icon.png|link={{{review}}}|15px|Recap]]}}</span> }}</th></tr><!--
  
-->{{#if:{{{map|}}}|<tr style="border-bottom:3px solid #aaa"><th style="padding:0px; border: 0 0 0 0" colspan="4"><span style="width:338px; display:inline; border: 1px solid #aaa">[[Image:{{{map|}}}_Slice.jpg|338px|link={{{map|}}}]]</span></th></tr>}}<!-- List of matches (up to 50)  
+
-->{{#if:{{{map|}}}|<tr style="border-bottom:3px solid #aaa"><th style="padding:0px; border-width: 0px 0px 0px 0px" colspan="4"><span style="width:338px; display:inline; border: 1px solid #aaa">[[Image:{{{map|}}}_Slice.jpg|338px|link={{{map|}}}]]</span></th></tr>}}<!-- List of matches (up to 50)  
  
 
-->{{{match1|}}}{{{match2|}}}{{{match3|}}}{{{match4|}}}{{{match5|}}}{{{match6|}}}{{{match7|}}}{{{match8|}}}{{{match9|}}}{{{match10|}}}{{{match11|}}}{{{match12|}}}{{{match13|}}}{{{match14|}}}{{{match15|}}}{{{match16|}}}{{{match17|}}}{{{match18|}}}{{{match19|}}}{{{match20|}}}{{{match21|}}}{{{match22|}}}{{{match23|}}}{{{match24|}}}{{{match25|}}}{{{match26|}}}{{{match27|}}}{{{match28|}}}{{{match29|}}}{{{match30|}}}{{{match31|}}}{{{match32|}}}{{{match33|}}}{{{match34|}}}{{{match35|}}}{{{match36|}}}{{{match37|}}}{{{match38|}}}{{{match39|}}}{{{match40|}}}{{{match41|}}}{{{match42|}}}{{{match43|}}}{{{match44|}}}{{{match45|}}}{{{match46|}}}{{{match47|}}}{{{match48|}}}{{{match49|}}}{{{match50|}}}{{{match51|}}}{{{match52|}}}{{{match53|}}}{{{match54|}}}{{{match55|}}}{{{match56|}}}{{{match57|}}}{{{match58|}}}{{{match59|}}}{{{match60|}}}{{{match61|}}}{{{match62|}}}{{{match63|}}}{{{match64|}}}{{{match65|}}}{{{match66|}}}{{{match67|}}}{{{match68|}}}{{{match69|}}}{{{match70|}}}{{{match71|}}}{{{match72|}}}{{{match73|}}}{{{match74|}}}{{{match75|}}}{{{match76|}}}{{{match77|}}}{{{match78|}}}{{{match79|}}}{{{match80|}}}{{{match81|}}}{{{match82|}}}{{{match83|}}}{{{match84|}}}{{{match85|}}}{{{match86|}}}{{{match87|}}}{{{match88|}}}{{{match89|}}}{{{match90|}}}{{{match91|}}}{{{match92|}}}{{{match93|}}}{{{match94|}}}{{{match95|}}}{{{match96|}}}{{{match97|}}}{{{match98|}}}{{{match99|}}}{{{match100|}}}{{{match101|}}}{{{match102|}}}{{{match103|}}}{{{match104|}}}{{{match105|}}}{{{match106|}}}{{{match107|}}}{{{match108|}}}{{{match109|}}}{{{match110|}}}{{{match111|}}}{{{match112|}}}{{{match113|}}}{{{match114|}}}{{{match115|}}}{{{match116|}}}{{{match117|}}}{{{match118|}}}{{{match119|}}}{{{match120|}}}{{{match121|}}}{{{match122|}}}{{{match123|}}}{{{match124|}}}{{{match125|}}}{{{match126|}}}{{{match127|}}}{{{match128|}}}{{{match129|}}}{{{match130|}}}{{{match131|}}}{{{match132|}}}{{{match133|}}}{{{match134|}}}{{{match135|}}}{{{match136|}}}{{{match137|}}}{{{match138|}}}{{{match139|}}}{{{match140|}}}{{{match141|}}}{{{match142|}}}{{{match143|}}}{{{match144|}}}{{{match145|}}}{{{match146|}}}{{{match147|}}}{{{match148|}}}{{{match149|}}}{{{match150|}}}{{{match151|}}}{{{match152|}}}{{{match153|}}}{{{match154|}}}{{{match155|}}}{{{match156|}}}{{{match157|}}}{{{match158|}}}{{{match159|}}}{{{match160|}}}{{{match161|}}}{{{match162|}}}{{{match163|}}}{{{match164|}}}{{{match165|}}}{{{match166|}}}{{{match167|}}}{{{match168|}}}{{{match169|}}}{{{match170|}}}{{{match171|}}}{{{match172|}}}{{{match173|}}}{{{match174|}}}{{{match175|}}}{{{match176|}}}{{{match177|}}}{{{match178|}}}{{{match179|}}}{{{match180|}}}{{{match181|}}}{{{match182|}}}{{{match183|}}}{{{match184|}}}{{{match185|}}}{{{match186|}}}{{{match187|}}}{{{match188|}}}{{{match189|}}}{{{match190|}}}{{{match191|}}}{{{match192|}}}{{{match193|}}}{{{match194|}}}{{{match195|}}}{{{match196|}}}{{{match197|}}}{{{match198|}}}{{{match199|}}}{{{match200|}}}{{#vardefine:team1wins|0}}{{#vardefine:team2wins|0}}{{#vardefine:finished|false}}
 
-->{{{match1|}}}{{{match2|}}}{{{match3|}}}{{{match4|}}}{{{match5|}}}{{{match6|}}}{{{match7|}}}{{{match8|}}}{{{match9|}}}{{{match10|}}}{{{match11|}}}{{{match12|}}}{{{match13|}}}{{{match14|}}}{{{match15|}}}{{{match16|}}}{{{match17|}}}{{{match18|}}}{{{match19|}}}{{{match20|}}}{{{match21|}}}{{{match22|}}}{{{match23|}}}{{{match24|}}}{{{match25|}}}{{{match26|}}}{{{match27|}}}{{{match28|}}}{{{match29|}}}{{{match30|}}}{{{match31|}}}{{{match32|}}}{{{match33|}}}{{{match34|}}}{{{match35|}}}{{{match36|}}}{{{match37|}}}{{{match38|}}}{{{match39|}}}{{{match40|}}}{{{match41|}}}{{{match42|}}}{{{match43|}}}{{{match44|}}}{{{match45|}}}{{{match46|}}}{{{match47|}}}{{{match48|}}}{{{match49|}}}{{{match50|}}}{{{match51|}}}{{{match52|}}}{{{match53|}}}{{{match54|}}}{{{match55|}}}{{{match56|}}}{{{match57|}}}{{{match58|}}}{{{match59|}}}{{{match60|}}}{{{match61|}}}{{{match62|}}}{{{match63|}}}{{{match64|}}}{{{match65|}}}{{{match66|}}}{{{match67|}}}{{{match68|}}}{{{match69|}}}{{{match70|}}}{{{match71|}}}{{{match72|}}}{{{match73|}}}{{{match74|}}}{{{match75|}}}{{{match76|}}}{{{match77|}}}{{{match78|}}}{{{match79|}}}{{{match80|}}}{{{match81|}}}{{{match82|}}}{{{match83|}}}{{{match84|}}}{{{match85|}}}{{{match86|}}}{{{match87|}}}{{{match88|}}}{{{match89|}}}{{{match90|}}}{{{match91|}}}{{{match92|}}}{{{match93|}}}{{{match94|}}}{{{match95|}}}{{{match96|}}}{{{match97|}}}{{{match98|}}}{{{match99|}}}{{{match100|}}}{{{match101|}}}{{{match102|}}}{{{match103|}}}{{{match104|}}}{{{match105|}}}{{{match106|}}}{{{match107|}}}{{{match108|}}}{{{match109|}}}{{{match110|}}}{{{match111|}}}{{{match112|}}}{{{match113|}}}{{{match114|}}}{{{match115|}}}{{{match116|}}}{{{match117|}}}{{{match118|}}}{{{match119|}}}{{{match120|}}}{{{match121|}}}{{{match122|}}}{{{match123|}}}{{{match124|}}}{{{match125|}}}{{{match126|}}}{{{match127|}}}{{{match128|}}}{{{match129|}}}{{{match130|}}}{{{match131|}}}{{{match132|}}}{{{match133|}}}{{{match134|}}}{{{match135|}}}{{{match136|}}}{{{match137|}}}{{{match138|}}}{{{match139|}}}{{{match140|}}}{{{match141|}}}{{{match142|}}}{{{match143|}}}{{{match144|}}}{{{match145|}}}{{{match146|}}}{{{match147|}}}{{{match148|}}}{{{match149|}}}{{{match150|}}}{{{match151|}}}{{{match152|}}}{{{match153|}}}{{{match154|}}}{{{match155|}}}{{{match156|}}}{{{match157|}}}{{{match158|}}}{{{match159|}}}{{{match160|}}}{{{match161|}}}{{{match162|}}}{{{match163|}}}{{{match164|}}}{{{match165|}}}{{{match166|}}}{{{match167|}}}{{{match168|}}}{{{match169|}}}{{{match170|}}}{{{match171|}}}{{{match172|}}}{{{match173|}}}{{{match174|}}}{{{match175|}}}{{{match176|}}}{{{match177|}}}{{{match178|}}}{{{match179|}}}{{{match180|}}}{{{match181|}}}{{{match182|}}}{{{match183|}}}{{{match184|}}}{{{match185|}}}{{{match186|}}}{{{match187|}}}{{{match188|}}}{{{match189|}}}{{{match190|}}}{{{match191|}}}{{{match192|}}}{{{match193|}}}{{{match194|}}}{{{match195|}}}{{{match196|}}}{{{match197|}}}{{{match198|}}}{{{match199|}}}{{{match200|}}}{{#vardefine:team1wins|0}}{{#vardefine:team2wins|0}}{{#vardefine:finished|false}}
 
</table></includeonly><noinclude>{{documentation}}[[Category:Template]][[Category:Match Template]]
 
</table></includeonly><noinclude>{{documentation}}[[Category:Template]][[Category:Match Template]]
 
</noinclude>
 
</noinclude>

Revision as of 10:53, 3 June 2016

(view - edit) Documentation

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 eight player round robin style group (29 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
|map=Mojave
|match1={{MatchMaps
|team1=4-25|team2=Danger Dogs|winner=draw
|games1=3|games2=3
|details={{BracketMatchSummary
   | date=May 19, 2032 - 21:15 {{abbr/CEST}} |finished=true
   | match1={{Game | t1score=0 | t2score=5 | map=cp_badlands | win=2 }}
   | match2={{Game | t1score=5 | t2score=0 | map=cp_snakewater_final1 | win=1 }}
   | details={{Details
     | log1=826611 | log2=826684
     | vod1=https://youtu.be/dt5P6mXitic?t=17m2s | vod2=https://youtu.be/dt5P6mXitic?t=35m37s
   }}
 }}
}}
}}

Produces:

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".
|map=
(Optional) Put a map name here (shows File:<mapname>_Slice.jpg)
|matchX=
This is where you will insert the MatchMaps template.
|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 here.
|vod#=
(Optional) If there are multiple VODs, we would encourage the use of this parameter.
|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

|team1=
|team2=
set the team names. These will generate templates for their icon and tags under Team2/ and Team1/ respectively.
|winner=
set the winner of the match with entering "1", "2" or "draw".
|default=
set this to "1" or "2" if the player won due to a default, such as a no show or dropping teams. |winner=.
|comment=
(Optional) Put a comment here.
|date=
(Optional) Put a date here (includes countdown).
|stream=
(Optional) Adds in the twitch.tv stream.
|finished=
(Optional) Mark the match as finished (Which will remove the "LIVE!" sign).
|details=
(Optional) Add details about the game, to be used with {{BracketMatchSummary}}.

Snippet code

For MatchList

{{MatchList
|match1=
|match2=
|match3=
|match4=
|match5=
|match6=
|match7=
|match8=
|match9=
|match10=
|match11=
|match12=
|match13=
|match14=
|match15=
|match16=
|match17=
|match18=
|match19=
|match20=
|match21=
|match22=
|match23=
|match24=
|match25=
|match26=
|match27=
|match28=
|match29=
}}

For MatchMaps

{{MatchMaps
|date= |finished=
|team1= |team2= |winner=
|details={{BracketMatchSummary
   | date= |stream= |finished=
   | match1={{Game | t1score= | t2score= | map= | win= }}
   | match2={{Game | t1score= | t2score= | map= | win= }}
   | details={{Details
     | log1= | log1gc= | log2= | log2gc= | log3= | log3gc=
     | vod1= | vod2= | vod3=
     | interview=
   }}
 }}
}}