Difference between revisions of "Template:Infobox NBA season"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
 
(24 intermediate revisions by 13 users not shown)
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}}};"  | {{Autolink|{{#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%; white-space:nowrap; padding:3px; 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
{{#if:{{{misc|}}}|
+
 
{{!}}-
+
<!-- Championships (if any) -->
{{!}} align=center colspan=2 {{!}} ''<small>{{{misc}}}</small>''
+
| subheader1 = {{#if:{{{ChampionshipWin|}}}|<div style="width:100%; background:#FF9900; font-weight:bold;">[[NBA]] Champions</div>}}
}}
+
| subheader2 = {{#if:{{{StandingsTop|}}}|<div style="width:100%; background:#FFAA00; font-weight:bold;">NBA Standings Winner</div>}}
|-
+
| subheader3 = {{#if:{{{ConferenceWin|}}}|<div style="width:100%; background:#FFBB00; font-weight:bold;">{{{Conference|}}} Conference Champions</div>}}
{{#if: {{{logo|}}}|
+
| subheader4 = {{#if:{{{DivisionWin|}}}|<div style="width:100%; background:#FFCC00; font-weight:bold;">{{{Division|}}} Division Champions</div>}}
{{!}} colspan=2 style="text-align: center" {{!}} [[File:{{{logo}}}{{!}}center{{!}}200px{{!}}{{{name}}} logo]]
+
<!-- Division, Conference -->
{{!}}-
+
| subheader5 = {{#if:{{{misc|}}}|''<span style="font-size:88%:>{{{misc}}}</span>''}}
}}
+
 
|-
+
| label1 = Head coach
| '''Head coach''' || <span class="agent">{{{coach}}}</span>
+
| class1 = agent
{{#if:{{{owners<includeonly>|</includeonly>}}}|
+
| data1 = {{{coach}}}
{{!}}-
+
 
{{!}} style="vertical-align: top;" {{!}} '''Owner(s)''' {{!}}{{!}} {{{owners}}}
+
| label2 = General manager
|{{!}}-}}
+
| data2 = {{{gm<includeonly>|</includeonly>}}}
|-
+
 
| style="vertical-align: top;" | '''Arena''' || <span class="label">{{{arena}}}</span>
+
| label3 = Owner(s)
|-
+
| data3 = {{{owners<includeonly>|</includeonly>}}}
{| style="background: none; width: 20em; margin: 0 auto;"
+
 
|-
+
| label4 = Arena
! style="background: #E0E7EF;" colspan="2" | Results
+
| class4 = label
|-
+
| data4 = {{{arena}}}
| '''Record''' || {{{wins}}}&ndash;{{{losses}}} {{#ifexpr:({{{wins|0}}} + {{{losses|0}}}) = 0||({{winning percentage|{{{wins|0}}}|{{{losses|0}}}}})}}
+
 
|-
+
| headerstyle = background: #E0E7EF
| 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> }} }}
+
| header5 = Results
|-
+
 
| style="vertical-align: top;" | '''Playoff finish''' || {{{playoffs}}}
+
| label6 = Record
{{#if:{{{bbr_team<includeonly>|</includeonly>}}}|
+
| data6 =  {{{wins}}}&ndash;{{{losses}}} {{#ifexpr:({{{wins|0}}} + {{{losses|0}}}) = 0||({{winning percentage|{{{wins|0}}}|{{{losses|0}}}}})}}
{{!}}-
+
 
{{!}} 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>
+
| 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> }} }}
{{#if:{{{television<includeonly>|</includeonly>}}}|
+
 
{{!}}-
+
| label8 = Playoff finish
{{!}} style="background: #E0E7EF;" align="center" colspan="2" {{!}} '''Local media'''
+
| data8 =  {{{playoffs}}}
|{{!}}-}}
+
 
|-
+
| 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>}}
{{#if:{{{television<includeonly>|</includeonly>}}}|
+
 
{{!}}-
+
 
{{!}} style="vertical-align: top;" {{!}} '''Television''' {{!}}{{!}} {{{television}}}
+
| header10 ={{#if:{{{television<includeonly>|</includeonly>}}}| Local media}}
|{{!}}-}}
+
 
{{#if:{{{radio<includeonly>|</includeonly>}}}|
+
| label11 = Television
{{!}}-
+
| data11 = {{{television<includeonly>|</includeonly>}}}
{{!}} style="vertical-align: top;" {{!}} '''Radio''' {{!}}{{!}} {{{radio}}}
+
 
}}
+
| label12 = Radio
{{#if:{{{no_seasonlist|}}}||
+
| data12 = {{{radio<includeonly>|</includeonly>}}}
{{!}}-
+
 
{{!}} colspan="2" align="center" bgcolor="#E0E7EF" {{!}} '''{{Autolink|Template:{{{team}}} seasons|{{{team}}} seasons}}''' }}
+
| belowclass = noprint
{{#if:{{#if:{{{no_prevseason|}}}||1}}{{#if:{{{no_nextseason|}}}||1}}|
+
| belowstyle = border-top:#bbb solid 1px
{{!}}-
+
| below = {{#if:{{both|{{{no_prevseason|}}}|{{{no_nextseason|}}}}}||
{{!}} width="50%" {{!}} {{#if:{{{no_prevseason|}}}||
+
<table style="width:100%"><tr>
{{Autolink|{{#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 style="width:50%; text-align:left;">{{#if:{{{no_prevseason|}}}||
{{!}} width="50%" align="right" {{!}} {{#if:{{{no_nextseason|}}}||
+
{{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>
{{Autolink|{{#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 style="width:50%; text-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;}} }}</td>
|}<noinclude>
+
</tr></table>}}
  
{| style="background: transparent; float: left;"
+
}}<noinclude>
|<pre>
+
<pre>
 
{{Infobox NBA season
 
{{Infobox NBA season
 
| team =  
 
| team =  
Line 72: Line 72:
 
| conf_place =  
 
| conf_place =  
 
| coach =  
 
| coach =  
| arena =  
+
| gm =  
 
| owners =  
 
| owners =  
 +
| arena = 
 
| television =  
 
| television =  
 
| radio =  
 
| radio =  
 
| playoffs =  
 
| playoffs =  
 
| bbr_team =  
 
| bbr_team =  
 +
| nba_champion = yes
 +
| top_of_standings = yes
 +
| conference_win = yes
 +
| division_win = yes
 
}}
 
}}
 
</pre>
 
</pre>
Line 104: Line 109:
 
| playoffs = [[2008 NBA Playoffs#Bracket|First Round]]<br><small>([[2008 NBA Playoffs#(4) Cleveland Cavaliers vs. (5) Washington Wizards|eliminated 2–4]])</small>
 
| playoffs = [[2008 NBA Playoffs#Bracket|First Round]]<br><small>([[2008 NBA Playoffs#(4) Cleveland Cavaliers vs. (5) Washington Wizards|eliminated 2–4]])</small>
 
| bbr_team = WAS
 
| bbr_team = WAS
| television = [[CSN Mid-Atlantic]]<br>[[WDCW]]<br>[[TBD TV|News Channel 8]]
+
| television = [[CSN Mid-Atlantic]]<br>[[WDCW]]<br>[[NewsChannel 8 (cable channel)|News Channel 8]]
 
| radio = [[WTEM]]
 
| radio = [[WTEM]]
 
}}
 
}}
Line 111: Line 116:
 
{{UF-hcard-org}}
 
{{UF-hcard-org}}
  
[[Category:National Basketball Association infobox templates|NBA season]]
+
[[Category:National Basketball Association infobox templates|National Basketball Association season]]
[[zh:Template:NBAteamseason]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 23:24, 6 March 2016

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[edit]

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[edit]

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.