Difference between revisions of "Template:Infobox NBA season"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Project page does.)
 
(43 intermediate revisions by 21 users not shown)
Line 1: Line 1:
{| class="toccolours" 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}} NBA season|{{#ifeq:{{{end_year}}}|2000|1999–2000|{{#expr:{{{end_year|2009}}}-1}}–{{padleft:{{#expr:{{{end_year|2009}}} mod 100}}|2|0}}}}}} [[{{{team}}}]] 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''' || {{{coach}}}
+
| subheader4 = {{#if:{{{DivisionWin|}}}|<div style="width:100%; background:#FFCC00; font-weight:bold;">{{{Division|}}} Division Champions</div>}}
|-
+
<!-- Division, Conference -->
| style="vertical-align: top;" | '''Arena''' || {{{arena}}}
+
| subheader5 = {{#if:{{{misc|}}}|''<span style="font-size:88%:>{{{misc}}}</span>''}}
{{#if:{{{owners|}}}|
+
 
{{!}}-
+
| label1 = Head coach
{{!}} style="vertical-align: top;" {{!}} '''Owner(s)''' {{!}}{{!}} {{{owners}}}
+
| class1 = agent
|{{!}}-}}
+
| data1 = {{{coach}}}
{{#if:{{{television|}}}|
+
 
{{!}}-
+
| label2 = General manager
{{!}} style="vertical-align: top;" {{!}} '''Local television''' {{!}}{{!}} {{{television}}}
+
| data2 = {{{gm<includeonly>|</includeonly>}}}
|{{!}}-}}
+
 
{{#if:{{{radio|}}}|
+
| label3 = Owner(s)
{{!}}-
+
| data3 = {{{owners<includeonly>|</includeonly>}}}
{{!}} style="vertical-align: top;" {{!}} '''Local radio''' {{!}}{{!}} {{{radio}}}
+
 
}}
+
| label4 = Arena
|-
+
| class4 = label
{| style="background: none; width: 20em; margin: 0 auto;"
+
| data4 = {{{arena}}}
|-
+
 
! style="background: #E0E7EF;" colspan="2" | Results
+
| headerstyle = background: #E0E7EF
|-
+
| header5 = Results
| '''Record''' || {{{wins}}}&ndash;{{{losses}}} <small>{{#ifexpr:({{{wins|0}}} + {{{losses|0}}}) = 0|&nbsp;|<br />({{#ifexpr:{{{losses}}} = 0|1.000|.{{padleft:{{#expr:({{{wins}}}/({{{wins}}} + {{{losses}}}) * 1000) round 0}}|3}}}})}}</small>
+
 
|-
+
| label6 = Record
| 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)|East]]) |southwest |northwest |midwest |pacific=([[Western Conference (NBA)|West]])}}</small> }} }}
+
| data6 =  {{{wins}}}&ndash;{{{losses}}} {{#ifexpr:({{{wins|0}}} + {{{losses|0}}}) = 0||({{winning percentage|{{{wins|0}}}|{{{losses|0}}}}})}}
|-
+
 
| style="vertical-align: top;" | '''Playoff finish''' || {{{playoffs}}}
+
| label7 = Place
{{#if:{{{bbr_team|}}}|
+
| 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> }} }}
{{!}}-
+
 
{{!}} 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>
+
| label8 = Playoff finish
}}
+
| data8 =  {{{playoffs}}}
{{#if:{{{no_seasonlist|}}}||
+
 
{{!}}-
+
| 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" bgcolor="#E0E7EF" {{!}} '''{{Autolink|Template:{{{team}}} seasons|{{{team}}} seasons}}''' }}
+
 
{{#if:{{#if:{{{no_prevseason|}}}||1}}{{#if:{{{no_nextseason|}}}||1}}|
+
 
{{!}}-
+
| header10 ={{#if:{{{television<includeonly>|</includeonly>}}}| Local media}}
{{!}} width="50%" {{!}} {{#if:{{{no_prevseason|}}}||
+
 
{{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}} }} }}
+
| label11 = Television
{{!}} width="50%" align="right" {{!}} {{#if:{{{no_nextseason|}}}||
+
| data11 = {{{television<includeonly>|</includeonly>}}}
{{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;}} }}  }}
+
 
|}
+
| label12 = Radio
|}<noinclude>
+
| data12 = {{{radio<includeonly>|</includeonly>}}}
 +
 
 +
| belowclass = noprint
 +
| belowstyle = border-top:#bbb solid 1px
 +
| below = {{#if:{{both|{{{no_prevseason|}}}|{{{no_nextseason|}}}}}||
 +
<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>
{{NBA season
+
{{Infobox NBA season
 
| team =  
 
| team =  
 +
| league =
 
| misc =  
 
| misc =  
 
| end_year =  
 
| end_year =  
Line 61: 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>
 +
 +
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  
 
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  
Line 78: Line 96:
  
 
==Examples==
 
==Examples==
{{NBA season
+
{{Infobox NBA season
| logo = [[Image:Denver Nuggets logo.png|200px]]
+
| team = Washington Wizards
| team = Denver Nuggets
 
 
| end_year = 2008
 
| end_year = 2008
| wins = 50
+
| wins = 43
| losses = 32
+
| losses = 39
| division = northwest
+
| division = southeast
 
| division_place = 2
 
| division_place = 2
| conf_place = 8
+
| conf_place = 5
| coach = [[George Karl]]
+
| coach = [[Eddie Jordan (basketball)|Eddie Jordan]]
| arena = [[Pepsi Center]]
+
| owners = [[Raul Fernandez (entrepreneur)|Raul Fernandez]]<br>[[Abe Pollin]]
| playoffs = [[2008 NBA Playoffs#Bracket|First Round]]<br><small>([[2008 NBA Playoffs#(1) Los Angeles Lakers vs. (8) Denver Nuggets|eliminated 0–4]])</small>
+
| arena = [[Verizon Center]]
| bbr_team = DEN
+
| playoffs = [[2008 NBA Playoffs#Bracket|First Round]]<br><small>([[2008 NBA Playoffs#(4) Cleveland Cavaliers vs. (5) Washington Wizards|eliminated 2–4]])</small>
}}[[Category:National Basketball Association infobox templates|NBA season]]
+
| bbr_team = WAS
 +
| television = [[CSN Mid-Atlantic]]<br>[[WDCW]]<br>[[NewsChannel 8 (cable channel)|News Channel 8]]
 +
| radio = [[WTEM]]
 +
}}
 +
 
 +
==Microformat==
 +
{{UF-hcard-org}}
 +
 
 +
[[Category:National Basketball Association infobox templates|National Basketball Association season]]
 
</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.