Difference between revisions of "Template:ETF2LGroupTableSlot"

From comp.tf
Jump to navigation Jump to search
m (Added a pull)
 
(7 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
                                   |up = rgb(204,255,204)
 
                                   |up = rgb(204,255,204)
 
                                   |stay = rgb(255,255,170)
 
                                   |stay = rgb(255,255,170)
 +
                                  |relegated
 +
                                  |relegatedplayoffs
 +
                                  |rplayoffs
 +
                                  |rp = rgb(255,221,170)
 
                                   |drop
 
                                   |drop
 +
                                  |relegated
 
                                   |down = rgb(255,204,204)
 
                                   |down = rgb(255,204,204)
                                  |pull = rgb(222,248,143)
 
 
                                   |{{{bg}}}
 
                                   |{{{bg}}}
 
                             }};"|}}
 
                             }};"|}}
| class="centered" | {{#if: {{{pos|}}}|{{{pos}}}|X}}.
+
!style="width: 16px;{{#if: {{{pbg|}}}| background-color:{{#switch: {{{pbg}}}
 +
                                  |u
 +
                                  |up
 +
                                  |proceed = rgb(187,238,187)
 +
                                  |su
 +
                                  |stayup = rgb(221,238,187)
 +
                                  |s
 +
                                  |stay = rgb(238,238,136)
 +
                                  |sd
 +
                                  |staydown = rgb(238,204,153)
 +
                                  |relegated
 +
                                  |relegatedplayoffs
 +
                                  |rplayoffs
 +
                                  |rp = rgb(255,221,170)
 +
                                  |d
 +
                                  |down
 +
                                  |drop = rgb(238,187,187)
 +
                                  |{{{pbg}}}
 +
                            }};|}}"|{{{pos|X}}}.
 
| {{#if: {{{team|}}}|{{{team}}}|{{Abbr|TBD|To Be Decided}} }}
 
| {{#if: {{{team|}}}|{{{team}}}|{{Abbr|TBD|To Be Decided}} }}
 
| class="centered" | {{#expr: {{#if:{{{win|}}}|{{{win}}}|0}} + {{#if:{{{lose|}}}|{{{lose}}}|0}} + {{#if:{{{gcw|}}}|{{{gcw}}}|0}} + {{#if:{{{gcl|}}}|{{{gcl}}}|0}} }}
 
| class="centered" | {{#expr: {{#if:{{{win|}}}|{{{win}}}|0}} + {{#if:{{{lose|}}}|{{{lose}}}|0}} + {{#if:{{{gcw|}}}|{{{gcw}}}|0}} + {{#if:{{{gcl|}}}|{{{gcl}}}|0}} }}
Line 15: Line 37:
 
| class="centered" | {{#if: {{{gcw|}}}|{{{gcw}}} }}
 
| class="centered" | {{#if: {{{gcw|}}}|{{{gcw}}} }}
 
| class="centered" | {{#if: {{{gcl|}}}|{{{gcl}}} }}
 
| class="centered" | {{#if: {{{gcl|}}}|{{{gcl}}} }}
| class="centered" | {{#if: {{{pen|}}}|<span style="color: red;">{{{pen}}}</span>{{#if:{{{notes|}}}|&nbsp;<sup>{{{notes|&nbsp;}}}</sup>}} }}
+
| class="centered" {{#if:{{{nopen|}}}|style="display:none"|}} | {{#if: {{{pen|}}}|<span style="color: red;">{{{pen}}}</span>{{#if:{{{notes|}}}|&nbsp;<sup>{{{notes|&nbsp;}}}</sup>}} }}
 
| class="centered" | {{#expr: {{#if:{{{win|}}}|{{#expr: {{{win}}}*3 }}|0}} + {{#if:{{{gcw|}}}|{{#expr: {{{gcw}}}*2 }}|0}} + {{#if:{{{gcl|}}}|{{{gcl}}}|0}} + {{#if:{{{pen|}}}|{{{pen}}}|0}} }}
 
| class="centered" | {{#expr: {{#if:{{{win|}}}|{{#expr: {{{win}}}*3 }}|0}} + {{#if:{{{gcw|}}}|{{#expr: {{{gcw}}}*2 }}|0}} + {{#if:{{{gcl|}}}|{{{gcl}}}|0}} + {{#if:{{{pen|}}}|{{{pen}}}|0}} }}
 
</includeonly><noinclude>{{documentation}}[[Category:Tournament Page Formatting Templates]][[Category:ETF2L Templates]][[Category:Templates]]</noinclude>
 
</includeonly><noinclude>{{documentation}}[[Category:Tournament Page Formatting Templates]][[Category:ETF2L Templates]][[Category:Templates]]</noinclude>

Latest revision as of 21:51, 5 February 2017

(view - edit) Documentation

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

Parameters

The following parameters can be used in this template

|team=...
Team name. This can be even a template call like Epsilon eSports Icon.png Epsilon eSports. If left empty, the default value TBD is used.
|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=stay
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.
|bg=pull
Use a grey background if the team pull out for any reason.
|win=...
|lose=...
Specify the number of matches the player has won/lost. If not present the default value 0.
|gcw=...
|gcl=...
(Optional) Specify the number of Golden Cap Wins and Golden Cap Loses
|pen=...
(Optional) Specify the number of penalties
|notes=...
(Optional) Specify the reason for a penalty

Example

{{ETF2LGroupTableStart| Group B }}
{{ETF2LGroupTableSlot| Nothing }}
{{ETF2LGroupTableSlot| With position |pos=3}}
{{ETF2LGroupTableSlot| With team |team=Barry's Bobbing Bats}}
{{ETF2LGroupTableSlot| With match scores |win=2|lose=1|gcw=1|gcl=5}}
{{ETF2LGroupTableSlot| With penalties|pen=-3}}
{{ETF2LGroupTableSlot| With proceed background|bg=proceed}}
{{ETF2LGroupTableSlot| With drop background|bg=drop}}
{{ETF2LGroupTableSlot| With everything |pos=3 |team=Barry's Bobbing Bats |win=2|lose=1|gcw=1|gcl=5 |pen=-3 |bg=drop}}
{{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
Team Pld W L GCW GCL Pen Pts
X. TBD 0 0 0 0
3. TBD 0 0 0 0
X. Barry's Bobbing Bats 0 0 0 0
X. TBD 9 2 1 1 5 13
X. TBD 0 0 0 -3 -3
X. TBD 0 0 0 0
X. TBD 0 0 0 0
3. Barry's Bobbing Bats 9 2 1 1 5 -3 1 10