Difference between revisions of "Template:LeagueTableSlot2on2"
From QWiki
m (Baked in TeamAbbr into table row) |
m (Adjusting padding) |
||
(One intermediate revision 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;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)
Related templates:
- {{LeagueTableSlot2on2}}
- {{LeagueTableSlotNQR}}
- {{LeagueTableSlotNQR2}}
- {{GroupTableSlot}}
Table row showing #, 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. | TeamXCobalt & Snoopy | 4 | 2 | 16 | 7 | 16 |