Difference between revisions of "Template:GroupTableStart/doc"

From comp.tf
Jump to navigation Jump to search
 
Line 15: Line 15:
 
:;hide=true
 
:;hide=true
 
::makes table collapsible, hides it.
 
::makes table collapsible, hides it.
:;show_points=true
+
:;show_p=true
 
::adds a new column for teams' points.
 
::adds a new column for teams' points.
 +
:;|win_p=...
 +
:;|tie_p=...
 +
::(optional) Specify the number of '''points''' the team gain for each win/loss. If not present no games score is shown 1 and 3 points are given for each loss and win respectively.
 
;preview
 
;preview
 
:(Optional) Put a link to a preview here.
 
:(Optional) Put a link to a preview here.

Latest revision as of 03:37, 26 February 2017

Begins a group table. This template is used together with the templates {{GroupTableSlot}} and {{GroupTableEnd}}

Parameters[edit]

The following parameters can be used for this template

first unnamed argument
The first unnamed argument of the parameter list is used as the caption of the group table. Examples could be Group D or Week 3.
width=...
(optional) This argument specify the width of the table. The value can be any CSS width value.
hide=...
(optional)
hide=false
makes table collapsible, shows it.
hide=true
makes table collapsible, hides it.
show_p=true
adds a new column for teams' points.
|win_p=...
|tie_p=...
(optional) Specify the number of points the team gain for each win/loss. If not present no games score is shown 1 and 3 points are given for each loss and win respectively.
preview
(Optional) Put a link to a preview here.
lrthread
(Optional) Put a link to the live report thread here.
tftv
(Optional) Put a link to a tftv thread.
interview
(Optional) Put a link to the interview(s) here.
recap
(Optional) Put a link to the recap here.
date
(Optional) Put the date here. It will display between the title row and the first group slot.
finished
(Optional) Put in "true" if the group has already finished.
stream
(Optional) Put in the TL stream name or - if not on TL - the URL to the stream.

Examples[edit]

{{Template:GroupTableStart|Group D|width=300px}}
{{Template:GroupTableEnd}}

This will result in the following table

Group D

Copy/Paste[edit]

{{GroupTableStart|Group A|width=415px|date=}}
{{GroupTableSlot|{{team/}} |place=1|win_m=|draw_m=|lose_m=|win_r=|lose_r=|diff=|pbg=}}
{{GroupTableSlot|{{team/}} |place=2|win_m=|draw_m=|lose_m=|win_r=|lose_r=|diff=|pbg=}}
{{GroupTableSlot|{{team/}} |place=3|win_m=|draw_m=|lose_m=|win_r=|lose_r=|diff=|pbg=}}
{{GroupTableSlot|{{team/}} |place=4|win_m=|draw_m=|lose_m=|win_r=|lose_r=|diff=|pbg=}}
{{GroupTableEnd}}
{{MatchList|width=415px|title=Group A Matches
|match1={{MatchMaps
|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=
     | vod1= | vod2=
}} }} }}
|match2={{MatchMaps
|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=
     | vod1= | vod2=
}} }} }}
|match3={{MatchMaps
|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=
     | vod1= | vod2=
}} }} }}
|match4={{MatchMaps
|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=
     | vod1= | vod2=
}} }} }}
|match5={{MatchMaps
|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=
     | vod1= | vod2=
}} }} }}
|match6={{MatchMaps
|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=
     | vod1= | vod2=
}} }} }}
}}