Difference between revisions of "Template:Infobox NBA season"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
Line 1: Line 1:
{| class="toccolours vcard" style="float: right; clear: right; margin: 0 0 1em 1em; width: 23em;"
+
{{infobox
|- style="text-align:center;"
+
| bodyclass = vcard
! colspan="2" style="text-align: center; background-color: {{{Color|LightSteelBlue}}};"  | {{auto link|{{#expr:{{{end_year|2009}}}-1}}–{{padleft:{{#expr:{{{end_year|2009}}} mod 100}}|2|0}} {{{league|NBA}}} season|{{#ifeq:{{{end_year}}}|2000|1999–2000|{{#expr:{{{end_year|2009}}}-1}}–{{padleft:{{#expr:{{{end_year|2009}}} mod 100}}|2|0}}}}}}&nbsp;<span class="fn org">[[{{{team}}}]]</span> season
+
| abovestyle = font-size:110%; background-color: {{{Color|LightSteelBlue}}}
 +
| above = {{auto link|{{#expr:{{{end_year|2009}}}-1}}–{{padleft:{{#expr:{{{end_year|2009}}} mod 100}}|2|0}} {{{league|NBA}}} season|{{#ifeq:{{{end_year}}}|2000|1999–2000|{{#expr:{{{end_year|2009}}}-1}}–{{padleft:{{#expr:{{{end_year|2009}}} mod 100}}|2|0}}}}}}&nbsp;<span class="fn org">[[{{{team}}}]]</span> season
  
 
<!-- Championships (if any) -->
 
<!-- Championships (if any) -->
|-
+
| subheader1 = {{#if:{{{ChampionshipWin|}}}|<div style="width:100%; background:#FF9900; font-weight:bold;">[[NBA]] Champions</div>}}
{{#if:{{{ChampionshipWin|}}}|
+
| subheader2 = {{#if:{{{StandingsTop|}}}|<div style="width:100%; background:#FFAA00; font-weight:bold;">NBA Standings Winner</div>}}
{{!}} colspan="2" style="text-align:center;" bgcolor=#FF9900 {{!}} '''[[NBA]] Champions'''}}
+
| subheader3 = {{#if:{{{ConferenceWin|}}}|<div style="width:100%; background:#FFBB00; font-weight:bold;">{{{Conference|}}} Conference Champions</div>}}
|-
+
| subheader4 = {{#if:{{{DivisionWin|}}}|<div style="width:100%; background:#FFCC00; font-weight:bold;">{{{Division|}}} Division Champions</div>}}
{{#if:{{{StandingsTop|}}}|
 
{{!}} colspan="2" style="text-align:center;" bgcolor=#FFAA00 {{!}} '''NBA Standings Winner'''}}
 
|-
 
{{#if:{{{ConferenceWin|}}}|
 
{{!}} colspan="2" style="text-align:center;" bgcolor=#FFBB00 {{!}} '''{{{Conference|}}} Conference Champions'''}}
 
|-
 
{{#if:{{{DivisionWin|}}}|
 
{{!}} colspan="2" style="text-align:center;" bgcolor=#FFCC00 {{!}} '''{{{Division|}}} Division Champions'''}}
 
 
<!-- Division, Conference -->
 
<!-- Division, Conference -->
{{#if:{{{misc|}}}|
+
| subheader5 = {{#if:{{{misc|}}}|''<span style="font-size:88%:>{{{misc}}}</span>''}}
{{!}}-
+
 
{{!}} align=center colspan=2 {{!}} ''<small>{{{misc}}}</small>''
+
| label1 = Head coach
}}
+
| class1 = agent
|-
+
| data1 = {{{coach}}}
| '''Head coach''' || <span class="agent">{{{coach}}}</span>
+
 
{{#if:{{{gm<includeonly>|</includeonly>}}}|
+
| label2 = General manager
{{!}}-
+
| data2 = {{{gm<includeonly>|</includeonly>}}}
{{!}} style="vertical-align: top;" {{!}} '''General manager''' {{!}}{{!}} {{{gm}}}
+
 
|{{!}}-}}
+
| label3 = Owner(s)
|-
+
| data3 = {{{owners<includeonly>|</includeonly>}}}
{{#if:{{{owners<includeonly>|</includeonly>}}}|
+
 
{{!}}-
+
| label4 = Arena
{{!}} style="vertical-align: top;" {{!}} '''Owner(s)''' {{!}}{{!}} {{{owners}}}
+
| class4 = label
|{{!}}-}}
+
| data4 = {{{arena}}}
|-
+
 
| style="vertical-align: top;" | '''Arena''' || <span class="label">{{{arena}}}</span>
+
| headerstyle = background: #E0E7EF
|-
+
| header5 = Results
{| style="background: none; width: 20em; margin: 0 auto;"
+
 
|-
+
| label6 = Record
! style="background: #E0E7EF;" colspan="2" | Results
+
| data6 =  {{{wins}}}&ndash;{{{losses}}} {{#ifexpr:({{{wins|0}}} + {{{losses|0}}}) = 0||({{winning percentage|{{{wins|0}}}|{{{losses|0}}}}})}}
|-
+
 
| '''Record''' || {{{wins}}}&ndash;{{{losses}}} {{#ifexpr:({{{wins|0}}} + {{{losses|0}}}) = 0||({{winning percentage|{{{wins|0}}}|{{{losses|0}}}}})}}
+
| label7 = Place
|-
+
| data7 = <small>Division:</small> {{#iferror:{{#expr:{{{division_place}}}+0}}{{#switch:{{{division_place}}} |1=st |2=nd |3=rd |th}} | {{{division_place}}} }} {{#if:{{{division|}}} | <small>({{#switch:{{lc:{{{division}}}}} |southeast=[[Southeast Division (NBA)|Southeast]] |atlantic=[[Atlantic Division (NBA)|Atlantic]] |central=[[Central Division (NBA)|Central]] |southwest=[[Southwest Division (NBA)|Southwest]] |northwest=[[Northwest Division (NBA)|Northwest]] |midwest=[[Midwest Division (NBA)|Midwest]] |pacific=[[Pacific Division (NBA)|Pacific]] |eastern=[[Eastern Conference (NBA)|Eastern]] |western=[[Western Conference (NBA)|Western]] |{{{division}}} }})</small> }}{{#if:{{{conf_place|}}}|<br><small>Conference:</small> {{#iferror:{{#expr:{{{conf_place}}}+0}}{{#switch:{{{conf_place}}} |1=st |2=nd |3=rd |th}} | {{{conf_place}}} }} {{#if:{{{division|}}} | <small>{{#switch:{{lc:{{{division}}}}} |southeast |atlantic |central=([[Eastern Conference (NBA)|Eastern]]) |southwest |northwest |midwest |pacific=([[Western Conference (NBA)|Western]])}}</small> }} }}
| style="vertical-align: top;" | '''Place''' || <small>Division:</small> {{#iferror:{{#expr:{{{division_place}}}+0}}{{#switch:{{{division_place}}} |1=st |2=nd |3=rd |th}} | {{{division_place}}} }} {{#if:{{{division|}}} | <small>({{#switch:{{lc:{{{division}}}}} |southeast=[[Southeast Division (NBA)|Southeast]] |atlantic=[[Atlantic Division (NBA)|Atlantic]] |central=[[Central Division (NBA)|Central]] |southwest=[[Southwest Division (NBA)|Southwest]] |northwest=[[Northwest Division (NBA)|Northwest]] |midwest=[[Midwest Division (NBA)|Midwest]] |pacific=[[Pacific Division (NBA)|Pacific]] |eastern=[[Eastern Conference (NBA)|Eastern]] |western=[[Western Conference (NBA)|Western]] |{{{division}}} }})</small> }}{{#if:{{{conf_place|}}}|<br><small>Conference:</small> {{#iferror:{{#expr:{{{conf_place}}}+0}}{{#switch:{{{conf_place}}} |1=st |2=nd |3=rd |th}} | {{{conf_place}}} }} {{#if:{{{division|}}} | <small>{{#switch:{{lc:{{{division}}}}} |southeast |atlantic |central=([[Eastern Conference (NBA)|Eastern]]) |southwest |northwest |midwest |pacific=([[Western Conference (NBA)|Western]])}}</small> }} }}
+
 
|-
+
| label8 = Playoff finish
| style="vertical-align: top;" | '''Playoff finish''' || {{{playoffs}}}
+
| data8 = {{{playoffs}}}
{{#if:{{{bbr_team<includeonly>|</includeonly>}}}|
+
 
{{!}}-
+
| data9 = {{#if:{{{bbr_team<includeonly>|</includeonly>}}}|<hr><span class="plainlinks" style="font-size:88%">Stats @ '''[http://www.basketball-reference.com/teams/{{{bbr_team}}}/{{{end_year|2009}}}.html Basketball-Reference.com]'''</span>}}
{{!}} colspan="2" align="center" {{!}} <hr><small>Stats @ <span class="plainlinks">'''[http://www.basketball-reference.com/teams/{{{bbr_team}}}/{{{end_year|2009}}}.html Basketball-Reference.com]'''</small></span>
+
 
}}
+
 
{{#if:{{{television<includeonly>|</includeonly>}}}|
+
| header10 ={{#if:{{{television<includeonly>|</includeonly>}}}| Local media}}
{{!}}-
+
 
{{!}} style="background: #E0E7EF;" align="center" colspan="2" {{!}} '''Local media'''
+
| label11 = Television
|{{!}}-}}
+
| data11 = {{{television<includeonly>|</includeonly>}}}
|-
+
 
{{#if:{{{television<includeonly>|</includeonly>}}}|
+
| label12 = Radio
{{!}}-
+
| data12 = {{{radio<includeonly>|</includeonly>}}}
{{!}} style="vertical-align: top;" {{!}} '''Television''' {{!}}{{!}} {{{television}}}
+
 
|{{!}}-}}
+
| belowclass = noprint
{{#if:{{{radio<includeonly>|</includeonly>}}}|
+
| belowstyle = border-top:#bbb solid 1px
{{!}}-
+
| below = {{#if:{{both|{{{no_prevseason|}}}|{{{no_nextseason|}}}}}||
{{!}} style="vertical-align: top;" {{!}} '''Radio''' {{!}}{{!}} {{{radio}}}
+
<table style="width:100%"><tr>
}}
+
<td style="width:50%; text-align:left;">{{#if:{{{no_prevseason|}}}||
{{#if:{{#if:{{{no_prevseason|}}}||1}}{{#if:{{{no_nextseason|}}}||1}}|
+
{{auto link|{{#ifeq:{{{end_year}}}|2001|1999–2000|{{#expr:{{{end_year|2009}}}-2}}–{{padleft:{{#expr:({{{end_year|2009}}}-1) mod 100}}|2|0}}}} {{{team}}} season|&lt;&nbsp;{{#expr:{{{end_year|2009}}}-2}}–{{padleft:{{#expr:({{{end_year|2009}}}-1) mod 100}}|2|0}} }} }}</td>
{{!}}-
+
<td style="width:50%; text-align:right;">{{#if:{{{no_nextseason|}}}||
{{!}} width="50%" {{!}} {{#if:{{{no_prevseason|}}}||
+
{{auto link|{{#ifeq:{{{end_year}}}|1999|1999–2000|{{{end_year|2009}}}{{padleft:{{#expr:({{{end_year|2009}}}+1) mod 100}}|2|0}}}} {{{team}}} season|{{{end_year|2009}}}–{{padleft:{{#expr:({{{end_year|2009}}}+1) mod 100}}|2|0}}&nbsp;&gt;}} }}</td>
{{auto link|{{#ifeq:{{{end_year}}}|2001|1999–2000|{{#expr:{{{end_year|2009}}}-2}}–{{padleft:{{#expr:({{{end_year|2009}}}-1) mod 100}}|2|0}}}} {{{team}}} season|&lt;&nbsp;{{#expr:{{{end_year|2009}}}-2}}–{{padleft:{{#expr:({{{end_year|2009}}}-1) mod 100}}|2|0}} }} }}
+
</tr></table>}}
{{!}} width="50%" align="right" {{!}} {{#if:{{{no_nextseason|}}}||
+
 
{{auto link|{{#ifeq:{{{end_year}}}|1999|1999–2000|{{{end_year|2009}}}–{{padleft:{{#expr:({{{end_year|2009}}}+1) mod 100}}|2|0}}}} {{{team}}} season|{{{end_year|2009}}}–{{padleft:{{#expr:({{{end_year|2009}}}+1) mod 100}}|2|0}}&nbsp;&gt;}} }}  }}
+
}}<noinclude>
|}
 
|}<noinclude>
 
 
<pre>
 
<pre>
 
{{Infobox NBA season
 
{{Infobox NBA season

Revision as of 12:34, 15 October 2015

2008–09 [[{{{team}}}]] season
Head coach {{{coach}}}
General manager {{{gm}}}
Owner(s) {{{owners}}}
Arena {{{arena}}}
Results
Record {{{wins}}}–{{{losses}}}
Place Division: {{{division_place}}}
Playoff finish {{{playoffs}}}

Stats @ Basketball-Reference.com
Local media
Television {{{television}}}
Radio {{{radio}}}
< 2007–08 2009–10 >
{{Infobox NBA season
| team = 
| league =
| misc = 
| end_year = 
| wins = 
| losses = 
| division = 
| division_place = 
| conf_place = 
| coach = 
| gm = 
| owners = 
| arena =  
| television = 
| radio = 
| playoffs = 
| bbr_team = 
| nba_champion = yes
| top_of_standings = yes
| conference_win = yes
| division_win = yes
}}

League is an optional argument which can be used to specify pre-NBA leagues.

The following flags may be used if the season list, previous season, or next season should not be displayed. Any non-space character in the assignment

| no_seasonlist = 1
| no_prevseason = 1
| no_nextseason = 1

Examples

2007–08 Washington Wizards season
Head coach Eddie Jordan
Owner(s) Raul Fernandez
Abe Pollin
Arena Verizon Center
Results
Record 43–39 (Expression error: Unrecognized punctuation character "{".)
Place Division: 2nd (Southeast)
Conference: 5th (Eastern)
Playoff finish First Round
(eliminated 2–4)

Stats @ Basketball-Reference.com
Local media
Television CSN Mid-Atlantic
WDCW
News Channel 8
Radio WTEM
< 2006–07 2008–09 >

Microformat

The HTML mark-up produced by this template includes an hCard microformat that makes an organization's details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.
Subtemplates
  • Use {{start date}} for the date on which an organisation was "established", "founded", "opened" or otherwise started, unless that date is before 1583 CE.
  • Use {{URL}} for an organisation's URL.
  • Use {{coord}} for coordinates associated with the organisation (e.g. the location of its headquarters). A Geo microformat will then make these coordinates parsable, e.g. for use in online mapping, downloading to a GPS unit, etc.

Please do not remove instances of these subtemplates.

Classes used

The HTML classes this microformat uses include:

  • adr
  • agent
  • category
  • country-name
  • extended-address
  • fn
  • geo
  • label
  • latitude
  • locality
  • longitude
  • nickname
  • note
  • org
  • region
  • street-address
  • url
  • vcard
  • Please do not rename or remove these classes
    nor collapse nested elements which use them.