Difference between revisions of "Template:Infobox NBA season"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
m (Resolve redirects)
 
(20 intermediate revisions by 10 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}}};"  | {{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%; 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>}}
| '''Head coach''' || <span class="agent">{{{coach}}}</span>
+
| subheader4 = {{#if:{{{DivisionWin|}}}|<div style="width:100%; background:#FFCC00; font-weight:bold;">{{{Division|}}} Division Champions</div>}}
{{#if:{{{owners<includeonly>|</includeonly>}}}|
+
<!-- Division, Conference -->
{{!}}-
+
| subheader5 = {{#if:{{{misc|}}}|''<span style="font-size:88%:>{{{misc}}}</span>''}}
{{!}} style="vertical-align: top;" {{!}} '''Owner(s)''' {{!}}{{!}} {{{owners}}}
+
 
|{{!}}-}}
+
| label1 = Head coach
|-
+
| class1 = agent
| style="vertical-align: top;" | '''Arena''' || <span class="label">{{{arena}}}</span>
+
| data1 = {{{coach}}}
|-
+
 
{| style="background: none; width: 20em; margin: 0 auto;"
+
| label2 = General manager
|-
+
| data2 = {{{gm<includeonly>|</includeonly>}}}
! style="background: #E0E7EF;" colspan="2" | Results
+
 
|-
+
| label3 = Owner(s)
| '''Record''' || {{{wins}}}&ndash;{{{losses}}} {{#ifexpr:({{{wins|0}}} + {{{losses|0}}}) = 0||({{winning percentage|{{{wins|0}}}|{{{losses|0}}}}})}}
+
| data3 = {{{owners<includeonly>|</includeonly>}}}
|-
+
 
| 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> }} }}
+
| label4 = Arena
|-
+
| class4 = label
| style="vertical-align: top;" | '''Playoff finish''' || {{{playoffs}}}
+
| data4 = {{{arena}}}
{{#if:{{{bbr_team<includeonly>|</includeonly>}}}|
+
 
{{!}}-
+
| headerstyle = background: #E0E7EF
{{!}} 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>
+
| header5 = Results
}}
+
 
{{#if:{{{television<includeonly>|</includeonly>}}}|
+
| label6 = Record
{{!}}-
+
| data6 =  {{{wins}}}&ndash;{{{losses}}} {{#ifexpr:({{{wins|0}}} + {{{losses|0}}}) = 0||({{winning percentage|{{{wins|0}}}|{{{losses|0}}}}})}}
{{!}} style="background: #E0E7EF;" align="center" colspan="2" {{!}} '''Local media'''
+
 
|{{!}}-}}
+
| 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="vertical-align: top;" {{!}} '''Television''' {{!}}{{!}} {{{television}}}
+
| data8 = {{{playoffs}}}
|{{!}}-}}
+
 
{{#if:{{{radio<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>}}
{{!}}-
+
 
{{!}} style="vertical-align: top;" {{!}} '''Radio''' {{!}}{{!}} {{{radio}}}
+
 
}}
+
| header10 ={{#if:{{{television<includeonly>|</includeonly>}}}| Local media}}
{{#if:{{{no_seasonlist|}}}||
+
 
{{!}}-
+
| label11 = Television
{{!}} colspan="2" align="center" bgcolor="#E0E7EF" {{!}} '''{{auto link|Template:{{{team}}} seasons|{{{team}}} seasons}}''' }}
+
| data11 = {{{television<includeonly>|</includeonly>}}}
{{#if:{{#if:{{{no_prevseason|}}}||1}}{{#if:{{{no_nextseason|}}}||1}}|
+
 
{{!}}-
+
| label12 = Radio
{{!}} width="50%" {{!}} {{#if:{{{no_prevseason|}}}||
+
| data12 = {{{radio<includeonly>|</includeonly>}}}
{{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}} }} }}
+
 
{{!}} width="50%" align="right" {{!}} {{#if:{{{no_nextseason|}}}||
+
| belowclass = noprint
{{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;}} }}  }}
+
| belowstyle = border-top:#bbb solid 1px
|}
+
| below = {{#if:{{both|{{{no_prevseason|}}}|{{{no_nextseason|}}}}}||
|}<noinclude>
+
<table style="width:100%"><tr>
 +
<td style="width:50%; text-align:left;">{{#if:{{{no_prevseason|}}}||
 +
{{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|}}}||
 +
{{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>
 +
</tr></table>}}
  
{| style="background: transparent; float: left;"
+
}}<noinclude>
|<pre>
+
<pre>
 
{{Infobox NBA season
 
{{Infobox NBA season
 
| team =  
 
| team =  
Line 67: 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 106: 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.