Template:Basketball color cell2
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
This template uses Lua: |
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
Team | 1 | 2 | 3 | 4 | Contrast | |
---|---|---|---|---|---|---|
1/2 | 4/3 | |||||
Atlanta Hawks | 5.88 | 12.15 | ||||
Baltimore Bullets | 15.88 | 5.33 | ||||
Boston Celtics | 4.84 | 7.66 | ||||
Brooklyn Nets | 21 | 21 | ||||
Buffalo Braves | 21 | 5.64 | ||||
Charlotte Bobcats | 5.64 | 6.54 | ||||
Charlotte Hornets | 5.17 | 16.14 | ||||
Charlotte Hornets (1988–2002) | 9.8 | 5.64 | ||||
Chicago Bulls | 5.55 | 21 | ||||
Chicago Packers | 11.58 | 4.76 | ||||
Chicago Zephyrs | 16.15 | 5.26 | ||||
Cincinnati Royals | 9.82 | 5.1 | ||||
Cleveland Cavaliers | 10.14 | 7.53 | ||||
Dallas Chaparrals Also known as Texas Chaparrals | 8.33 | 4.73 | ||||
Dallas Mavericks | 6.07 | 11.86 | ||||
Denver Nuggets | 15.89 | 10.01 | ||||
Detroit Pistons | 9.55 | 5.88 | ||||
Eastern Conference | 9.55 | 9.55 | ||||
Ft. Wayne Pistons | 9.47 | 6.25 | ||||
Golden State Warriors | 9.55 | 5.52 | ||||
Houston Rockets | 5.55 | 21 | ||||
Indiana Pacers | 13.53 | 7.94 | ||||
Kansas City Kings | 9.82 | 5.1 | ||||
Los Angeles Clippers | 9.55 | 5.88 | ||||
Los Angeles Lakers | 15.44 | 12.15 | ||||
Memphis Grizzlies | 4.54 | 17.21 | ||||
Miami Heat | 21 | 8.84 | ||||
Milwaukee Bucks | 10.95 | 8.46 | ||||
Milwaukee Hawks | 5.63 | 9.47 | ||||
Minneapolis Lakers | 8.1 | 12.8 | ||||
Minnesota Timberwolves | 15.82 | 6.62 | ||||
NBA | 9.55 | 5.88 | ||||
NBA Finals | 21 | 7.37 | ||||
New Jersey Americans | 4.52 | 9.47 | ||||
New Jersey Nets | 14.33 | 5.55 | ||||
New Orleans Hornets | 3.62 | 12.15 | ||||
New Orleans Jazz | 10.83 | 12.54 | ||||
New Orleans Pelicans | 15.79 | 5.74 | ||||
New York Knicks | 9.55 | 8.21 | ||||
New York Nets | 9.47 | 4.52 | ||||
Oklahoma City Thunder | 4.61 | 3.95 | ||||
Orlando Magic | 4.77 | 21 | ||||
Philadelphia 76ers | 9.55 | 5.88 | ||||
Philadelphia Warriors | 9.47 | 4.35 | ||||
Phoenix Suns | 16.14 | 6.03 | ||||
Portland Trail Blazers | 21 | 4.84 | ||||
Rochester Royals | 9.82 | 5.1 | ||||
Sacramento Kings | 21 | 9.87 | ||||
San Antonio Spurs | 21 | 13.13 | ||||
San Diego Clippers | 6.13 | 5.04 | ||||
San Diego Rockets | 7.76 | 5.05 | ||||
San Francisco Warriors | 5.56 | 12.15 | ||||
Seattle SuperSonics | 7.12 | 12.62 | ||||
St. Louis Hawks | 5.63 | 9.47 | ||||
Syracuse Nationals | 5.1 | 13.03 | ||||
Toronto Raptors | 5.55 | 21 | ||||
Tri-Cities Blackhawks | 5.63 | 9.47 | ||||
Utah Jazz | 21 | 17.97 | ||||
Vancouver Grizzlies | 7.54 | 5.86 | ||||
Washington Bullets | 11.07 | 5.1 | ||||
Washington Wizards | 14 | 4.72 | ||||
Western Conference | 5.88 | 5.88 | ||||
Free agent | X | X | 15.31 | |||
Retired | X | X | 15.31 |