Module:Sports color/ice hockey
< Module:Sports color
Jump to navigation
Jump to search
Revision as of 15:26, 3 August 2020 by blackwiki>Frietjes
| This module is rated as ready for general use. It has reached a mature form and is thought to be 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 | X | 6.84 | ||||
| Arizona Coyotes | X | 5.95 | ||||
| Atlanta Flames | X | 3.77 | ||||
| Atlanta Thrashers | X | 8.26 | ||||
| Boston Bruins | X | 10.57 | ||||
| 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 | X | 2.66 | ||||
| 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 | ||||
| Minnesota North Stars | X | 2.65 | ||||
| Minnesota Wild | X | 1.52 | ||||
| Montreal Canadiens | X | 2.09 | ||||
| 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 | ||||
| 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'] = {"8C2633", "E2D6B5", "E2D6B5"},
['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'] = {"002654", "CE1126", "A4A9AD"},
['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)",
}