Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Format  





2 Warning  





3 Test table  














Module:Sports color/ice hockey/sandbox







Add links
 









Module
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Module:Sports color | ice hockey

{{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[edit]

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[edit]

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[edit]

Team1234Contrast
1/24/3
Anaheim DucksX6.84
Arizona CoyotesX8.45
Atlanta FlamesX3.77
Atlanta ThrashersX8.26
Boston BruinsX10.57
Boston Pride12.0621
Buffalo Beauts2.329.42
Buffalo SabresX8.37
Calgary FlamesX3.25
California Golden Seals
Also known as Cleveland Barons
X1
Carolina HurricanesX3.57
Chicago BlackhawksX3.73
Colorado AvalancheX1.58
Colorado RockiesX1.8
Columbus Blue Jackets75.88
Connecticut Whale (PHF)10.253.62
Dallas StarsX2.76
Detroit Red WingsX1
Edmonton OilersX4.96
Florida PanthersX2.81
Hartford WhalersX2.3
Kansas City ScoutsX1.8
Los Angeles KingsX8.89
Metropolitan Riveters6.374.27
Minnesota North StarsX2.65
Minnesota Whitecaps215.77
Minnesota WildX1.52
Montreal CanadiensX2.09
Montreal Force3.46.17
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 PenguinsX11.76
Quebec NordiquesX1.31
San Jose SharksX2
St. Louis BluesX6.69
Tampa Bay LightningX1
Toronto Hockey ClubX1
Toronto Maple LeafsX1
Toronto Six4.328.2
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", "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"},
}

Retrieved from "https://en.wikipedia.org/w/index.php?title=Module:Sports_color/ice_hockey/sandbox&oldid=1108365701"

Category: 
Module sandboxes
 



This page was last edited on 4 September 2022, at 00:10 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki