Difference between revisions of "Template:LeagueTableSlotNQR"

From QWiki
m (Added |link=true/false/url/abbr functionality)
m (Bolding Team column)
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}}}}};|}}"| {{#switch: {{{link}}}|false={{{1}}}|true=[[{{{1}}}]]|abbr={{abbr|{{{1|}}}|{{{abbr}}}}}|[[{{{link}}}|{{{1}}}]]|[[{{{1}}}]]}}
+
|style="width:185px;text-align:left;{{#if:{{{bg|}}}|background-color:{{Color|{{{bg}}}}};|}}"| {{#switch: {{{link}}}|false='''{{{1}}}'''|true='''[[{{{1}}}]]'''|abbr='''{{abbr|{{{1|}}}|{{{abbr}}}}}'''|[[{{{link}}}|{{{1}}}]]|'''[[{{{1}}}]]'''}}
 
|style="width:35px; text-align:center;"|{{{2}}}
 
|style="width:35px; text-align:center;"|{{{2}}}
 
|style="width:35px; white-space: pre; text-align:center;"|{{{w|0}}}
 
|style="width:35px; white-space: pre; text-align:center;"|{{{w|0}}}

Revision as of 10:12, 16 March 2021

Documentation (view - edit)

Table row showing #, TBD team, prefix, M, 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:

{{LeagueTableSlotNQR|Unforbidden|flag=se|link=|UF|place=1|w=11|l=13|mw=32|ml=33|p=37|bg=up}}

Gives us:

# Team Prefix W L MW ML Points
1. Unforbidden UF 11 13 32 33 0