Jump to content

Template:NBAbox/doc

From Wikipedia, the free encyclopedia

Parameters

[edit]

In the following parameters, the use of the symbol # is meant to denote a game number, which would then reflect the change with regards to application of that parameter.

Colors

[edit]

The following parameters are responsible for controlling the colors included in the template.

Parameter Explanation Notes
bg1 Designates the background color for the lines for games 1, 3, 5, 7, and the bottom summary line if the last game is 2, 4, or 6. Default is EEEEEE. Optional
bg2 Designates the background color for the lines for games 2, 4, 6, and the bottom summary line if the last game is 1, 3, 5 or 7. Default is FFFFFF. Optional

Table setup

[edit]

The following parameters are responsible for controlling the overall setup of the table such as the number of games included and home teams.

Parameter Explanation Notes
score# The absence of this parameter for a given game will result in the absence of that line for the template.
series The inclusion of this parameter produces a line below the last game for a summary of the series. Optional
home# Designates home advantage to either team1 or team2 for the given game by entering 1 or 2. Optional

Blank

[edit]
 {{NBAbox
  |bg1 = 
  |bg2 = 
  |team1 = 
  |team2 = 
  |stadium1 = 
  |stadium2 = 
  
  |date1 = 
  |time1 = 
  |recap1 = 
  |tv1 = 
  |1-1 = 
  |1-2 = 
  |ot1 = 
  
  | sum1 =
  | pts1-1 = 
  | pts1-2 = 
  | reb1-1 = 
  | reb1-2 = 
  | ast1-1 = 
  | ast1-2 = 
  
  |date2 = 
  |time2 = 
  |recap2 = 
  |tv2 = 
  |2-1 = 
  |2-2 = 
  |ot2 = 
  
  | sum2 =
  | pts2-1 = 
  | pts2-2 = 
  | reb2-1 = 
  | reb2-2 = 
  | ast2-1 = 
  | ast2-2 = 
  
  |date3 = 
  |tv3 = 
  |time3 = 
  |recap3 = 
  |3-1 = 
  |3-2 = 
  |ot3 = 
  
  | sum3 =
  | pts3-1 = 
  | pts3-2 = 
  | reb3-1 = 
  | reb3-2 = 
  | ast3-1 = 
  | ast3-2 = 
  
  |date4 = 
  |time4 = 
  |recap4 = 
  |tv4 = 
  |4-1 = 
  |4-2 = 
  |ot4 = 
  
  | sum4 =
  | pts4-1 = 
  | pts4-2 = 
  | reb4-1 = 
  | reb4-2 = 
  | ast4-1 = 
  | ast4-2 = 
  
  |date5 = 
  |time5 = 
  |recap5 = 
  |tv5 = 
  |5-1 = 
  |5-2 = 
  |ot5 = 
  
  | sum5 =
  | pts5-1 = 
  | pts5-2 = 
  | reb5-1 = 
  | reb5-2 = 
  | ast5-1 = 
  | ast5-2 = 
  
  |date6 = 
  |time6 = 
  |recap6 = 
  |tv6 = 
  |6-1 = 
  |6-2 = 
  |ot6 = 
  
  | sum6 =
  | pts6-1 = 
  | pts6-2 = 
  | reb6-1 = 
  | reb6-2 = 
  | ast6-1 = 
  | ast6-2 = 
  
  |date7 = 
  |time7 = 
  |recap7 = 
  |tv7 = 
  |7-1 = 
  |7-2 = 
  |ot7 = 
  
  | sum7 =
  | pts7-1 = 
  | pts7-2 = 
  | reb7-1 = 
  | reb7-2 = 
  | ast7-1 = 
  | ast7-2 = 
  
  |series = 
 }}

Usage

[edit]

Code

[edit]
 {{NBAbox
  |bg1 = EEEEEE (if unspecified, default is EEEEEE)
  |bg2 = FFFFFF (if unspecified, default is FFFFFF)
  |team1 = [[Boston Celtics]]
  |team2 = [[Atlanta Hawks]]
  |stadium1 = [[TD Garden|TD Banknorth Garden]], [[Boston, Massachusetts]]
  |stadium2 = [[Philips Arena]], [[Atlanta, Georgia]]
  |date1 = April 20
  |recap1 = www.nba.com/games/20080420/ATLBOS/recap.html
  |tv1 = [[NBA on TNT|TNT]]
  |1-1 = 104
  |1-2 = 81
  | sum1 = 21-29, 19-20, 15-24, 26-31
  | pts1-1 = [[Ray Allen]] 18
  | pts1-2 = [[Al Horford]] 20
  | reb1-1 = [[Kevin Garnett]] 20
  | reb1-2 = [[Al Horford]] 10
  | ast1-1 = [[Rajon Rondo]] 9
  | ast1-2 = [[Joe Johnson (basketball)|Joe Johnson]] 20
  |date2 = April 23
  |recap2 = www.nba.com/games/20080423/ATLBOS/recap.html
  |tv2 = [[NBA on TNT|TNT]]
  |2-1 = 96
  |2-2 = 77
  | sum2 = 20-24, 22-28, 16-24, 19-20
  |date3 = April 26
  |recap3 = www.nba.com/games/20080426/BOSATL/recap.html
  |tv3 = [[NBA on ESPN|ESPN]]
  |3-1 = 93
  |3-2 = 102
  |date4 = April 28
  |time4 = 8:00PM
  |tv4 = [[NBA on TNT|TNT]]
  |date5 = April 30
  |time5 = TBA
  |tv5 = [[NBA on TNT|TNT]]
  |date6 = May 2
  |time6 = ''TBA''
  |tv6 = [[NBA on ESPN|ESPN]]
  |date7 = May 4
  |time7 = ''TBA''
  |tv7 = [[NBA on ABC|ABC]]
  |series = Boston leads series 2–1
 }}

Sample Result

[edit]
April 20 Game 1: Recap Atlanta Hawks 81 Boston Celtics 104 TD Banknorth Garden, Boston, Massachusetts TNT
Boston Celtics
Atlanta Hawks
29
21
20
19
24
15
31
26
104
81
__ __ __ __ __ __ __ Attendance: 18,624
Referees: Jimmy Clark, Luis Grillo, Steve Javie
Al Horford 20 Points Ray Allen 18
Al Horford 10 Rebounds Kevin Garnett 20
Joe Johnson 20 Assists Rajon Rondo 9
April 23 Game 2: Recap Atlanta Hawks 77 Boston Celtics 96 TD Banknorth Garden, Boston, Massachusetts TNT
Scoring Breakdown: 20-24, 22-28, 16-24, 19-20
April 26 Game 3: Recap Boston Celtics 93 Atlanta Hawks 102 Philips Arena, Atlanta, Georgia ESPN
Scoring Breakdown: 20-24, 22-28, 16-24, 19-20
Ray Allen 18 Points Al Horford 20
Kevin Garnett 20 Rebounds Al Horford 10
Rajon Rondo 9 Assists Joe Johnson 20
Boston leads series 3–2
April 28 Game 4: 8:00PM Boston Celtics vs. Atlanta Hawks Philips Arena, Atlanta, Georgia TNT
April 30 Game 5: TBA Atlanta Hawks vs. Boston Celtics TD Banknorth Garden, Boston, Massachusetts TNT
May 2 Game 6: TBA Boston Celtics vs. Atlanta Hawks Philips Arena, Atlanta, Georgia ESPN
May 4 Game 7 TBA Atlanta Hawks vs. Boston Celtics TD Banknorth Garden, Boston, Massachusetts ABC


Additional Notes

[edit]

There is no need to bold the name of the winning team and the score as that task is automatically performed through the template.

The inclusion of the recap# parameter, where # is equal to the game number, overrides the corresponding time# for the same game.

If the series ends before 7 games have occurred, the remaining parameters may be left out and the result will be the absence of those unnecessary games in the table. Leaving date#, where # is equal to the game number, will remove that line from the template.

To switch who has home court for any game, enter the parameter home#, where # is equal to the game number. Then, the parameter just needs to be set equal to the team number that has home court for the given game.

So, for example, in the current NBA finals format where the higher team has home court for games 1, 2, 6 and 7 and the lower team has home court for games 3, 4 and 5, one would simply set home5 to 2, and home6 to 1.

Also, any of the following parameters are also completely optional:

  • bg1, bg2
  • stadium1, stadium2
  • time1, time2, time3, time4, time5, time6, time7
  • recap1, recap2, recap3, recap4, recap5, recap6, recap7
  • tv1, tv2, tv3, tv4, tv5, tv6, tv7
  • home1, home2, home3, home4, home5, home6, home7
  • ot1, ot2, ot3, ot4, ot5, ot6, ot7
  • sum1, sum2, sum3, sum4, sum5, sum6, sum7
  • pts1-1, pts2-1, pts3-1, pts4-1, pts5-1, pts6-1, pts7-1
  • pts1-2, pts2-2, pts3-2, pts4-2, pts5-2, pts6-2, pts7-2
  • reb1-1, reb2-1, reb3-1, reb4-1, reb5-1, reb6-1, reb7-1
  • reb1-2, reb2-2, reb3-2, reb4-2, reb5-2, reb6-2, reb7-2
  • ast1-1, ast2-1, ast3-1, ast4-1, ast5-1, ast6-1, ast7-1
  • ast1-2, ast2-2, ast3-2, ast4-2, ast5-2, ast6-2, ast7-2
  • series