Difference between revisions of "Template:GroupTableSlot/doc"

From comp.tf
Jump to navigation Jump to search
(Created page with "Begins a group table. This template is used together with the templates <nowiki>{{</nowiki>GroupTableSlot<nowiki>}}</nowiki> and <nowiki>{{</nowiki>GroupTableEnd<nowiki>}}</no...")
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Begins a group table. This template is used together with the templates <nowiki>{{</nowiki>GroupTableSlot<nowiki>}}</nowiki> and <nowiki>{{</nowiki>GroupTableEnd<nowiki>}}</nowiki>
+
This template is for a row inside a group table. It is used together with the templates <nowiki>{{</nowiki>[[Template:GroupTableStart|GroupTableStart]]<nowiki>}}</nowiki> and <nowiki>{{</nowiki>[[Template:GroupTableEnd|GroupTableEnd]]<nowiki>}}</nowiki>
  
 
== Parameters ==
 
== Parameters ==
  
The following parameters can be used for this template
+
The following parameters can be used in this template
  
;''first unnamed argument''
+
;''first parameter''
:The first unnamed argument of the parameter list is used as the caption of the group table. Examples could be <code>Group D</code> or <code>Week 3</code>.
+
:The first parameter in this template (technically the <nowiki>{{{1}}}</nowiki> field) is used as the team name. This can be even a template call like {{team/Epsilon}}.
;width=...
+
;|place=...
:(optional) This argument specify the width of the table. The value can be any CSS width value.
+
:(optional) The place number to shown. If this parameter is not set the value <code>X</code> is used.
;hide=...
+
;|bg=...
:(optional)
+
:(optional) The background color for the slot. This can be every CSS color values, but the following color names has been added to the template for easy use:
:;hide=false
+
:;|bg=proceed
::makes table collapsible, shows it.
+
:;|bg=up
:;hide=true
+
::Use a light green background to indicate that this position is a proceeding place inside the group.
::makes table collapsible, hides it.
+
:;|bg=staydown
;preview
+
::Use a light yellow background to indicate that this player will stay at the same stage in the tournament or advance through a longer bracket or group stage.
:(Optional) Put a link to a preview here.
+
:;|bg=drop
;lrthread
+
:;|bg=down
:(Optional) Put a link to the live report thread here.
+
::Use a light red background to indicate that this position will drop the player from the group.
;vod
+
;|pbg=...
:(Optional) Put a link to the VOD(s) here.
+
:(optional) The background color for the place column. This can be every CSS color, but the following color names has been added to the template for easy use:
:For secondary (tertiary, etc) VOD sources use '''vod2''', '''vod3''' etc.
+
:;|pbg=proceed
;interview
+
:;|pbg=up
:(Optional) Put a link to the interview(s) here.
+
::Use a light green background to indicate that this position is a proceeding place inside the group.
;recap
+
:;|pbg=drop
:(Optional) Put a link to the recap here.
+
:;|pbg=down
;date
+
::Use a light red background to indicate that this position will drop the player from the group.
:(Optional) Put the date here. It will display between the title row and the first [[Template:GroupTableSlot|group slot]].
+
;|win_m=...
;finished
+
;|tie_m=...
:(Optional) Put in "true" if the group has already finished.
+
;|lose_m=...
;stream
+
:(optional) Specify the number of '''matches''' the team has won/tied/lost. If not present the default value <code>0</code> is used.
:(Optional) Put in the TL stream name or - if not on TL - the URL to the stream.
+
;|win_r=...
;location
+
;|lose_r=...
:(Optional) Put in the location where the group is being played.
+
:(optional) Specify the number of '''rounds''' the team has won/lost (like in a Bo3 match). If not present no games score is shown.
== Examples ==
+
;|temp_p=...
=== #1 ===
+
:(optional) Additional points for the team.
<nowiki>{{Template:GroupTableStart|Group D|width=300px}}</nowiki>
+
;|points=...
<nowiki>{{Template:GroupTableEnd}}</nowiki>
+
:(optional) Manual number of '''points''' the team has. Does not depend to win_r and tie_r. If you want it to depend it to win_r and tie_r use |show_p= in GroupTableStart
  
This will result in the following table
+
== Example ==
  
{{GroupTableStart|Group D|width=300px}}
+
<nowiki>{{GroupTableStart| Group B }}
{{GroupTableEnd}}
+
{{GroupTableSlot| No arguments at all}}
 
+
{{GroupTableSlot| With place |place=3}}
=== #2 ===
+
{{GroupTableSlot| With matches |win_m=3|lose_m=1}}
<nowiki>{{GroupTableStart|Group A|width=300px
+
{{GroupTableSlot| With rounds |win_r=2|lose_r=1}}
|date=April 23, 2013 18:10 {{Abbr/KST}}
+
{{GroupTableSlot| With difference |diff=-8}}
|preview=http://www.teamliquid.net/forum/viewmessage.php?topic_id=301734#three
+
{{GroupTableSlot| With proceed background|bg=proceed}}
|lrthread=http://www.teamliquid.net/forum/viewmessage.php?topic_id=308196
+
{{GroupTableSlot| With drop background|bg=drop}}
|vod=http://www.gomtv.net/2012gsls1/vod/66754
+
{{GroupTableSlot| With pbg background|pbg=proceed}}
|interview=http://www.teamliquid.net/forum/viewmessage.php?topic_id=302021
+
{{GroupTableSlot| With everything |place=10|win_m=5|lose_m=1|win_r=10|lose_r=4}}
|recap=http://www.teamliquid.net/forum/viewmessage.php?topic_id=301952#one
 
}}
 
 
{{GroupTableEnd}}</nowiki>
 
{{GroupTableEnd}}</nowiki>
  
This will result in the following table
+
This will result in the following group table (showing all possibilities, only one scheme should be used through the whole group table).
  
{{GroupTableStart|Group A|width=300px
+
{{GroupTableStart| Group B }}
|date=April 23, 2013 18:10 {{Abbr/KST}}
+
{{GroupTableSlot| No arguments at all}}
|preview=http://www.teamliquid.net/forum/viewmessage.php?topic_id=301734#three
+
{{GroupTableSlot| With place |place=3}}
|lrthread=http://www.teamliquid.net/forum/viewmessage.php?topic_id=308196
+
{{GroupTableSlot| With matches |win_m=3|lose_m=1}}
|vod=http://www.gomtv.net/2012gsls1/vod/66754
+
{{GroupTableSlot| With rounds |win_r=2|lose_r=1}}
|interview=http://www.teamliquid.net/forum/viewmessage.php?topic_id=302021
+
{{GroupTableSlot| With difference |diff=-8}}
|recap=http://www.teamliquid.net/forum/viewmessage.php?topic_id=301952#one
+
{{GroupTableSlot| With proceed background|bg=proceed}}
}}
+
{{GroupTableSlot| With drop background|bg=drop}}
{{GroupTableEnd}}
+
{{GroupTableSlot| With pbg background|pbg=proceed}}
== Copy/Paste ==
+
{{GroupTableSlot| With everything |place=10|win_m=5|lose_m=1|win_r=10|lose_r=4}}
<nowiki>
 
{{GroupTableStart|Group A|width=415px|date=}}
 
{{GroupTableSlot|{{team/}} |place=1|win_m=|draw_m=|lose_m=|win_r=|lose_r=|diff=|pbg=up}}
 
{{GroupTableSlot|{{team/}} |place=2|win_m=|draw_m=|lose_m=|win_r=|lose_r=|diff=|pbg=up}}
 
{{GroupTableSlot|{{team/}} |place=3|win_m=|draw_m=|lose_m=|win_r=|lose_r=|diff=|pbg=down}}
 
{{GroupTableSlot|{{team/}} |place=4|win_m=|draw_m=|lose_m=|win_r=|lose_r=|diff=|pbg=down}}
 
 
{{GroupTableEnd}}
 
{{GroupTableEnd}}
{{MatchList|width=415px|title=Group A Matches
+
<noinclude>[[Category:Template Documentation Pages]]</noinclude>
|match1={{MatchMaps
 
|team1= |team2=
 
|date= |finished=
 
|hltv=
 
|cevo=
 
|winner=
 
|games1= |games2=
 
|map1= |map1win=
 
|walkover=
 
}}
 
|match2={{MatchMaps
 
|team1= |team2=
 
|date= |finished=
 
|hltv=
 
|cevo=
 
|winner=
 
|games1= |games2=
 
|map1= |map1win=
 
|walkover=
 
}}
 
|match3={{MatchMaps
 
|team1= |team2=
 
|date= |finished=
 
|hltv=
 
|cevo=
 
|winner=
 
|games1= |games2=
 
|map1= |map1win=
 
|walkover=
 
}}
 
|match4={{MatchMaps
 
|team1= |team2=
 
|date= |finished=
 
|hltv=
 
|cevo=
 
|winner=
 
|games1= |games2=
 
|map1= |map1win=
 
|walkover=
 
}}
 
|match5={{MatchMaps
 
|team1= |team2=
 
|date= |finished=
 
|hltv=
 
|cevo=
 
|winner=
 
|games1= |games2=
 
|map1= |map1win=
 
|walkover=
 
}}
 
|match6={{MatchMaps
 
|team1= |team2=
 
|date= |finished=
 
|hltv=
 
|cevo=
 
|winner=
 
|games1= |games2=
 
|map1= |map1win=
 
|walkover=
 
}}
 
}}
 
</nowiki>
 

Latest revision as of 03:35, 26 February 2017

This template is for a row inside a group table. It is used together with the templates {{GroupTableStart}} and {{GroupTableEnd}}

Parameters[edit]

The following parameters can be used in this template

first parameter
The first parameter in this template (technically the {{{1}}} field) is used as the team name. This can be even a template call like Epsilon eSports Icon.png Epsilon eSports.
|place=...
(optional) The place number to shown. If this parameter is not set the value X is used.
|bg=...
(optional) The background color for the slot. This can be every CSS color values, but the following color names has been added to the template for easy use:
|bg=proceed
|bg=up
Use a light green background to indicate that this position is a proceeding place inside the group.
|bg=staydown
Use a light yellow background to indicate that this player will stay at the same stage in the tournament or advance through a longer bracket or group stage.
|bg=drop
|bg=down
Use a light red background to indicate that this position will drop the player from the group.
|pbg=...
(optional) The background color for the place column. This can be every CSS color, but the following color names has been added to the template for easy use:
|pbg=proceed
|pbg=up
Use a light green background to indicate that this position is a proceeding place inside the group.
|pbg=drop
|pbg=down
Use a light red background to indicate that this position will drop the player from the group.
|win_m=...
|tie_m=...
|lose_m=...
(optional) Specify the number of matches the team has won/tied/lost. If not present the default value 0 is used.
|win_r=...
|lose_r=...
(optional) Specify the number of rounds the team has won/lost (like in a Bo3 match). If not present no games score is shown.
|temp_p=...
(optional) Additional points for the team.
|points=...
(optional) Manual number of points the team has. Does not depend to win_r and tie_r. If you want it to depend it to win_r and tie_r use |show_p= in GroupTableStart

Example[edit]

{{GroupTableStart| Group B }}
{{GroupTableSlot| No arguments at all}}
{{GroupTableSlot| With place |place=3}}
{{GroupTableSlot| With matches |win_m=3|lose_m=1}}
{{GroupTableSlot| With rounds |win_r=2|lose_r=1}}
{{GroupTableSlot| With difference |diff=-8}}
{{GroupTableSlot| With proceed background|bg=proceed}}
{{GroupTableSlot| With drop background|bg=drop}}
{{GroupTableSlot| With pbg background|pbg=proceed}}
{{GroupTableSlot| With everything |place=10|win_m=5|lose_m=1|win_r=10|lose_r=4}}
{{GroupTableEnd}}

This will result in the following group table (showing all possibilities, only one scheme should be used through the whole group table).

Group B
X. No arguments at all 0-0
3. With place 0-0
X. With matches 3-1
X. With rounds 0-0 2-1
X. With difference 0-0 -8
X. With proceed background 0-0
X. With drop background 0-0
X. With pbg background 0-0
10. With everything 5-1 10-4