Difference between revisions of "Template:LeagueTableSlot2on2"

From QWiki
m (Adjusting height)
m (Adjusting padding)
 
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}}}}};|}}"|{{TeamAbbr|{{{1}}}|flag={{{flag}}}|link={{{link}}}|{{{2}}} }}
+
|style="width:185px;height:36px;padding-left:12px;text-align:left;{{#if:{{{bg|}}}|background-color:{{Color|{{{bg}}}}};|}}"|{{TeamAbbr|{{{1}}}|flag={{{flag}}}|link={{{link}}}|{{{2}}} }}
 
|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}}}

Latest revision as of 08:11, 29 March 2021

Documentation (view - edit)

Table row showing #, TBD team, team lineup, W, L, MW, ML, P. All is crude, no math behind.

Supports coloring of either # cell with |pbg= and/or entire row with |bg=. Refer to {{Color}} for available colors.

The code:

{{LeagueTableSlot2on2|TeamX|flag=cl|Cobalt & Snoopy |place=1|w=4|l=2|mw=16|ml=7|p=16|pbg=1|bg=}}

Gives us:

# Team W L MW ML P
1. Chile TeamXCobalt & Snoopy 4 2 16 7 16