Difference between revisions of "Template:LeagueTableSlotQwduel"
From QWiki
m (Row height tweak) |
m (Making empty |link= not fuck up page) |
||
(6 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}}}. | ||
− | |style="width:185px;height:36px;text-align:left;{{#if:{{{bg|}}}|background-color:{{Color|{{{bg}}}}};|}}"|{{team|{{{1}}}|flag={{{flag}}}|link={{{link}}}}} | + | |colspan="{{#expr:2-{{#if:{{{go|}}}|1|0}}}}" style="width:185px;height:36px;text-align:{{{align|left}}};{{#if:{{{bg|}}}|background-color:{{Color|{{{bg}}}}};|}}"|{{team|{{{1}}}|flag={{{flag}}}|link={{#if:{{{link|}}}|{{{link|}}}|}}}} |
+ | {{#if: {{{go|}}} <!-- if go= is present, add a cell and show the arror --> | ||
+ | | {{!}}style="width:24px;"{{!}}<!-- go= with values "up", "same" and "down" | ||
+ | -->{{#switch: {{{go}}} | ||
+ | |up = {{PlaceUp}} | ||
+ | |up1 = {{PlaceUp}} +1 | ||
+ | |up2 = {{PlaceUp}} +2 | ||
+ | |up3 = {{PlaceUp}} +3 | ||
+ | |up4 = {{PlaceUp}} +4 | ||
+ | |up5 = {{PlaceUp}} +5 | ||
+ | |up6 = {{PlaceUp}} +6 | ||
+ | |up7 = {{PlaceUp}} +7 | ||
+ | |same = {{PlaceSame}} | ||
+ | |same0 = {{PlaceSame}} – | ||
+ | |down = {{PlaceDown}} | ||
+ | |down1 = {{PlaceDown}} -1 | ||
+ | |down2 = {{PlaceDown}} -2 | ||
+ | |down3 = {{PlaceDown}} -3 | ||
+ | |down4 = {{PlaceDown}} -4 | ||
+ | |down5 = {{PlaceDown}} -5 | ||
+ | |down6 = {{PlaceDown}} -6 | ||
+ | |down7 = {{PlaceDown}} -7 | ||
+ | |{{{go}}} | ||
+ | }} | ||
+ | }} | ||
|style="width:35px; white-space: pre; text-align:center;"|{{{gp|0}}} | |style="width:35px; white-space: pre; text-align:center;"|{{{gp|0}}} | ||
|style="width:35px; white-space: pre; text-align:center;"|{{{w|0}}} | |style="width:35px; white-space: pre; text-align:center;"|{{{w|0}}} | ||
|style="width:35px; white-space: pre; text-align:center;"|{{{l|0}}} | |style="width:35px; white-space: pre; text-align:center;"|{{{l|0}}} | ||
− | |style="width:35px; white-space: pre; text-align:center;"|{{{%| | + | |style="width:35px; white-space: pre; text-align:center;"|{{{%|}}}% |
|style="width:35px; white-space: pre; text-align:center;"|{{{mw|0}}} | |style="width:35px; white-space: pre; text-align:center;"|{{{mw|0}}} | ||
|style="width:35px; white-space: pre;text-align:center;"|{{{ml|0}}} | |style="width:35px; white-space: pre;text-align:center;"|{{{ml|0}}} | ||
|style="width:35px; white-space: pre;text-align:center;"|{{{md|0}}} | |style="width:35px; white-space: pre;text-align:center;"|{{{md|0}}} | ||
</includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude> | </includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude> |