Difference between revisions of "Template:GroupTableStart"

From comp.tf
Jump to navigation Jump to search
(Created page with "<includeonly>{|class="wikitable grouptable{{#if:{{{hide|}}}|{{#switch: {{{hide}}} |true =<nowiki> collapsible collapsed</nowiki>...")
 
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
                                   |true =<nowiki> collapsible collapsed</nowiki>
 
                                   |true =<nowiki> collapsible collapsed</nowiki>
 
                                   |false =<nowiki> collapsible</nowiki>
 
                                   |false =<nowiki> collapsible</nowiki>
                                   |{{{hide}}}}}}}" style="{{#if: {{{width|}}}|width: {{{width}}}; |}}margin: 0px;"
+
                                   |{{{hide}}}}}}}" style="{{#if: {{{width|}}}|width: {{{width}}}; |}}margin: 0 0 1em 0;"
 
!colspan="7"| {{{1}}} <span style="float:right;"><!--
 
!colspan="7"| {{{1}}} <span style="float:right;"><!--
 
-->{{#if:{{{preview|}}}|[[File:Preview Icon.png|link={{{preview}}}|alt=preview|15px|Preview]]}} <!--
 
-->{{#if:{{{preview|}}}|[[File:Preview Icon.png|link={{{preview}}}|alt=preview|15px|Preview]]}} <!--
 +
-->{{#if:{{{tftv|}}}|[[File:TeamfortressTV icon.png|link=http://www.teamfortress.tv/thread/{{{tftv}}}|16px|TF.TV Thread]]}} <!--
 
-->{{#if:{{{lrthread|}}}|[[File:LiveReport.png|link={{{lrthread}}}|alt=lrthread|15px|Live Report Thread]]}} <!--
 
-->{{#if:{{{lrthread|}}}|[[File:LiveReport.png|link={{{lrthread}}}|alt=lrthread|15px|Live Report Thread]]}} <!--
-->{{#if:{{{vod|}}}|[[Image:vod.png|link={{{vod}}}|15px|Watch VOD]]}}<!--
 
-->{{#if:{{{vod1|}}}|{{vodlink|gamenum=1|vod={{{vod1}}}|source=url}}&#8201;}}<!--
 
-->{{#if:{{{vod2|}}}|{{vodlink|gamenum=2|vod={{{vod2}}}|source=url}}&#8201;}}<!--
 
-->{{#if:{{{vod3|}}}|{{vodlink|gamenum=3|vod={{{vod3}}}|source=url}}&#8201;}}<!--
 
-->{{#if:{{{vod4|}}}|{{vodlink|gamenum=4|vod={{{vod4}}}|source=url}}&#8201;}}<!--
 
-->{{#if:{{{vod5|}}}|{{vodlink|gamenum=5|vod={{{vod5}}}|source=url}}&#8201;}}<!--
 
-->{{#if:{{{vod6|}}}|{{vodlink|gamenum=6|vod={{{vod6}}}|source=url}}&#8201;}}<!--
 
-->{{#if:{{{vod7|}}}|{{vodlink|gamenum=7|vod={{{vod7}}}|source=url}}&#8201;}}<!--
 
-->{{#if:{{{vod8|}}}|{{vodlink|gamenum=8|vod={{{vod8}}}|source=url}}&#8201;}}<!--
 
-->{{#if:{{{vod9|}}}|{{vodlink|gamenum=9|vod={{{vod9}}}|source=url}}&#8201;}} <!--
 
 
-->{{#if:{{{interview|}}}|[[File:Int_Icon.png|link={{{interview}}}|20px|Interview]]}} <!--
 
-->{{#if:{{{interview|}}}|[[File:Int_Icon.png|link={{{interview}}}|20px|Interview]]}} <!--
 
-->{{#if:{{{recap|}}}|[[File:Writers_Icon.png|link={{{recap}}}|15px|Recap]]}} <!--
 
-->{{#if:{{{recap|}}}|[[File:Writers_Icon.png|link={{{recap}}}|15px|Recap]]}} <!--
Line 21: Line 12:
 
{{#if:{{{date|}}}|
 
{{#if:{{{date|}}}|
 
{{!}}-
 
{{!}}-
{{!}}colspan="7" style="background-color:#f2f2f2; font-size:85%; line-height:90%; height:13px; text-align:center;" {{!}} '''{{{date}}}'''{{#ifeq:{{{finished|}}}|true||<span class="streamLink">{{{stream|}}}</span><span style="display:none" class="datetime">{{{date|}}}</span><span style="padding:5px 0px 0px 0px; display:block;" class="countdown">{{#ifeq:{{{live|}}}|true|{{#if:{{{stream|}}}|[http://www.teamliquid.net/video/streams/{{{stream}}} LIVE!]|LIVE!}}}}</span>}}}}<!--
+
{{!}}colspan="7" style="background-color:#f2f2f2; font-size:85%; line-height:90%; height:13px; text-align:center;" {{!}} '''{{{date}}}'''{{#ifeq:{{{finished|}}}|true||<span class="streamLink">{{{stream|}}}</span><span style="display:none" class="datetime">{{{date|}}}</span><span style="padding:5px 0px 0px 0px; display:block;" class="countdown">{{#ifeq:{{{live|}}}|true|{{#if:{{{stream|}}}|[{{{stream}}} LIVE!]|LIVE!}}}}</span>}}}}<!--
--></includeonly><noinclude>{{documentation}}[[Category:Tournament Page Formatting Templates]][[Category:Templates]][[Category:Source Liquipedia]]</noinclude>
+
-->{{#vardefine:show_points|{{{show_p|}}}}}{{#vardefine:win_points|{{{win_p|}}}}}{{#vardefine:tie_points|{{{tie_p|}}}}}</includeonly><noinclude>{{documentation}}[[Category:Tournament Page Formatting Templates]][[Category:Templates]][[Category:Source Liquipedia]]</noinclude>

Latest revision as of 18:14, 23 February 2017

(view - edit) Documentation

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

Parameters

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

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

This will result in the following table

Group D

Copy/Paste

{{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=
}} }} }}
}}