Module:Sports color/ice hockey
Appearance
This Lua module is used on approximately 3,300 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
This module is rated as ready for general use. It has reached a mature form and is thought to be relatively bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
{{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 | 4.64 | 1.02 | ||||
Arizona Coyotes Also known as Phoenix Coyotes | 20.87 | 2.01 | ||||
Atlanta Flames | 5.88 | 4.03 | ||||
Atlanta Thrashers | 16.54 | 8.26 | ||||
Boston Bruins | 20.87 | 12.05 | ||||
Boston Fleet Also known as PWHL Boston | 9.65 | 1.71 | ||||
Boston Pride | 21 | 12.06 | ||||
Brooklyn Americans Also known as New York Americans | 5.88 | 1.8 | ||||
Buffalo Beauts | 2.32 | 9.42 | ||||
Buffalo Sabres | 11.85 | 6.84 | ||||
Calgary Flames | 5.88 | 3.42 | ||||
California Golden Seals | 3.33 | 2.28 | ||||
Carolina Hurricanes | 20.87 | 3.55 | ||||
Chicago Blackhawks | 5.63 | 3.71 | ||||
Cleveland Barons | 5.88 | 3.55 | ||||
Colorado Avalanche | 8.83 | 1.33 | ||||
Colorado Rockies | 10.6 | 1.8 | ||||
Columbus Blue Jackets | 16.54 | 2.81 | ||||
Connecticut Whale (PHF) | 10.25 | 3.62 | ||||
Dallas Stars | 4.93 | 4.26 | ||||
Detroit Cougars | 4.85 | 1 | ||||
Detroit Falcons | 4.85 | 4.33 | ||||
Detroit Red Wings | 5.88 | 1 | ||||
Edmonton Oilers | 15.47 | 3.38 | ||||
Florida Panthers | 5.88 | 6.02 | ||||
Hamilton Tigers | 20.87 | 13.38 | ||||
Hartford Whalers | 15.47 | 2.3 | ||||
Kansas City Scouts | 10.6 | 1.8 | ||||
Los Angeles Kings | 20.87 | 8.84 | ||||
Metropolitan Riveters | 6.37 | 4.27 | ||||
Minnesota Frost Also known as PWHL Minnesota | 9.89 | 21 | ||||
Minnesota North Stars | 3.87 | 2.65 | ||||
Minnesota Whitecaps | 21 | 5.77 | ||||
Minnesota Wild | 11.11 | 4.41 | ||||
Montreal Canadiens | 7.5 | 2.06 | ||||
Montreal Force | 6.17 | 3.4 | ||||
Montreal Maroons | 10.39 | 1 | ||||
Montreal Victoire Also known as PWHL Montreal | 8.92 | 8.99 | ||||
Montreal Wanderers | 4.85 | 1 | ||||
Nashville Predators | 1.73 | 9.55 | ||||
New Jersey Devils | 5.89 | 3.57 | ||||
New York Islanders | 9.34 | 3.03 | ||||
New York Rangers | 8.52 | 1.45 | ||||
New York Sirens Also known as PWHL New York | 2.7 | 16.47 | ||||
Oakland Seals | 6.72 | 2.3 | ||||
Ottawa Charge Also known as PWHL Ottawa | 6.26 | 12.42 | ||||
Ottawa Senators | 20.87 | 3.55 | ||||
Ottawa Senators (original) | 20.87 | 3.55 | ||||
Philadelphia Flyers | 4.62 | 4.54 | ||||
Philadelphia Quakers | 20.87 | 4.5 | ||||
Pittsburgh Penguins | 21 | 12.12 | ||||
Pittsburgh Pirates | 20.87 | 10.39 | ||||
Quebec Bulldogs | 10.6 | 1 | ||||
Quebec Nordiques | 4.89 | 1.2 | ||||
San Jose Sharks | 5.23 | 3.99 | ||||
Seattle Kraken | 18.64 | 11.64 | ||||
St. Louis Blues | 9.14 | 9.55 | ||||
St. Louis Eagles | 5.88 | 1.8 | ||||
Tampa Bay Lightning | 15.47 | 1 | ||||
Toronto Arenas Also known as Toronto Hockey Club | 11.85 | 1 | ||||
Toronto Maple Leafs | 15.47 | 1 | ||||
Toronto Sceptres Also known as PWHL Toronto | 4.84 | 20.92 | ||||
Toronto Six | 4.32 | 8.2 | ||||
Toronto St. Patricks | 6.72 | 1 | ||||
Utah Hockey Club | 20.87 | 8.61 | ||||
Vancouver Canucks | 15.47 | 2.3 | ||||
Vegas Golden Knights | 2.75 | 3.93 | ||||
Washington Capitals | 5.88 | 2.81 | ||||
Winnipeg Jets | 16.54 | 1.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.76 | 2.51 | ||||
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'] = {"CF4520", "FFFFFF", "89734C", "CF4520"},
['Boston Bruins'] = {"010101", "FFFFFF", "FFB81C", "010101"},
['Buffalo Sabres'] = {"003087", "FFFFFF", "FFB81C", "003087"},
['Calgary Flames'] = {"C8102E", "FFFFFF", "F1BE48", "C8102E"},
['Carolina Hurricanes'] = {"010101", "FFFFFF", "C8102E", "010101"},
['Chicago Blackhawks'] = {"CE1126", "FFFFFF", "010101", "CE1126"},
['Colorado Avalanche'] = {"8A2432", "FFFFFF", "236093", "8A2432"},
['Columbus Blue Jackets'] = {"041E42", "FFFFFF", "C8102E", "041E42"},
['Dallas Stars'] = {"00823E", "FFFFFF", "000000", "00823E"},
['Detroit Red Wings'] = {"C8102E", "FFFFFF", "C8102E", "C8102E"},
['Edmonton Oilers'] = {"00205B", "FFFFFF", "D14520", "00205B"},
['Florida Panthers'] = {"C8102E", "FFFFFF", "041E42", "B9975B"},
['Los Angeles Kings'] = {"010101", "FFFFFF", "A2AAAD", "010101"},
['Minnesota Wild'] = {"0E4431", "FFFFFF", "AC1A2E", "DDC9A3"},
['Montreal Canadiens'] = {"A6192E", "FFFFFF", "001E62", "A6192E"},
['Nashville Predators'] = {"FFB81C", "FFFFFF", "041E42", "FFB81C"},
['New Jersey Devils'] = {"CC0000", "FFFFFF", "000000", "CC0000"},
['New York Islanders'] = {"00468B", "FFFFFF", "F26924", "00468B"},
['New York Rangers'] = {"154B94", "FFFFFF", "C32032", "154B94"},
['Ottawa Senators'] = {"010101", "FFFFFF", "C8102E", "010101"},
['Philadelphia Flyers'] = {"D24303", "FFFFFF", "000000", "D24303"},
['Pittsburgh Penguins'] = {"000000", "FFFFFF", "FFB81C", "000000"},
['San Jose Sharks'] = {"00778B", "FFFFFF", "010101", "00778B"},
['Seattle Kraken'] = {"001425", "FFFFFF", "96D8D8", "001425"},
['St. Louis Blues'] = {"004986", "FFFFFF", "FFB81C", "041E42"},
['Tampa Bay Lightning'] = {"00205B", "FFFFFF", "00205B", "00205B"},
['Toronto Maple Leafs'] = {"00205B", "FFFFFF", "00205B", "00205B"},
['Utah Hockey Club'] = {"010101", "FFFFFF", "6CACE4", "010101"},
['Vancouver Canucks'] = {"00205B", "FFFFFF", "046A38", "00205B"},
['Vegas Golden Knights'] = {"B9975B", "FFFFFF", "333F48", "B9975B"},
['Washington Capitals'] = {"C8102E", "FFFFFF", "041E42", "C8102E"},
['Winnipeg Jets'] = {"041E42", "FFFFFF", "004A98", "041E42"},
-- Former NHL --
['Arizona Coyotes'] = {"010101", "FFFFFF", "6F263D", "010101"},
['Atlanta Flames'] = {"C8102E", "FFFFFF", "FFD100", "C8102E"},
['Atlanta Thrashers'] = {"041E42", "FFFFFF", "FFA300", "041E42"},
['Brooklyn Americans'] = {"C8102E", "FFFFFF", "0033A0", "C8102E"},
['California Golden Seals'] = {"009CA6", "FFFFFF", "FFD100", "009CA6"},
['Cleveland Barons'] = {"C8102E", "FFFFFF", "010101", "C8102E"},
['Colorado Rockies'] = {"0033A0", "FFFFFF", "C8102E", "0033A0"},
['Detroit Cougars'] = {"E4002B", "FFFFFF", "E4002B", "E4002B"},
['Detroit Falcons'] = {"E4002B", "FFFFFF", "000000", "E4002B"},
['Hamilton Tigers'] = {"010101", "FFFFFF", "FFC72C", "010101"},
['Hartford Whalers'] = {"00205B", "FFFFFF", "046A38", "00205B"},
['Kansas City Scouts'] = {"0033A0", "FFFFFF", "C8102E", "0033A0"},
['Minnesota North Stars'] = {"009639", "FFFFFF", "FFD100", "009639"},
['Montreal Maroons'] = {"6F263D", "FFFFFF", "6F263D", "6F263D"},
['Montreal Wanderers'] = {"E4002B", "FFFFFF", "E4002B", "E4002B"},
['New York Americans'] = "Brooklyn Americans",
['Oakland Seals'] = {"046A38", "FFFFFF", "00205B", "046A38"},
['Ottawa Senators (original)'] = {"010101", "FFFFFF", "C8102E", "010101"},
['Philadelphia Quakers'] = {"010101", "FFFFFF", "CF4520", "010101"},
['Phoenix Coyotes'] = "Arizona Coyotes",
['Pittsburgh Pirates'] = {"010101", "FFFFFF", "F2A900", "010101"},
['Quebec Bulldogs'] = {"0033A0", "FFFFFF", "0033A0", "0033A0"},
['Quebec Nordiques'] = {"0072CE", "FFFFFF", "C8102E", "0072CE"},
['St. Louis Eagles'] = {"C8102E", "FFFFFF", "0033A0", "C8102E"},
['Toronto Arenas'] = {"003087", "FFFFFF", "003087", "003087"},
['Toronto Hockey Club'] = "Toronto Arenas",
['Toronto St. Patricks'] = {"046A38", "FFFFFF", "046A38", "046A38"},
['Winnipeg Jets (1972–1996)'] = {"012169", "FFFFFF", "C8102E", "012169"},
['Winnipeg Jets (1972-1996)'] = "Winnipeg Jets (1972–1996)",
['Winnipeg Jets (1972–96)'] = "Winnipeg Jets (1972–1996)",
['Winnipeg Jets (1972-96)'] = "Winnipeg Jets (1972–1996)",
-- Premier Hockey Federation --
['Boston Pride'] = {"000000", "FFFFFF", "FDB825", "000000"},
['Buffalo Beauts'] = {"6BB1E5", "FFFFFF", "A9AFAD", "000000"},
['Connecticut Whale (PHF)'] = {"0034A7", "FFFFFF", "009C34", "FFFFFF"},
['Metropolitan Riveters'] = {"0161AB", "FFFFFF", "E3393F", "FFFFFF"},
['Minnesota Whitecaps'] = {"000000", "FFFFFF", "1C449C", "CFD0D2"},
['Montreal Force'] = {"AF3447", "FFFFFF", "000000", "AF3447"},
['Toronto Six'] = {"E4001F", "000000", "BF9D5D", "000000"},
-- Professional Women's Hockey League --
['Boston Fleet'] = {"164E36", "FFFFFF", "C3C6CC", "FFFFFF"},
['Minnesota Frost'] = {"5A288D", "FFFFFF", "000000", "FFFFFF"},
['Montreal Victoire'] = {"651517", "E9D8B2", "363233", "E9D8B2"},
['New York Sirens'] = {"18B196", "FFFFFF", "151E38", "FFFFFF"},
['Ottawa Charge'] = {"BC1F1E", "FFFFFF", "383334", "FFFFFF"},
['Toronto Sceptres'] = {"1A75BD", "FDFFFF", "000000", "FDFFFF"},
-- Professional Women's Hockey League Inaugural Season Names --
['PWHL Boston'] = "Boston Fleet",
['PWHL Minnesota'] = "Minnesota Frost",
['PWHL Montreal'] = "Montreal Victoire",
['PWHL New York'] = "New York Sirens",
['PWHL Ottawa'] = "Ottawa Charge",
['PWHL Toronto'] = "Toronto Sceptres",
}