Difference between revisions of "Template:Infobox basketball final"

From blackwiki
Jump to navigation Jump to search
imported>Infinite mission
imported>Bagumba
(champion should be in bold, please use the sandbox test cases)
Line 9: Line 9:
 
<table style="width:100%; background:transparent; text-align: center;">
 
<table style="width:100%; background:transparent; text-align: center;">
 
<tr><th>Team</th><th>Coach</th><th>Wins</th></tr>
 
<tr><th>Team</th><th>Coach</th><th>Wins</th></tr>
<tr class="vcard" style="{{#ifexpr:{{#if:{{{champion|}}}|0|{{ifempty|{{{team_A_games|}}}|0}} > {{ifempty|{{{team_B_games|}}}|0}} }}|font-weight:bold;}}">
+
<tr class="vcard" style="{{#ifexpr:{{#if:{{{champion|}}}|1|{{ifempty|{{{team_A_games|}}}|0}} > {{ifempty|{{{team_B_games|}}}|0}} }}|font-weight:bold;}}">
 
<td class="fn org" style="text-align:left;">{{{team_A|{{{champion}}}}}}</td>
 
<td class="fn org" style="text-align:left;">{{{team_A|{{{champion}}}}}}</td>
 
<td class="agent">{{{team_A_coach|{{{champion_coach}}}}}}</td>
 
<td class="agent">{{{team_A_coach|{{{champion_coach}}}}}}</td>

Revision as of 03:01, 14 June 2019

Template documentation[view] [edit] [history] [purge]

Template:Parameter names example


Usage

{{Infobox basketball final
| league = REQUIRED
| year = REQUIRED
| image = 
| image_size = 
| image_alt = 
| caption = 
<!-- CHAMPION/RUNNERUP -->
| champion = 
| champion_coach = 
| champion_games = 
| runnerup = 
| runnerup_coach = 
| runnerup_games = 
<! -- TEAM A/TEAM B -->
| team_A = 
| team_A_coach =
| team_A_games = 
| team_B = 
| team_B_coach = 
| team_B_games = 

| dates = 
| MVP = 
| HOFers = 

| ECF result = 
| WCF result = 
| PF result = <!-- For WNBL -->
}}