![]() | This is the module sandbox page for Module:Sports color/ice hockey (diff). |
![]() | This Lua module is used on approximately 3,200 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
editMost 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
editBe 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
editTeam | 1 | 2 | 3 | 4 | Contrast | |
---|---|---|---|---|---|---|
1/2 | 4/3 | |||||
Anaheim Ducks | X | 6.84 | ||||
Arizona Coyotes | X | 8.45 | ||||
Atlanta Flames | X | 3.77 | ||||
Atlanta Thrashers | X | 8.26 | ||||
Boston Bruins | X | 10.57 | ||||
Boston Pride | 12.06 | 21 | ||||
Buffalo Beauts | 2.32 | 9.42 | ||||
Buffalo Sabres | X | 8.37 | ||||
Calgary Flames | X | 3.25 | ||||
California Golden Seals Also known as Cleveland Barons | X | 1 | ||||
Carolina Hurricanes | X | 3.57 | ||||
Chicago Blackhawks | X | 3.73 | ||||
Colorado Avalanche | X | 1.58 | ||||
Colorado Rockies | X | 1.8 | ||||
Columbus Blue Jackets | 7 | 5.88 | ||||
Connecticut Whale (PHF) | 10.25 | 3.62 | ||||
Dallas Stars | X | 2.76 | ||||
Detroit Red Wings | X | 1 | ||||
Edmonton Oilers | X | 4.96 | ||||
Florida Panthers | X | 2.81 | ||||
Hartford Whalers | X | 2.3 | ||||
Kansas City Scouts | X | 1.8 | ||||
Los Angeles Kings | X | 8.89 | ||||
Metropolitan Riveters | 6.37 | 4.27 | ||||
Minnesota North Stars | X | 2.65 | ||||
Minnesota Whitecaps | 21 | 5.77 | ||||
Minnesota Wild | X | 1.52 | ||||
Montreal Canadiens | X | 2.09 | ||||
Montreal Force | 3.4 | 6.17 | ||||
Montreal Maroons | X | 1 | ||||
Montreal Wanderers | X | 1 | ||||
Nashville Predators | X | 9.55 | ||||
New Jersey Devils | X | 3.73 | ||||
New York Americans | X | 1.51 | ||||
New York Islanders | X | 2.89 | ||||
New York Rangers | X | 1.75 | ||||
Ottawa Senators | X | 3.73 | ||||
Ottawa Senators (original) | X | 3.73 | ||||
Philadelphia Flyers | X | 5.91 | ||||
Pittsburgh Penguins | X | 11.76 | ||||
Quebec Nordiques | X | 1.31 | ||||
San Jose Sharks | X | 2 | ||||
St. Louis Blues | X | 6.69 | ||||
Tampa Bay Lightning | X | 1 | ||||
Toronto Hockey Club | X | 1 | ||||
Toronto Maple Leafs | X | 1 | ||||
Toronto Six | 4.32 | 8.2 | ||||
Vancouver Canucks | X | 3.08 | ||||
Vegas Golden Knights | X | 3.89 | ||||
Washington Capitals | X | 2.95 | ||||
Winnipeg Jets | X | 2.54 | ||||
Winnipeg Jets (1972โ1996) Also known as Winnipeg Jets (1972-1996) | X | 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'] = {"111111", "B5985A", "111111"},
['Arizona Coyotes'] = {"791026", "EDE1C6", "010101"},
['Boston Bruins'] = {"111111", "FCB514", "111111"},
['Buffalo Sabres'] = {"002654", "FCB514", "FCB514"},
['Calgary Flames'] = {"CE1126", "F3BC52", "CE1126"},
['Carolina Hurricanes'] = {"CC0000", "000000", "A2A9AF"},
['Chicago Blackhawks'] = {"CE1126", "000000", "CE1126"},
['Colorado Avalanche'] = {"6F263D", "236192", "236192"},
['Columbus Blue Jackets'] = {"041E42", "A2AAAD", "C8102E", "FFFFFF"},
['Dallas Stars'] = {"006847", "111111", "8F8F8C"},
['Detroit Red Wings'] = {"CE1126", "CE1126", "CE1126"},
['Edmonton Oilers'] = {"FF4C00", "041E41", "041E41"},
['Florida Panthers'] = {"C8102E", "041E42", "B9975B"},
['Los Angeles Kings'] = {"000000", "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", "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)",
-- Premier Hockey Federation --
['Boston Pride'] = {"000000", "FDB825", "FFFFFF", "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'] = {"000000", "AF3447", "AF3447", "FFFFFF"},
['Toronto Six'] = {"E4001F", "000000", "BF9D5D", "000000"},
}