Difference between revisions of "Template:GroupTableSlotSimple"

From QWiki
(Creating first version)
 
m (Removing old code)
Line 26: Line 26:
 
       }}
 
       }}
 
     |
 
     |
}}
+
}}}}
|{{#if: {{{win_g|}}}{{{lose_g|}}} <!-- show games scores if present with win_g= or lose_g=
 
-->| {{!}}{{!}}<!--class="grouptable-games" -->style="width: 35px; white-space: pre; text-align:center;"{{!}}{{{win_g|0}}}-{{{lose_g|0}}}}}<!--
 
-->{{#if: {{{diff|}}} <!-- if diff= is present, show it as well
 
-->| {{!}}{{!}}<!--class="grouptable-games" -->style="width: 35px; white-space: pre; text-align: center;"{{!}}''{{{diff|}}}''
 
}}{{#ifeq:{{lc:{{#var:show_points|}}}}|true<!-- if show_p present, show points 
 
-->| {{!}}{{!}}<!--class="grouptable-points"-->style="width: 32px; white-space: pre; text-align:center;"{{!}}<!--
 
-->{{#if: {{{win_m|}}}{{{lose_m|}}}<!-- if win_m or lose_m is present, calculate points
 
  -->|  {{#if: {{{tie_m|}}}<!-- if tie_m is present, include tie matches in calculation 
 
  -->| '''<i>{{#expr: ({{{win_m}}}*{{#var:win_points|3}}) + ({{#if:{{{tie_m|}}}|{{{tie_m}}}|0}}*{{#var:tie_points|1}}) + {{#if:{{{temp_p|}}}|{{{temp_p}}}|0}}}}p</i><!--
 
  -->}}<!--
 
  -->| '''<i>0p</i>'''<!--
 
  -->}}<!--
 
-->}}
 
 
</includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude>
 
</includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude>

Revision as of 12:09, 2 June 2021

Documentation (view - edit)

Table row showing #, TBD team/player only. It is used together with the templates {{GroupTableStart}} and {{GroupTableEnd}}

The code:

{{GroupTableSlotSimple|{{Player||flag=}} |place=x|bg=|pbg=up}}

Gives us:

GroupTableStart
x TBD TBD

}}

x TBD 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