Jump to content

Module:Sports color/ice hockey/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Tom.Reding (talk | contribs) at 14:50, 28 December 2023 (top: {{High-use}}). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)


{{Module rating }}

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

Format

[edit]

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

[edit]

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 table

[edit]
Team1234Contrast
1/24/3
Anaheim Ducks4.641.02
Arizona Coyotes
Also known as Phoenix Coyotes
20.872.01
Atlanta Flames5.884.03
Atlanta Thrashers16.548.26
Boston Bruins20.8712.05
Boston Fleet
Also known as PWHL Boston
9.651.71
Boston Pride2112.06
Brooklyn Americans
Also known as New York Americans
5.881.8
Buffalo Beauts2.329.42
Buffalo Sabres11.856.84
Calgary Flames5.883.42
California Golden Seals3.332.28
Canada6.3421
Carolina Hurricanes20.873.55
Chicago Blackhawks5.633.71
Cleveland Barons5.883.55
Colorado Avalanche8.831.33
Colorado Rockies10.61.8
Columbus Blue Jackets16.542.81
Connecticut Whale (PHF)10.253.62
Dallas Stars4.934.26
Detroit Cougars4.851
Detroit Falcons4.854.33
Detroit Red Wings5.881
Edmonton Oilers15.473.38
Florida Panthers5.886.02
Hamilton Tigers20.8713.38
Hartford Whalers15.472.3
Kansas City Scouts10.61.8
Los Angeles Kings20.878.84
Metropolitan Riveters6.374.27
Minnesota Frost
Also known as PWHL Minnesota
9.8921
Minnesota North Stars3.872.65
Minnesota Whitecaps215.77
Minnesota Wild11.114.41
Montreal Canadiens7.52.06
Montreal Force6.173.4
Montreal Maroons10.391
Montreal Victoire
Also known as PWHL Montreal
8.928.99
Montreal Wanderers4.851
Nashville Predators1.739.55
New Jersey Devils5.893.57
New York Islanders9.343.03
New York Rangers8.521.45
New York Sirens
Also known as PWHL New York
2.716.47
Oakland Seals6.722.3
Ottawa Charge
Also known as PWHL Ottawa
6.2612.42
Ottawa Senators20.873.55
Ottawa Senators (original)20.873.55
PWHL Seattle7.3217.28
PWHL Vancouver7.917.28
Philadelphia Flyers4.624.54
Philadelphia Quakers20.874.5
Pittsburgh Penguins2112.12
Pittsburgh Pirates20.8710.39
Quebec Bulldogs10.61
Quebec Nordiques4.891.2
San Jose Sharks5.233.99
Seattle Kraken18.6411.64
St. Louis Blues9.149.55
St. Louis Eagles5.881.8
Tampa Bay Lightning15.471
Toronto Arenas
Also known as Toronto Hockey Club
11.851
Toronto Maple Leafs15.471
Toronto Sceptres
Also known as PWHL Toronto
4.8420.92
Toronto Six4.328.2
Toronto St. Patricks6.721
USA11.494.98
Utah Mammoth20.879.22
Vancouver Canucks15.472.3
Vegas Golden Knights2.753.93
Washington Capitals5.882.81
Winnipeg Jets16.541.92
Winnipeg Jets (1972–1996)
Also known as Winnipeg Jets (1972-1996)
Also known as Winnipeg Jets (1972–96)
Also known as Winnipeg Jets (1972-96)
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.