Module:Sports color/basketball/doc
Jump to navigation
Jump to search
This is the documentation page for Module:Sports color/basketball
This Lua module is used on approximately 20,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
This module is rated as ready for general use. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
This is the data module used by Module:Sports color. Please test any changes in Module:Sports color/basketball/sandbox first.
Format
Most lines will be of the following form
["TEAM NAME"] = {"HEX1", "HEX2", "HEX3", "HEX4"},
The trailing comma is very important. Here, HEX1
, HEX2
, HEX3
, and HEX4
are hexadecimal color values.
To use the same color for more than one team name (e.g., if the team goes by more than one name, but the colors are the same), use
["SECONDARY TEAM NAME"] = "TEAM NAME",
where TEAM NAME
has already been defined, and SECONDARY TEAM NAME
is the alternative spelling, or name.
Warning
Be very careful when updating this module, as it is used in a large number of articles. Please test any changes in Module:Sports color/basketball/sandbox first.
Test table
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 |
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.
["Pacific Caesar"] = {"#DEE94D", "#000000", "#008000", "#DEE94D"}