Module:Sports color/basketball/doc

< Module:Sports color‎ | basketball
Revision as of 20:07, 8 April 2024 by A.R.M (talk | contribs) (Created page with "<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> {{High-use}} {{module rating|release}} 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 <pre> ["TEAM NAME"] = {"HEX1", "HEX2", "HEX3", "HEX4"}, </pre> The trailing comma is very important. Here, <code>HEX1</code>, <code>HEX2</code>, <code>HEX3</code>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Sports color/basketball

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

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.
["Pacific Caesar"] = {"#DEE94D", "#000000", "#008000", "#DEE94D"}