Template:GroupTableSlot: Difference between revisions
Jump to navigation
Jump to search
Removed "go" - may have also broken this |
|||
Line 1: | Line 1: | ||
<includeonly>|-{{#if: {{{bg|}}}|style="background-color:{{ | <includeonly>|-{{#if: {{{bg|}}}|style="background-color:{{#switch: {{{bg}}} | ||
!style="width: 16px;{{#if: {{{pbg|}}}| background-color:{{ | |proceed | ||
|colspan="{{#expr:4-{{#if:{{{ | |up = rgb(204,255,204) | ||
|<!-- | |stayup = rgb(238,255,170) | ||
-->{{#if: {{{ | |stay = rgb(255,255,153) | ||
|staydown = rgb(255,221,170) | |||
-->{{#if: {{{diff|}}} <!-- if diff= is present, show it as well | |drop | ||
|down = rgb(255,204,204) | |||
}} | |{{{bg}}} | ||
}};"|}} | |||
-->{{#if: {{{win_m|}}}{{{lose_m|}}}<!-- if win_m | !style="width: 16px;{{#if: {{{pbg|}}}| background-color:{{#switch: {{{pbg}}} | ||
|u | |||
|up | |||
|proceed = rgb(187,238,187) | |||
|su | |||
|stayup = rgb(221,238,187) | |||
|s | |||
</includeonly><noinclude>{{documentation}}[[Category:Tournament Page Formatting Templates]][[Category:Source Liquipedia]][[Category:Templates]]</noinclude> | |stay = rgb(238,238,136) | ||
|sd | |||
|staydown = rgb(238,204,153) | |||
|d | |||
|down | |||
|drop = rgb(238,187,187) | |||
|{{{pbg}}} | |||
}};|}}"|{{{place|X}}}. <!-- show place number in header cell --> | |||
|colspan="{{#expr:4-{{#if:{{{go|}}}|1|0}}-{{#if:{{{win_r|}}}{{{lose_r|}}}|1|0}}-{{#if:{{{diff|}}}|1|0}}}}" style="text-align:{{{align|left}}};" class="grouptableslot"| {{{1}}}<!-- show the team name with the correct colspan --> | |||
{{#if: {{{go|}}} <!-- if go= is present, add a cell and show the arror --> | |||
| {{!}}style="width: 16px;"{{!}}<!-- go= with values "up", "same" and "down" | |||
-->{{#switch: {{{go}}} | |||
|up = {{PlaceUp}} | |||
|same = {{PlaceSame}} | |||
|down = {{PlaceDown}} | |||
|{{{go}}} | |||
}} | |||
| | |||
}} | |||
|style="width: 32px; white-space: pre; text-align:center;"|'''{{{win_m|0}}}-{{#if:{{{tie_m|}}}|{{{tie_m|}}}-}}{{{lose_m|0}}}'''<!-- always show match scores --><!-- | |||
-->{{#if: {{{win_r|}}}{{{lose_r|}}} <!-- show games scores if present with win_r= or lose_r=--> | |||
| {{!}}{{!}}style="width:44px; white-space:pre; text-align:center;"{{!}}{{{win_r|0}}}-{{{lose_r|0}}}}}<!-- | |||
-->{{#if: {{{diff|}}} <!-- if diff= is present, show it as well --> | |||
| {{!}}{{!}}style="width:32px; white-space:pre; text-align:center;"{{!}}''{{{diff|}}}'' | |||
}} | |||
|style="width: 32px; white-space: pre; text-align:center;"|'''{{#if: {{{show_p|}}}'''<!-- if show_p present, show points --> | |||
| {{#if: {{{win_m|}}}{{{lose_m|}}}<!-- if win_m and lose_m is present, calculate points --> | |||
| {{#if: {{{tie_m|}}}<!-- if tie_m is present, include tie matches in calculation --> | |||
| <i>{{#expr: {{#expr: {{{win_m}}}*{{{win_p|3}}} }} + {{#expr:{{{tie_m}}}*{{{tie_p|1}}} }} }}p</i> | |||
| <i>{{#expr: {{{win_m}}}*{{{win_p|3}}} }}p</i> | |||
}} | |||
| <i>0p</i> | |||
}} | |||
}}</includeonly><noinclude>{{documentation}}[[Category:Tournament Page Formatting Templates]][[Category:Source Liquipedia]][[Category:Templates]]</noinclude> |
Revision as of 17:59, 30 July 2015
(view - edit) Documentation
This template is for a row inside a group table. It is used together with the templates {{GroupTableStart}} and {{GroupTableEnd}}
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
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
{{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 | 0p | |||
3. | With place | 0-0 | 0p | |||
X. | With matches | 3-1 | 9p | |||
X. | With rounds | 0-0 | 2-1 | 0p | ||
X. | With difference | 0-0 | -8 | 0p | ||
X. | With proceed background | 0-0 | 0p | |||
X. | With drop background | 0-0 | 0p | |||
X. | With pbg background | 0-0 | 0p | |||
10. | With everything | 5-1 | 10-4 | 15p |