This is the documentation page for Module:Sports color/ice hockey


{{Module rating }}

This is the data module used by Module:Sports color. Please test any changes in Module:Sports color/ice hockey/sandbox first.

FormatEdit

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.

WarningEdit

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/ice hockey/sandbox first.

Test tableEdit

Team1234Contrast
1/24/3
Anaheim Ducks20.877.59
Arizona Coyotes
Also known as Phoenix Coyotes
20.871.9
Atlanta Flames5.883.77
Atlanta Thrashers16.548.26
Boston Bruins20.8712.05
Boston Pride2112.06
Brooklyn Americans
Also known as New York Americans
4.341.51
Buffalo Beauts2.329.42
Buffalo Sabres11.856.84
Calgary Flames5.8812.13
California Golden Seals
Also known as Oakland Seals
3.332.28
Carolina Hurricanes5.893.55
Chicago Blackhawks5.883.55
Cleveland Barons5.883.21
Colorado Avalanche10.391.58
Colorado Rockies10.61.8
Columbus Blue Jackets16.542.81
Connecticut Whale (PHF)10.253.62
Dallas Stars4.814.34
Detroit Red Wings5.881
Edmonton Oilers15.473.33
Florida Panthers5.586
Hartford Whalers15.472.3
Kansas City Scouts10.61.8
Los Angeles Kings20.878.84
Metropolitan Riveters6.374.27
Minnesota North Stars3.8714.37
Minnesota Whitecaps215.77
Minnesota Wild10.591.41
Montreal Canadiens7.52.06
Montreal Force6.173.4
Montreal Maroons10.391
Montreal Wanderers4.851
Nashville Predators1.739.55
New Jersey Devils5.883.55
New York Islanders11.853.48
New York Rangers10.61.8
Ottawa Senators20.873.55
Ottawa Senators (original)213.73
Philadelphia Flyers3.535.92
Pittsburgh Penguins20.8712.05
Quebec Nordiques6.381.31
San Jose Sharks7.022.97
Seattle Kraken18.6411.64
St. Louis Blues11.859.55
Tampa Bay Lightning15.471
Toronto Maple Leafs
Also known as Toronto Hockey Club
Also known as Toronto Arenas
15.471
Toronto Six4.328.2
Toronto St. Patricks6.721
Vancouver Canucks13.913.04
Vegas Golden Knights2.753.93
Washington Capitals5.882.81
Winnipeg Jets16.572.54
Winnipeg Jets (1972–1996)
Also known as Winnipeg Jets (1972–96)
Also known as Winnipeg Jets (1972-96)
Also known as Winnipeg Jets (1972-1996)
14.762.51
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.

Template:Sports color templates