Module:Sports color/ice hockey

From blackwiki
< Module:Sports color
Revision as of 14:40, 3 August 2020 by blackwiki>Frietjes (per request)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump 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

Team1234Contrast
1/24/3
Anaheim Ducks6.846.84
Arizona CoyotesX5.95
Atlanta FlamesX3.77
Atlanta ThrashersX8.26
Boston Bruins10.5710.57
Buffalo SabresX8.37
Calgary Flames3.253.25
California Golden Seals
Also known as Cleveland Barons
X1
Carolina HurricanesX3.57
Chicago Blackhawks3.733.73
Colorado AvalancheX1.58
Colorado RockiesX1.8
Columbus Blue JacketsX2.66
Dallas Stars2.761
Detroit Red WingsX1
Edmonton OilersX4.96
Florida PanthersX2.81
Hartford WhalersX2.3
Kansas City ScoutsX1.8
Los Angeles Kings8.898.89
Minnesota North StarsX2.65
Minnesota WildX1.52
Montreal CanadiensX2.09
Montreal MaroonsX1
Montreal WanderersX1
Nashville PredatorsX9.55
New Jersey DevilsX3.73
New York AmericansX1.51
New York IslandersX2.89
New York RangersX1.75
Ottawa SenatorsX3.73
Ottawa Senators (original)X3.73
Philadelphia FlyersX5.91
Pittsburgh Penguins11.7611.76
Quebec NordiquesX1.31
San Jose SharksX2
St. Louis BluesX6.69
Tampa Bay LightningX1
Toronto Hockey ClubX1
Toronto Maple LeafsX1
Vancouver CanucksX3.08
Vegas Golden KnightsX3.89
Washington CapitalsX2.95
Winnipeg JetsX2.54
Winnipeg Jets (1972–1996)
Also known as Winnipeg Jets (1972-1996)
X2.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.

return {
--Current NHL--
['Anaheim Ducks'] = {"111111", "B5985A", "B5985A", "111111"},
['Arizona Coyotes'] = {"8C2633", "E2D6B5", "E2D6B5"},
['Boston Bruins'] = {"111111", "FCB514", "FCB514", "111111"},
['Buffalo Sabres'] = {"002654", "FCB514", "FCB514"},
['Calgary Flames'] = {"CE1126", "F3BC52", "F3BC52", "CE1126"},
['Carolina Hurricanes'] = {"CC0000", "000000", "A2A9AF"},
['Chicago Blackhawks'] = {"CE1126", "000000", "000000", "CE1126"},
['Colorado Avalanche'] = {"6F263D", "236192", "236192"},
['Columbus Blue Jackets'] = {"002654", "CE1126", "A4A9AD"},
['Dallas Stars'] = {"006847", "111111", "8F8F8C", "8F8F8C"},
['Detroit Red Wings'] = {"CE1126", "CE1126", "CE1126"},
['Edmonton Oilers'] = {"FF4C00", "041E41", "041E41"},
['Florida Panthers'] = {"C8102E", "041E42", "B9975B"},
['Los Angeles Kings'] = {"000000", "A2AAAD", "A2AAAD", "000000"},
['Minnesota Wild'] = {"024930", "AF1E24", "EDAA00"},
['Montreal Canadiens'] = {"AF1E2D", "192168", "192168"},
['Nashville Predators'] = {"FFB81C", "041E42", "041E42"},
['New Jersey Devils'] = {"CE1126", "000000", "000000"},
['New York Islanders'] = {"00539B", "F47D30", "F47D30"},
['Ottawa Senators'] = {"CE1126", "000000", "BF910C"},
['Philadelphia Flyers'] = {"F74902", "000000", "000000"},
['Pittsburgh Penguins'] = {"000000", "FCB514", "FCB514", "000000"},
['San Jose Sharks'] = {"006D75", "EA7200", "EA7200"},
['St. Louis Blues'] = {"002F87", "FCB514", "FCB514"},
['Tampa Bay Lightning'] = {"00205B", "00205B", "00205B"},
['Toronto Maple Leafs'] = {"00205B", "00205B", "00205B"},
['Vancouver Canucks'] = {"002D55", "008852", "008852"},
['Vegas Golden Knights'] = {"333F42", "B4975A", "B4975A"},
['Washington Capitals'] = {"CF0A2C", "041E41", "041E41"},
['Winnipeg Jets'] = {"041E41", "0060A5", "8E9090"},
-- Former NHL --
['Atlanta Flames'] = {"C8102E", "FFC72C", "FFC72C"},
['Atlanta Thrashers'] = {"041E42", "FFA300", "FFA300"},
['California Golden Seals'] = {"FDB827", "FDB827", "166D5F"},
['Cleveland Barons'] = "California Golden Seals",
['Colorado Rockies'] = {"0033A0", "C8102E", "C8102E"},
['Hartford Whalers'] = {"00205B", "046A38", "046A38"},
['Kansas City Scouts'] = {"0033A0", "C8102E", "C8102E"},
['Minnesota North Stars'] = {"009639", "FFD100", "FFD100"},
['Montreal Maroons'] = {"6F263D", "6F263D", "6F263D"},
['Montreal Wanderers'] = {"E4002B", "E4002B", "E4002B"},
['New York Americans'] = {"E03A3E", "005FA9", "005FA9"},
['New York Rangers'] = {"0038A8", "CE1126", "CE1126"},
['Ottawa Senators (original)'] = {"000000", "CF0A2C", "CF0A2C"},
['Quebec Nordiques'] = {"005EB8", "DA291C", "DA291C"},
['Toronto Hockey Club'] = {"003876", "003876", "003876"},
['Winnipeg Jets (1972–1996)'] = {"012169", "C8102E", "C8102E"},
['Winnipeg Jets (1972-1996)'] = "Winnipeg Jets (1972–1996)",
}