Difference between revisions of "Template:Infobox basketball final"

From blackwiki
Jump to navigation Jump to search
imported>Infinite mission
(Trim the infobox to only appropriate information)
imported>Sabbatino
(Rvt undiscussed change)
Line 8: Line 8:
 
| data1 =
 
| data1 =
 
<table style="width:100%; background:transparent; text-align: center;">
 
<table style="width:100%; background:transparent; text-align: center;">
<tr><th>Team</th><th>Wins</th></tr>
+
<tr><th>Team</th><th>Coach</th><th>Wins</th></tr>
<tr class="vcard" style="{{#ifexpr:{{#if:{{{champion|}}}|1|{{ifempty|{{{team_A_games|}}}|0}} > {{ifempty|{{{team_B_games|}}}|0}} }}|font-weight:bold;}}">
+
<tr class="vcard" style="{{#ifexpr:{{#if:{{{champion|}}}|1|{{ifempty|{{{west_games|}}}|0}} > {{ifempty|{{{east_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;">{{{west_team|{{{champion}}}}}}</td>
<td>{{{team_A_games|{{{champion_games}}}}}}</td>
+
<td class="agent">{{{west_coach|{{{champion_coach}}}}}}</td>
 +
<td>{{{west_games|{{{champion_games}}}}}}</td>
 
</tr>
 
</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|}}}|0|{{ifempty|{{{east_games|}}}|0}} > {{ifempty|{{{west_games|}}}|0}} }}|font-weight:bold;}}">
<td class="fn org" style="text-align:left;">{{{team_B|{{{runnerup}}}}}}</td>
+
<td class="fn org" style="text-align:left;">{{{east_team|{{{runnerup}}}}}}</td>
<td>{{{team_B_games|{{{runnerup_games}}}}}}</td>
+
<td class="agent">{{{east_coach|{{{runnerup_coach}}}}}}</td>
 +
<td>{{{east_games|{{{runnerup_games}}}}}}</td>
 
</tr></table>
 
</tr></table>
  
Line 27: Line 29:
 
}}
 
}}
 
| data3 = {{{MVP|}}}
 
| data3 = {{{MVP|}}}
 +
 +
| label4 = Television
 +
| data4 = {{{television|}}}
 +
 +
| label5 = {{#switch: {{{league|}}}|
 +
| WNBA | NBA = [[List of {{{league}}} Finals broadcasters|Announcers]]
 +
| #default = Announcers
 +
}}
 +
| data5 = {{{announcers|}}}
 +
 +
| label6 = Radio network
 +
| data6 = {{{radio_network|}}}
 +
 +
| label7 = Announcers
 +
| data7 = {{{radio_announcers|}}}
 +
 +
| header8 = {{#if:{{{referees_1|}}}{{{referees_2|}}}{{{referees_3|}}}{{{referees_4|}}}{{{referees_5|}}}{{{referees_6|}}}{{{referees_7|}}} |[[Official (basketball)|Referees]]}}
 +
| data9 = {{#if:{{{referees_1|}}}{{{referees_2|}}}{{{referees_3|}}}{{{referees_4|}}}{{{referees_5|}}}{{{referees_6|}}}{{{referees_7|}}}
 +
|{{Infobox|subbox=yes
 +
| labelstyle = font-weight:normal; white-space:nowrap;
 +
| label1 = Game 1:
 +
| data1 = {{{referees_1|}}}
 +
 +
| label2 = Game 2:
 +
| data2 = {{{referees_2|}}}
 +
 +
| label3 = Game 3:
 +
| data3 = {{{referees_3|}}}
 +
 +
| label4 = Game 4:
 +
| data4 = {{{referees_4|}}}
 +
 +
| label5 = Game 5:
 +
| data5 = {{{referees_5|}}}
 +
 +
| label6 = Game 6:
 +
| data6 = {{{referees_6|}}}
 +
 +
| label7 =  {{#switch: {{{league|}}}|
 +
| NBA = [[List of NBA game sevens|Game 7]]
 +
| #default = Game 7:
 +
}}
 +
| data7 = {{{referees_7|}}}
 +
}}}}
 +
 +
| label10 = [[Naismith Memorial Basketball Hall of Fame|Hall of Famers]]
 +
| data10 = {{{HOFers|}}}
 +
 +
| label11 ={{#switch: {{{league}}}|
 +
| NBA = [[NBA Conference Finals#Eastern_Division.2FConference|Eastern Finals]]
 +
| WNBA = [[Eastern Conference (WNBA)|Eastern Finals]]
 +
| #default = Eastern Finals
 +
}}
 +
| data11 = {{{ECF result|}}}
 +
 +
| label12 = {{#switch: {{{league}}}|
 +
| NBA = [[NBA Conference Finals#Western_Division.2FConference|Western Finals]]
 +
| WNBA = [[Western Conference (WNBA)|Western Finals]]
 +
| #default = Western Finals
 +
}}
 +
| data12 = {{{WCF result|}}}
 +
 +
| label13 = [[WNBL Finals|Preliminary Final]]
 +
| data13 = {{{PF result|}}}
  
 
| belowstyle = background:#eee;
 
| belowstyle = background:#eee;

Revision as of 03:47, 13 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 -->
}}