Difference between revisions of "Template:LeagueTableSlot/doc"

From QWiki
(Created page with "This template is for a row inside a group table. It is used together with the templates {{tl|LeagueTableStart}} and {{tl|LeagueTableEnd}} == Parameters == The following para...")
 
m
 
(4 intermediate revisions by the same user not shown)
Line 25: Line 25:
 
:;|pbg=down
 
:;|pbg=down
 
::Use a light red background to indicate that this position will drop the team from the group.
 
::Use a light red background to indicate that this position will drop the team from the group.
;|go=...
 
:(optional) If present an arrow indicating the movement inside the group will shown. The following values can be used:
 
:;|go=up
 
::Shows the {{PlaceUp}} arrow.
 
:;|go=same
 
::Shows the {{PlaceSame}} arrow.
 
:;|go=down
 
::Shows the {{PlaceDown}} arrow.
 
:;|go=...
 
 
::Show the given content instead.
 
::Show the given content instead.
 
;|win_m=...
 
;|win_m=...
Line 40: Line 31:
 
;|win_g=...
 
;|win_g=...
 
;|lose_g=...
 
;|lose_g=...
:(optional) Specify the number of '''maps''' the team has won/lost (like in a Bo3 match). If not present no games score is shown.
+
:Specify the number of '''maps''' the team has won/lost (like in a Bo3 match). If not present no games score is shown.
 
== Example ==
 
== Example ==
  
  <nowiki>{{LeagueTableStart| Group B }}
+
  <nowiki>
{{LeagueTableSlot| No arguments at all}}
+
{{LeagueTableStart}}
{{LeagueTableSlot| With place |place=3}}
+
{{LeagueTableSlot|Player/Team |place=1|win_m=5|lose_m=1|win_g=10|lose_g=4|win_f=445|lose_f=132|bg=up}}
{{LeagueTableSlot| With matches |win_m=3|lose_m=1}}
+
{{LeagueTableEnd}}</nowiki>
{{GroupTableSlot| With games |win_g=2|lose_g=1}}
 
{{GroupTableSlot| With arrow |go=up}}
 
{{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|go=same|win_m=5|lose_m=1|win_g=10|lose_g=4|diff=+4}}
 
{{GroupTableEnd}}</nowiki>
 
  
This will result in the following group table (showing all possibilities, only one scheme should be used through the whole group table).
+
This will result in the following group table:
  
{{GroupTableStart| Group B }}
+
{{LeagueTableStart}}
{{GroupTableSlot| No arguments at all}}
+
{{LeagueTableSlot|Player/Team |place=1|win_m=5|lose_m=1|win_g=10|lose_g=4|win_f=445|lose_f=132|bg=up}}
{{GroupTableSlot| With place |place=3}}
+
{{LeagueTableEnd}}
{{GroupTableSlot| With matches |win_m=3|lose_m=1}}
+
 
{{GroupTableSlot| With games |win_g=2|lose_g=1}}
+
 
{{GroupTableSlot| With arrow |go=up}}
+
Adapted from [http://wiki.teamliquid.net/starcraft2/Template:GroupTableSlot Liquipedia]
{{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|go=same|win_m=5|lose_m=1|win_g=10|lose_g=4|diff=+4}}
 
{{GroupTableEnd}}
 

Latest revision as of 05:51, 2 May 2017

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

Parameters

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 Europe Slackers.
|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=drop
|bg=down
Use a light red background to indicate that this position will drop the team 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 team from the group.
Show the given content instead.
|win_m=...
|lose_m=...
(optional) Specify the number of matches the team has won/lost. If not present the default value 0 is used.
|win_g=...
|lose_g=...
Specify the number of maps the team has won/lost (like in a Bo3 match). If not present no games score is shown.

Example

{{LeagueTableStart}}
{{LeagueTableSlot|Player/Team |place=1|win_m=5|lose_m=1|win_g=10|lose_g=4|win_f=445|lose_f=132|bg=up}}
{{LeagueTableEnd}}

This will result in the following group table:

# Team Games Maps Frags Points
Tot Won Lost Won Lost For Against Diff
1. Player/Team 6 5 1 10 4 445 132 313 16


Adapted from Liquipedia