Template:Basketball color/doc

Jump to navigation Jump to search

Usage

{{Basketball color|team name|number}}

{{Basketball color cell|team name}} returns a style that uses the primary color for the background and the secondary color for the font.

{{Basketball color cell2|team name}} returns a similar style but uses the tertiary and quaternary colors instead of the primary and secondary, respectively.

Optional border

Both {{Basketball color cell}} and {{Basketball color cell2}} support the optional |border= parameter. The value should be a positive integer (e.g., 1 or 2 or 3). By default, the CSS generated uses box-shadows to generate the borders on the inside of the table cell (this is necessary for {{navbox}} groups). However, this can be changed to simple table cell borders using |simple=1.

Examples

<span style="color: #{{Basketball color|default|1}};">Lorem ipsum</span>

Lorem ipsum

<span style="{{Basketball color cell|default}}">Lorem ipsum</span>

Lorem ipsum

<span style="{{Basketball color cell2|default}}">Lorem ipsum</span>

Lorem ipsum

Table of colors

Team1234Contrast
1/24/3
Atlanta Hawks5.8812.15
Baltimore Bullets15.885.33
Boston Celtics4.847.66
Brooklyn Nets2121
Buffalo Braves215.64
Charlotte Bobcats5.646.54
Charlotte Hornets5.1716.14
Charlotte Hornets (1988–2002)9.85.64
Chicago Bulls5.5521
Chicago Packers11.584.76
Chicago Zephyrs16.155.26
Cincinnati Royals9.825.1
Cleveland Cavaliers10.147.53
Dallas Chaparrals
Also known as Texas Chaparrals
8.334.73
Dallas Mavericks6.0711.86
Denver Nuggets15.8910.01
Detroit Pistons9.555.88
Eastern Conference9.559.55
Ft. Wayne Pistons9.476.25
Golden State Warriors9.555.52
Houston Rockets5.5521
Indiana Pacers13.537.94
Kansas City Kings9.825.1
Los Angeles Clippers9.555.88
Los Angeles Lakers15.4412.15
Memphis Grizzlies4.5417.21
Miami Heat218.84
Milwaukee Bucks10.958.46
Milwaukee Hawks5.639.47
Minneapolis Lakers8.112.8
Minnesota Timberwolves15.826.62
NBA9.555.88
NBA Finals217.37
New Jersey Americans4.529.47
New Jersey Nets14.335.55
New Orleans Hornets3.6212.15
New Orleans Jazz10.8312.54
New Orleans Pelicans15.795.74
New York Knicks9.558.21
New York Nets9.474.52
Oklahoma City Thunder4.613.95
Orlando Magic4.7721
Philadelphia 76ers9.555.88
Philadelphia Warriors9.474.35
Phoenix Suns16.146.03
Portland Trail Blazers214.84
Rochester Royals9.825.1
Sacramento Kings219.87
San Antonio Spurs2113.13
San Diego Clippers6.135.04
San Diego Rockets7.765.05
San Francisco Warriors5.5612.15
Seattle SuperSonics7.1212.62
St. Louis Hawks5.639.47
Syracuse Nationals5.113.03
Toronto Raptors5.5521
Tri-Cities Blackhawks5.639.47
Utah Jazz2117.97
Vancouver Grizzlies7.545.86
Washington Bullets11.075.1
Washington Wizards144.72
Western Conference5.885.88
Free agentXX15.31
RetiredXX15.31
The numeric columns are the calculated contrast ratio for the first/second and the fourth/third colors. Anything lower than 3 is very poor contrast and should be changed in the data module. For more information, see Template:Color contrast ratio.