Difference between revisions of "Template:LeagueTableSlot2on2"

From QWiki
(Creating first version)
 
m (Baked in TeamAbbr into table row)
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;text-align:left;{{#if:{{{bg|}}}|background-color:{{Color|{{{bg}}}}};|}}"|{{TeamAbbr|{{{1}}}|flag={{{flag}}}|link={{{link}}}|{{{2}}}}}
+
|style="width:185px;text-align:left;{{#if:{{{bg|}}}|background-color:{{Color|{{{bg}}}}};|}}"|{{TeamAbbr|{{{1}}}|flag={{{flag}}}|link={{{link}}}|{{{2}}} }}
|style="width:35px; text-align:center;"|
 
 
|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}}}

Revision as of 07:27, 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