Difference between revisions of "Template:GroupTableSlotSimple"
From QWiki
m (Removing old code) |
m (Ignore me styling live) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>|-{{#if: {{{bg|}}}|style="background-color:{{Color|{{{bg}}}}};"|}} | <includeonly>|-{{#if: {{{bg|}}}|style="background-color:{{Color|{{{bg}}}}};"|}} | ||
− | !style="width: 16px;{{#if: {{{pbg|}}}| background-color:{{Color|{{{pbg}}}}};|}}"|{{{place|X}}} | + | !style="width: 16px;{{#if: {{{pbg|}}}| background-color:{{Color|{{{pbg}}}}};|}}"|{{{place|X}}} |
− | |colspan="{{#expr:4-{{#if:{{{go|}}}|1|0}}-{{#if:{{{win_g|}}}{{{lose_g|}}}|1|0}}-{{#if:{{{diff|}}}|1|0}}}}" style="height:36px;text-align:{{{align|left}}};{{#if: {{{bg|}}}|background-color:{{Color|{{{bg}}}}};|}}" class="grouptableslot"| {{{1}}} | + | |colspan="{{#expr:4-{{#if:{{{go|}}}|1|0}}-{{#if:{{{win_g|}}}{{{lose_g|}}}|1|0}}-{{#if:{{{diff|}}}|1|0}}}}" style="height:36px;text-align:{{{align|left}}};{{#if: {{{bg|}}}|background-color:{{Color|{{{bg}}}}};|}}" class="grouptableslot"| {{{1}}}{{#if: {{{go|}}}| {{!}}style="width: 1em;"{{!}}{{#switch: {{{go}}} |
− | {{#if: {{{go|}}} | ||
− | |||
− | |||
|up = {{PlaceUp}} | |up = {{PlaceUp}} | ||
|up1 = {{PlaceUp}} +1 | |up1 = {{PlaceUp}} +1 | ||
Line 23: | Line 20: | ||
|down6 = {{PlaceDown}} -6 | |down6 = {{PlaceDown}} -6 | ||
|down7 = {{PlaceDown}} -7 | |down7 = {{PlaceDown}} -7 | ||
− | |{{{go}}} | + | |{{{go}}}}}}} |
− | |||
− | |||
− | }}}} | ||
</includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude> | </includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude> |
Latest revision as of 12:20, 2 June 2021
Documentation (view - edit)
Related templates:
- {{LeagueTableSlot2on2}}
- {{LeagueTableSlotNQR}}
- {{LeagueTableSlotNQR2}}
- {{GroupTableSlot}}
The code:
{{GroupTableSlotSimple|{{Player||flag=}} |place=x|bg=|pbg=up}}
Gives us:
GroupTableStart | |||||
---|---|---|---|---|---|
x | TBD | ||||
x | TBD |
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 player name. This can be even a template call like {{player}}.
- |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.
- |go=...
- (optional) If present an arrow indicating the movement inside the group will shown. The following values can be used:
- |go=up
- Shows the ⇗ arrow.
- |go=same
- Shows the ⇔ arrow.
- |go=down
- Shows the ⇘ arrow.
- |go=...
- Show the given content instead.
Adapted from Liquipedia