Difference between revisions of "Template:LeagueTableSlotQwduel"

From QWiki
m (Trying to reinstate 'go=' feature)
m (Making empty |link= not fuck up page)
 
(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:7-{{#if:{{{go|}}}|1|0}}-{{#if:{{{win_g|}}}{{{lose_g|}}}|1|0}}-{{#if:{{{diff|}}}|1|0}}}}" style="width:185px; height:36px;text-align:{{{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 -->
 
{{#if: {{{go|}}} <!-- if go= is present, add a cell and show the arror -->
     | {{!}}style="width: 1em;"{{!}}<!-- go= with values "up", "same" and "down"
+
     | {{!}}style="width:24px;"{{!}}<!-- go= with values "up", "same" and "down"
 
     -->{{#switch: {{{go}}}
 
     -->{{#switch: {{{go}}}
 
         |up = {{PlaceUp}}
 
         |up = {{PlaceUp}}
Line 25: Line 25:
 
         |{{{go}}}
 
         |{{{go}}}
 
       }}
 
       }}
    |
 
 
}}
 
}}
 
|style="width:35px; white-space: pre; text-align:center;"|{{{gp|0}}}
 
|style="width:35px; white-space: pre; text-align:center;"|{{{gp|0}}}

Latest revision as of 07:40, 16 September 2021