Editing Template:GroupTableSlot
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.
Latest revision | Your text | ||
Line 24: | Line 24: | ||
|{{{pbg}}} | |{{{pbg}}} | ||
}};|}}"|{{{place|X}}}. <!-- show place number in header cell --> | }};|}}"|{{{place|X}}}. <!-- show place number in header cell --> | ||
− | |colspan="{{#expr:4-{{#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 --> | + | |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 --><!-- | |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=--> | -->{{#if: {{{win_r|}}}{{{lose_r|}}} <!-- show games scores if present with win_r= or lose_r=--> | ||
Line 30: | Line 40: | ||
-->{{#if: {{{diff|}}} <!-- if diff= is present, show it as well --> | -->{{#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;"{{!}}''{{{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: {{{win_m|}}}{{{lose_m|}}}<!-- if win_m | + | | {{#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> |