Difference between revisions of "Template:ETF2LGroupTableSlot"

From comp.tf
Jump to navigation Jump to search
m
m (Fixed formulas to not display an error due to no value of a certain kind being found)
Line 8: Line 8:
 
                             }};"|}}
 
                             }};"|}}
 
| class="centered" |{{{place|X}}}. <!-- show place number in header cell -->
 
| class="centered" |{{{place|X}}}. <!-- show place number in header cell -->
| class="centered" |{{{team}}}
+
| class="centered" |{{{team|TBD}}}
|style="white-space: pre; text-align:center;"| {{#expr: {{{win}}} + {{{lost}}} + {{{gcw}}} + {{{gcl}}} }}
+
|style="white-space: pre; text-align:center;"| {{#expr: {{#if:{{{win|}}}|{{{win}}} +}} {{#if:{{{lost|}}}|{{{lost}}} +}} {{#if:{{{gcw|}}}|{{{gcw}}} }} + {{#if:{{{gcl|}}}|{{{gcl}}} }} }}
 
| class="centered" | {{#if: {{{win|}}}|{{{win}}}|0}}
 
| class="centered" | {{#if: {{{win|}}}|{{{win}}}|0}}
 
| class="centered" | {{#if: {{{lost|}}}|{{{lost}}}|0}}
 
| class="centered" | {{#if: {{{lost|}}}|{{{lost}}}|0}}
Line 15: Line 15:
 
| 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: {{{pen|}}}|<span style="color: red;">{{{pen}}}</span>{{#if:{{{notes|}}}|&nbsp;<sup>{{{notes|&nbsp;}}}</sup>}} }}
| class="centered" | {{#expr: {{#expr: {{{win}}}*3 }} + {{#if:{{{gcw|}}}|{{#expr: {{{gcw}}}*2 }} +}} {{{gcl}}} + {{{pen}}} }}
+
| class="centered" | {{#expr: {{#expr: {{{win}}}*3 }} + {{#if:{{{gcw|}}}|{{#expr: {{{gcw}}}*2 }} +}} {{#if:{{{gcl|}}}|{{{gcl}}} +}} {{#if:{{{pen|}}}|{{{pen}}} }} }}
 
</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>

Revision as of 21:02, 30 July 2015

(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 Expression error: Missing operand for +. 0 0 Expression error: Unexpected < operator.
X. TBD Expression error: Missing operand for +. 0 0 Expression error: Unexpected < operator.
X. Barry's Bobbing Bats Expression error: Missing operand for +. 0 0 Expression error: Unexpected < operator.
X. TBD 8 2 0 1 5 Expression error: Missing operand for +.
X. TBD Expression error: Missing operand for +. 0 0 -3 Expression error: Unexpected < operator.
X. TBD Expression error: Missing operand for +. 0 0 Expression error: Unexpected < operator.
X. TBD Expression error: Missing operand for +. 0 0 Expression error: Unexpected < operator.
X. Barry's Bobbing Bats 8 2 0 1 5 -3 1 10