Template:MatchList: Difference between revisions

Template page
(Created page with "<templatestyles src="MatchList.css" /> <templatestyles src="Match.css" /> <includeonly>{{#invoke:MatchList|main}}</includeonly><noinclude>{{Documentation}}Category:Templates</noinclude>")
 
mNo edit summary
 
Line 1: Line 1:
<templatestyles src="MatchList.css" />
<templatestyles src="Match.css" />
<includeonly>{{#invoke:MatchList|main}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
<includeonly>{{#invoke:MatchList|main}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>

Latest revision as of 14:05, 8 October 2023

Documentation (view - edit)

If you want the tables to wrap themselves onto multiple rows on smaller screensizes, then call {{Wrap}} before calling the first MatchList template and a {{Wrap|end}} after the last MatchList

Parameters:

Parameter Description
title Name of the group, displayed at the very top.
stage If multiple groups on same page, then add a stage name here that would correlate to the stage= of the same name in a Template:RoundRobin call so the matches would be linked to that particular group table.
bestof Sets the default bestof number for all the matches in this matchlist.
Unnamed Two options - add them in the order you want them to show up in the table:
  • Use it as a separator to add a new sub-header like |Day 1 to create a table row with that text
  • Use Template:Match to add a match row
twitch The twitch channel to be set by default to all matches in the list
youtube The youtube channel name of the live stream to be set by default to all matches

Example

{{MatchList|title=Group A|stage=Group A|bestof=2|twitch=dota2_ti|youtube=test
  |Day 1
  |{{Match
    |date=2023-10-12 17:00
    |p1=eg
    |p2=liquid
  }}
  |Day 2
  |{{Match
    |date=2023-10-12 19:00
    |p1=tsm
    |p2=gaimin
  }}
}}

Will look like this:

MatchList example.png