Module:Sports color/ice hockey
MyWikiBiz, Author Your Legacy — Tuesday November 05, 2024
Jump to navigationJump to search{{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
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/ice hockey/sandbox first.
Test table
Team | 1 | 2 | 3 | 4 | Contrast | |
---|---|---|---|---|---|---|
1/2 | 4/3 | |||||
Anaheim Ducks | 20.87 | 7.59 | ||||
Arizona Coyotes Also known as Phoenix Coyotes | 8.98 | 13.07 | ||||
Atlanta Flames | 5.88 | 14.29 | ||||
Atlanta Thrashers | 16.54 | 8.26 | ||||
Boston Bruins | 20.87 | 12.05 | ||||
Brooklyn Americans Also known as New York Americans | 10.6 | 5.88 | ||||
Buffalo Sabres | 11.85 | 6.84 | ||||
Calgary Flames | 5.88 | 12.13 | ||||
California Golden Seals Also known as Oakland Seals | 6.27 | 14.29 | ||||
Carolina Hurricanes | 5.89 | 21 | ||||
Chicago Blackhawks | 5.88 | 21 | ||||
Cleveland Barons | 5.88 | 20.87 | ||||
Colorado Avalanche | 10.39 | 6.57 | ||||
Colorado Rockies | 15.47 | 5.88 | ||||
Columbus Blue Jackets | 16.54 | 5.88 | ||||
Dallas Stars | 7.34 | 20.87 | ||||
Detroit Red Wings | 5.88 | 5.88 | ||||
Edmonton Oilers | 16.54 | 4.86 | ||||
Florida Panthers | 5.88 | 6.02 | ||||
Hartford Whalers | 15.47 | 6.72 | ||||
Kansas City Scouts | 16.54 | 5.88 | ||||
Los Angeles Kings | 20.87 | 8.84 | ||||
Minnesota North Stars | 5.48 | 7.48 | ||||
Minnesota Wild | 10.59 | 7.5 | ||||
Montreal Canadiens | 7.5 | 15.42 | ||||
Montreal Maroons | 10.39 | 10.39 | ||||
Montreal Wanderers | 4.85 | 4.85 | ||||
Nashville Predators | 16.54 | 9.55 | ||||
New Jersey Devils | 5.88 | 20.87 | ||||
New York Islanders | 11.85 | 6.14 | ||||
New York Rangers | 10.6 | 5.88 | ||||
Ottawa Senators | 5.03 | 7.22 | ||||
Ottawa Senators (original) | 5.88 | 20.87 | ||||
Philadelphia Flyers | 20.87 | 5.92 | ||||
Pittsburgh Penguins | 20.87 | 12.05 | ||||
Quebec Nordiques | 4.89 | 5.88 | ||||
San Jose Sharks | 7.02 | 6.7 | ||||
Seattle Kraken | 18.64 | 11.64 | ||||
St. Louis Blues | 11.85 | 9.55 | ||||
Tampa Bay Lightning | 15.47 | 15.47 | ||||
Toronto Maple Leafs Also known as Toronto Hockey Club Also known as Toronto Arenas | 15.47 | 15.47 | ||||
Toronto St. Patricks | 6.72 | 6.72 | ||||
Vancouver Canucks | 13.91 | 4.58 | ||||
Vegas Golden Knights | 10.8 | 7.59 | ||||
Washington Capitals | 5.88 | 16.54 | ||||
Winnipeg Jets | 16.54 | 5.17 | ||||
Winnipeg Jets (1972–1996) Also known as Winnipeg Jets (1972-1996) | 14.76 | 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.
return { --Current NHL-- ['Anaheim Ducks'] = {"010101", "FFFFFF", "B9975B", "010101"}, ['Arizona Coyotes'] = {"862633", "FFFFFF", "DDCBA4", "010101"}, ['Boston Bruins'] = {"010101", "FFFFFF", "FFB81C", "010101"}, ['Buffalo Sabres'] = {"003087", "FFFFFF", "FFB81C", "003087"}, ['Calgary Flames'] = {"C8102E", "FFFFFF", "F1BE48", "010101"}, ['Carolina Hurricanes'] = {"CC0000", "FFFFFF", "000000", "FFFFFF"}, ['Chicago Blackhawks'] = {"C8102E", "FFFFFF", "000000", "FFFFFF"}, ['Colorado Avalanche'] = {"6F263D", "FFFFFF", "236192", "FFFFFF"}, ['Columbus Blue Jackets'] = {"041E42", "FFFFFF", "C8102E", "FFFFFF"}, ['Dallas Stars'] = {"006341", "FFFFFF", "010101", "FFFFFF"}, ['Detroit Red Wings'] = {"C8102E", "FFFFFF", "FFFFFF", "C8102E"}, ['Edmonton Oilers'] = {"041E42", "FFFFFF", "FC4C02", "041E42"}, ['Florida Panthers'] = {"C8102E", "FFFFFF", "B9975B", "041E42"}, ['Los Angeles Kings'] = {"010101", "FFFFFF", "A2AAAD", "010101"}, ['Minnesota Wild'] = {"154734", "FFFFFF", "A6192E", "FFFFFF"}, ['Montreal Canadiens'] = {"A6192E", "FFFFFF", "001E62", "FFFFFF"}, ['Nashville Predators'] = {"041E42", "FFFFFF", "FFB81C", "041E42"}, ['New Jersey Devils'] = {"C8102E", "FFFFFF", "010101", "FFFFFF"}, ['New York Islanders'] = {"003087", "FFFFFF", "FC4C02", "010101"}, ['New York Rangers'] = {"0033A0", "FFFFFF", "C8102E", "FFFFFF"}, ['Ottawa Senators'] = {"DA1A32", "FFFFFF", "B79257", "010101"}, ['Philadelphia Flyers'] = {"010101", "FFFFFF", "FA4616", "010101"}, ['Pittsburgh Penguins'] = {"010101", "FFFFFF", "FFB81C", "010101"}, ['San Jose Sharks'] = {"006272", "FFFFFF", "E57200", "010101"}, ['Seattle Kraken'] = {"001425", "FFFFFF", "96D8D8", "001425"}, ['St. Louis Blues'] = {"003087", "FFFFFF", "FFB81C", "041E42"}, ['Tampa Bay Lightning'] = {"00205B", "FFFFFF", "FFFFFF", "00205B"}, ['Toronto Maple Leafs'] = {"00205B", "FFFFFF", "FFFFFF", "00205B"}, ['Vancouver Canucks'] = {"002D56", "FFFFFF", "008752", "FFFFFF"}, ['Vegas Golden Knights'] = {"333F48", "FFFFFF", "B9975B", "010101"}, ['Washington Capitals'] = {"C8102E", "FFFFFF", "041E42", "FFFFFF"}, ['Winnipeg Jets'] = {"041E42", "FFFFFF", "006EC8", "FFFFFF"}, -- Former NHL -- ['Atlanta Flames'] = {"C8102E", "FFFFFF", "FFD100", "010101"}, ['Atlanta Thrashers'] = {"041E42", "FFFFFF", "FFA300", "041E42"}, ['Brooklyn Americans'] = {"0033A0", "FFFFFF", "C8102E", "FFFFFF"}, ['California Golden Seals'] = {"009CA6", "010101", "FFD100", "010101"}, ['Cleveland Barons'] = {"C8102E", "FFFFFF", "010101", "FFFFFF"}, ['Colorado Rockies'] = {"00205B", "FFFFFF", "C8102E", "FFFFFF"}, ['Hartford Whalers'] = {"00205B", "FFFFFF", "046A38", "FFFFFF"}, ['Kansas City Scouts'] = {"041E42", "FFFFFF", "C8102E", "FFFFFF"}, ['Minnesota North Stars'] = {"007A33", "FFFFFF", "C69214", "010101"}, ['Montreal Maroons'] = {"6F263D", "FFFFFF", "FFFFFF", "6F263D"}, ['Montreal Wanderers'] = {"E4002B", "FFFFFF", "FFFFFF", "E4002B"}, ['New York Americans'] = "Brooklyn Americans", ['Oakland Seals'] = "California Golden Seals", ['Ottawa Senators (original)'] = {"C8102E", "FFFFFF", "010101", "FFFFFF"}, ['Phoenix Coyotes'] = "Arizona Coyotes", ['Quebec Nordiques'] = {"0072CE", "FFFFFF", "C8102E", "FFFFFF"}, ['Toronto Arenas'] = "Toronto Maple Leafs", ['Toronto Hockey Club'] = "Toronto Maple Leafs", ['Toronto St. Patricks'] = {"046A38", "FFFFFF", "FFFFFF", "046A38"}, ['Winnipeg Jets (1972–1996)'] = {"012169", "FFFFFF", "C8102E", "FFFFFF"}, ['Winnipeg Jets (1972-1996)'] = "Winnipeg Jets (1972–1996)", }