Module:Sports color/ice hockey/doc

From Stiles Wiki
< Module:Sports color‎ | ice hockey
Revision as of 04:02, 29 November 2021 by imported>Gonnym
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for 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

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 Ducks20.877.59
Arizona Coyotes
Also known as Phoenix Coyotes
8.9813.07
Atlanta Flames5.8814.29
Atlanta Thrashers16.548.26
Boston Bruins20.8712.05
Brooklyn Americans
Also known as New York Americans
10.65.88
Buffalo Sabres11.856.84
Calgary Flames5.8812.13
California Golden Seals
Also known as Oakland Seals
6.2714.29
Carolina Hurricanes5.8921
Chicago Blackhawks5.8821
Cleveland Barons5.8820.87
Colorado Avalanche10.396.57
Colorado Rockies15.475.88
Columbus Blue Jackets16.545.88
Dallas Stars7.3420.87
Detroit Red Wings5.885.88
Edmonton Oilers16.544.86
Florida Panthers5.886.02
Hartford Whalers15.476.72
Kansas City Scouts16.545.88
Los Angeles Kings20.878.84
Minnesota North Stars5.487.48
Minnesota Wild10.597.5
Montreal Canadiens7.515.42
Montreal Maroons10.3910.39
Montreal Wanderers4.854.85
Nashville Predators16.549.55
New Jersey Devils5.8820.87
New York Islanders11.856.14
New York Rangers10.65.88
Ottawa Senators20.875.88
Ottawa Senators (original)5.8820.87
Philadelphia Flyers20.875.92
Pittsburgh Penguins20.8712.05
Quebec Nordiques4.895.88
San Jose Sharks7.026.7
Seattle Kraken18.6411.64
St. Louis Blues11.859.55
Tampa Bay Lightning15.4715.47
Toronto Maple Leafs
Also known as Toronto Hockey Club
Also known as Toronto Arenas
15.4715.47
Toronto St. Patricks6.726.72
Vancouver Canucks13.914.58
Vegas Golden Knights10.87.59
Washington Capitals5.8816.54
Winnipeg Jets16.545.17
Winnipeg Jets (1972–1996)
Also known as Winnipeg Jets (1972-1996)
14.765.88
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.