Module:Sports color/baseball

From IxWiki
Revision as of 11:18, 10 August 2020 by wp>Charlesaaronthompson (I reverted back the HTML color codes for the Brooklyn/Los Angeles Dodgers once again, this time so that the background color in the basestyle is white with team colored text, in order to provide color contrast against the primary color with white text background in the titlestyle.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the data module used by Module:Sports color. Please test any changes in Module:Sports color/baseball/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/baseball/sandbox first.

Test table

Team1234Contrast
1/24/3
Acereros de Monclova10.723.99
Adelaide Bite10.23.84
Algodoneros de Unión Laguna16.6616.66
American League6.2816.54
Arizona Diamondbacks7.4314.29
Atlanta Braves15.796.6
Auckland Tuatara6.8615.94
Baltimore Orioles215.01
Beijing Tigers19.5619.56
Boston Red Sox5.7614.03
Bravos de León8.45.05
Brisbane Bandits14.976.51
Brooklyn Dodgers7.147.14
California Angels12.836.75
Canberra Cavalry2.6521
Cangrejeros de Santurce14.963.95
Charros de Jalisco10.8210.82
Chiba Lotte Marines2113.13
Chicago Cubs11.445.11
Chicago Dogs2.284.35
Chicago White Sox2113.13
Chinatrust Brothers14.2721
Chunichi Dragons12.0712.07
Cincinnati Reds6.1321
Cleburne Railroaders14.925.92
Cleveland Indians144.71
Colorado Rockies15.3321
Criollos de Caguas6.233.6
Detroit Tigers13.94.74
Diablos Rojos del México5.325.32
Doosan Bears18.154.38
Eastern Reyes del Tigre2.4215.95
Evansville Otters14.2810.95
Fargo-Moorhead RedHawks215.53
Florida Marlins217.23
Fubon Guardians8.545.43
Fukuoka SoftBank Hawks13.8921
Gary SouthShore RailCats10.017.65
Gateway Grizzlies12.833.8
Generales de Durango12.127.26
Guangdong Leopards10.3714.85
Guerreros de Oaxaca2121
Hanshin Tigers2114.37
Hanwha Eagles7.1521
Henan Elephants12.615.74
High Point Rockers2.9312.67
Hiroshima Toyo Carp4.812.03
Hokkaido Nippon-Ham Fighters
Also known as Hokkaido Nippon Ham Fighters
8.2510.54
Houston Astros13.536.78
Houston Colt .45's13.536.78
Indios de Mayagüez7.092.21
Jiangsu Pegasus9.819.81
Joliet Slammers8.162.63
KT Wiz214.41
Kansas City Athletics4.8112.33
Kansas City Royals9.438.01
Kansas City T-Bones217.28
Kia Tigers6.0821
Kiwoom Heroes8.927.37
LG Twins215.93
Lake Erie Crushers5.495.49
Lamigo Monkeys6.838.78
Lancaster Barnstormers6.0410.01
Leones de Yucatán10.462.87
Lincoln Saltdogs17.032.62
Long Island Ducks8.657.64
Los Angeles Angels
Also known as Anaheim Angels
6.7512.83
Los Angeles Angels of Anaheim6.7512.83
Los Angeles Dodgers7.147.14
Lotte Giants14.085.12
Melbourne Aces7.0618.2
Miami Marlins217.32
Miami Marlins 2012thru2018217.15
Milwaukee Braves14.685.55
Milwaukee Brewers14.689.28
Milwaukee Milkmen2121
Minnesota Twins145.34
Montreal Expos11.854.85
NC Dinos7.84.98
National League16.546.28
New Jersey Jackals621
New York Boulders8.443.97
New York Giants216.66
New York Mets12.986.69
New York Yankees15.299.56
Oakland Athletics13.046.87
Olmecas de Tabasco4.534.53
Orix Buffaloes20.318.85
Osaka Kintetsu Buffaloes15.844.17
Pericos de Puebla5.735.73
Perth Heat6.8921
Philadelphia Athletics10.64.72
Philadelphia Phillies4.5712.16
Piratas de Campeche14.247.33
Pittsburgh Pirates2112.06
Québec Capitales6.796.79
Rakuten Monkeys6.536.53
Rieleros de Aguascalientes15.0610.23
Road Warriors5.637.37
SK Wyverns4.962.71
Saitama Seibu Lions11.056.71
Samsung Lions5.9111.54
San Diego Padres15.19.47
San Francisco Giants216.66
Saraperos de Saltillo7.277.27
Schaumburg Boomers217.74
Seattle Mariners13.97.82
Seattle Pilots14.7610.13
Shanghai Golden Eagles3.064.38
Sichuan Dragons5.125.5
Sioux City Explorers215.54
Sioux Falls Canaries6.6716.43
Somerset Patriots12.839.39
Southern Illinois Miners6.526.52
Southern Maryland Blue Crabs12.832.99
St. Louis Browns11.464.31
St. Louis Cardinals5.8417.62
St. Paul Saints7.847.84
Sugar Land Skeeters8.4418.61
Sultanes de Monterrey16.074.29
Sussex County Miners10.8810.88
Sydney Blue Sox2.8521
Tampa Bay Devil Rays13.0321
Tampa Bay Rays13.766.88
Team Texas15.6115.61
Tecolotes de los Dos Laredos
Also known as Tecolotes Dos Laredos
17.285.34
Texas AirHogs9.26.8
Texas Rangers12.166.29
Tianjin Lions5.1421
Tigres de Quintana Roo17.73.42
Tohoku Rakuten Golden Eagles10.3110.47
Tokyo Yakult Swallows5.018.01
Tomateros de Culiacán10.9510.95
Toronto Blue Jays8.7613.27
Toros de Tijuana216.59
Trois-Rivières Aigles216.8
Uni-President 7-Eleven Lions
Also known as Uni-President Lions
2.757.65
Washington Nationals7.6814.96
Washington Senators145.55
Washington Wild Things7.9721
Windy City ThunderBolts6.0221
Winnipeg Goldeyes5.8417.27
Yokohama DeNA BayStars
Also known as Yokohama BayStars
9.993.31
Yomiuri Giants321
York Revolution14.138.18
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 {
-- MLB --
["American League"] = {"BF0D3E", "FFFFFF", "041E42", "FFFFFF"},
["Arizona Diamondbacks"] = {"A71930", "FFFFFF", "E3D4AD", "000000"},
["Atlanta Braves"] = {"0C2340", "FFFFFF", "BA0C2F", "FFFFFF"},
["Baltimore Orioles"] = {"000000", "FFFFFF", "DF4601", "000000"},
["Boston Red Sox"] = {"BD3039", "FFFFFF", "0D2B56", "FFFFFF"},
["Chicago Cubs"] = {"0E3386", "FFFFFF", "CC3433", "FFFFFF"},
["Chicago White Sox"] = {"000000", "FFFFFF", "C4CED4", "000000"},
["Cincinnati Reds"] = {"C6011F", "FFFFFF", "000000", "FFFFFF"},
["Cleveland Indians"] = {"002B5C", "FFFFFF", "E31937", "FFFFFF"},
["Colorado Rockies"] = {"33006F", "FFFFFF", "000000", "FFFFFF"},
["Detroit Tigers"] = {"0C2C56", "FFFFFF", "FF6600", "0C2C56"},
["Houston Astros"] = {"002D62", "FFFFFF", "EB6E1F", "000000"},
["Kansas City Royals"] = {"004687", "FFFFFF", "C09A5B", "000000"},
["Los Angeles Angels of Anaheim"] = {"BA0021", "FFFFFF", "003263", "FFFFFF"},
["Los Angeles Angels"] = {"BA0021", "FFFFFF", "003263", "FFFFFF"},
  ["Anaheim Angels"] = "Los Angeles Angels",
["Los Angeles Dodgers"] = {"005A9C", "FFFFFF", "FFFFFF", "005A9C"},
["Miami Marlins"] = {"000000", "FFFFFF", "00A3E0", "000000"},
["Milwaukee Brewers"] = {"12284B", "FFFFFF", "FFC52F", "12284B"},
["Minnesota Twins"] = {"002B5C", "FFFFFF", "D31145", "FFFFFF"},
["National League"] = {"041E42", "FFFFFF", "BF0D3E", "FFFFFF"},
["New York Mets"] = {"002D72", "FFFFFF", "FF5910", "000000"},
["New York Yankees"] = {"132448", "FFFFFF", "C4CED4", "132448"},
["Oakland Athletics"] = {"003831", "FFFFFF", "EFB21E", "003831"},
["Philadelphia Phillies"] = {"E81828", "FFFFFF", "003278", "FFFFFF"},
["Pittsburgh Pirates"] = {"000000", "FFFFFF", "FDB827", "000000"},
["San Diego Padres"] = {"2F241D", "FFFFFF", "FFC425", "2F241D"},
["San Francisco Giants"] = {"000000", "FFFFFF", "FD5A1E", "000000"},
["Seattle Mariners"] = {"0C2C56", "FFFFFF", "005C5C", "FFFFFF"},
["St. Louis Cardinals"] = {"C41E3A", "FFFFFF", "000066", "FFFFFF"},
["Tampa Bay Rays"] = {"092C5C", "FFFFFF", "8FBCE6", "092C5C"},
["Texas Rangers"] = {"003278", "FFFFFF", "C0111F", "FFFFFF"},
["Toronto Blue Jays"] = {"134A8E", "FFFFFF", "1D2D5C", "FFFFFF"},
["Washington Nationals"] = {"AB0003", "FFFFFF", "11225B", "FFFFFF"},
-- Defunct MLB --
["Brooklyn Dodgers"] = {"005A9C", "FFFFFF", "FFFFFF", "005A9C"},
["California Angels"] = {"003263", "FFFFFF", "BA0021", "FFFFFF"},
["Florida Marlins"] = {"000000", "FFFFFF", "00A8B0", "000000"},
["Houston Colt .45's"] = {"002D62", "FFFFFF", "EB6E1F", "000000"},
["Kansas City Athletics"] = {"00843D", "FFFFFF", "FDBB30", "000000"},
["Miami Marlins 2012thru2018"] = {"000000", "FFFFFF", "FF6600", "000000"},
["Milwaukee Braves"] = {"13274F", "FFFFFF", "CE1141", "FFFFFF"},
["Montreal Expos"] = {"003087", "FFFFFF", "E4002B", "FFFFFF"},
["New York Giants"] = {"000000", "FFFFFF", "FD5A1E", "000000"},
["Philadelphia Athletics"] = {"0033A0", "FFFFFF", "E31837", "FFFFFF"},
["Seattle Pilots"] = {"012169", "FFFFFF", "FED141", "012169"},
["St. Louis Browns"] = {"5D2A2C", "FFFFFF", "DC4405", "FFFFFF"},
["Tampa Bay Devil Rays"] = {"013831", "FFFFFF", "000000", "FFFFFF"},
["Washington Senators"] = {"002B5C", "FFFFFF", "CE1141", "FFFFFF"},
-- Japan --
["Chunichi Dragons"] = {"003377", "ffffff", "003377", "FFFFFF"},
["Hanshin Tigers"] = {"000000", "ffffff", "ffd101", "000000"},
["Yomiuri Giants"] = {"FF6202", "FFFFFF", "000000", "FFFFFF"},
["Yokohama DeNA BayStars"] = {"003f8e", "FFFFFF", "0094e3", "FFFFFF"},
  ["Yokohama BayStars"] = "Yokohama DeNA BayStars",
["Tokyo Yakult Swallows"] = {"de1019", "FFFFFF", "05294d", "abcd05"},
["Hiroshima Toyo Carp"] = {"e60012", "FFFFFF", "01366c", "FFFFFF"},
["Hokkaido Nippon-Ham Fighters"] = {"00508f", "FFFFFF", "ccb67a", "000000"},
 ["Hokkaido Nippon Ham Fighters"] = "Hokkaido Nippon-Ham Fighters",
["Tohoku Rakuten Golden Eagles"] = {"870010", "FFFFFF", "ECAC00", "000000"},
["Saitama Seibu Lions"] = {"143D69", "FFFFFF", "BB0119", "FFFFFF"},
["Chiba Lotte Marines"] = {"000000", "FFFFFF", "C4CED4", "000000"},
["Orix Buffaloes"] = {"000320", "FFFFFF", "bbad38", "000320"},
["Fukuoka SoftBank Hawks"] = {"ffcc00", "000000", "000000", "ffffff"},
-- Defunct Japan --
["Osaka Kintetsu Buffaloes"] = {"152336", "FFFFFF", "e73a29", "FFFFFF"},
-- Korea --
["Doosan Bears"] = {"131230", "FFFFFF", "ED1C24", "FFFFFF"},
["Hanwha Eagles"] = {"FF6600", "000000", "000000", "FFFFFF"},
["Kia Tigers"] = {"C70026", "FFFFFF", "000000", "FFFFFF"},
["Kiwoom Heroes"] = {"990000", "FFFFFF", "999999", "000000"},
["KT Wiz"] = {"000000", "FFFFFF", "EC1C24", "FFFFFF"},
["LG Twins"] = {"000000", "FFFFFF", "C7004E", "FFFFFF"},
["Lotte Giants"] = {"002865", "FFFFFF", "DC0330", "FFFFFF"},
["NC Dinos"] = {"315288", "FFFFFF", "AF917B", "00275A"},
["Samsung Lions"] = {"0066B3", "FFFFFF", "C0C0C0", "000000"},
["SK Wyverns"] = {"E1002A", "FFFFFF", "EF8000", "FFFFFF"},
-- Taiwan --
["Uni-President 7-Eleven Lions"] = {"E88220", "FFFFFF", "000000", "E88220"},
  ["Uni-President Lions"] = "Uni-President 7-Eleven Lions",
["Fubon Guardians"] = {"004A9C", "FFFFFF", "CECECE", "004A9C"},
["Lamigo Monkeys"] = {"006090", "FFFFFF", "000000", "CF9F60"},
["Chinatrust Brothers"] = {"FFD000", "000000", "000000", "FFFFFF"},
["Rakuten Monkeys"] = {"BF0000", "FFFFFF", "FFFFFF", "BF0000"},
-- China --
["Beijing Tigers"] = {"000000", "FFFF00", "FFFF00", "000000"},
["Tianjin Lions"] = {"008000", "FFFFFF", "000000", "FFFFFF"},
["Sichuan Dragons"] = {"8B52A1", "FFFF00", "8B52A1", "FFFFFF"},
["Guangdong Leopards"] = {"191970", "FFD400", "191970", "FFFFFF"},
["Jiangsu Pegasus"] = {"FF9900", "000000", "FF9900", "000000"},
["Shanghai Golden Eagles"] = {"ED1C24", "FFD400", "ED1C24", "FFFFFF"},
["Henan Elephants"] = {"003366", "FFFFFF", "666666", "FFFFFF"},
-- Australia --
["Adelaide Bite"] = {"00295B", "FFD700", "D21044", "FFD700"},
["Auckland Tuatara"] = {"00665E", "FFFFFF", "0B2240", "FFFFFF"},
["Brisbane Bandits"] = {"000000", "FFD700", "950500", "FFD700"},
["Canberra Cavalry"] = {"FF7721", "FFFFFF", "000000", "FFFFFF"},
["Melbourne Aces"] = {"AA2506", "FFFFFF", "110E3D", "FFFFFF"},
["Perth Heat"] = {"B41502", "FFFFFF", "000000", "FFFFFF"},
["Sydney Blue Sox"] = {"56A0D3", "FFFFFF", "000000", "FFFFFF"},
-- Mexico --
["Rieleros de Aguascalientes"] = {"0E283F", "FFFFFF", "F9D21C", "0E283F"},
["Piratas de Campeche"] = {"032B53", "FFFFFF", "AC131B", "FFFFFF"},
["Tomateros de Culiacán"] = {"800000", "FFFFFF", "800000", "FFFFFF"},
["Generales de Durango"] = {"002C8B", "FFFFFF", "B20000", "FFFFFF"},
["Algodoneros de Unión Laguna"] = {"381117", "FFFFFF", "381117", "FFFFFF"},
["Tecolotes de los Dos Laredos"] = {"171345", "FFFFFF", "D02128", "FFFFFF"},
  ["Tecolotes Dos Laredos"] = "Tecolotes de los Dos Laredos",
["Charros de Jalisco"] = {"003988", "FFFFFF", "003988", "FFFFFF"},
["Bravos de León"] = {"001628", "EAA11F", "DF040A", "FFFFFF"},
["Diablos Rojos del México"] = {"D11F2F", "FFFFFF", "D11F2F", "FFFFFF"},
["Acereros de Monclova"] = {"253784", "FFFFFF", "FF000B", "FFFFFF"},
["Sultanes de Monterrey"] = {"082142", "FFFFFF", "E23941", "FFFFFF"},
["Guerreros de Oaxaca"] = {"000000", "FFFFFF", "000000", "FFFFFF"},
["Pericos de Puebla"] = {"0B5541", "EDD03D", "0B5541", "EDD03D"},
["Tigres de Quintana Roo"] = {"0E0D4E", "FFFFFF", "EF592F", "FFFFFF"},
["Saraperos de Saltillo"] = {"006163", "FFFFFF", "006163", "FFFFFF"},
["Olmecas de Tabasco"] = {"41844F", "FFFFFF", "41844F", "FFFFFF"},
["Toros de Tijuana"] = {"000000", "FFFFFF", "B42127", "FFFFFF"},
["Leones de Yucatán"] = {"004A26", "FFFFFF", "FF6A12", "FFFFFF"},
-- Puerto Rico --
["Cangrejeros de Santurce"] = {"11225B", "FFFFFF", "808080", "FFFFFF"},
["Criollos de Caguas"] = {"C20B26", "FFFFFF", "878785", "FFFFFF"},
["Indios de Mayagüez"] = {"97374A", "FFFFFF", "FB9626", "FFFFFF"},
-- Independent --
["Lancaster Barnstormers"] = {"C41230", "FFFFFF", "040204", "D4AE80"},
["Southern Maryland Blue Crabs"] = {"003263 ", "FFFFFF", "669AC9", "FFFFFF"},
["Sugar Land Skeeters"] = {"0047AB", "FFFFFF", "000000", "FCF75E"},
["York Revolution"] = {"002A5C", "FFFFFF", "FDB930", "002A5C"},
["High Point Rockers"] = {"E61F31", "FBC918", "252E65", "FFFFFF"},
["Long Island Ducks"] = {"045739 ", "FFFFFF", "F47939", "000000"},
["Road Warriors"] = {"CE1126", "FFFFFF", "000000", "999999"},
["Somerset Patriots"] = {"003263", "FFFFFF", "910029", "FFFFFF"},
["Fargo-Moorhead RedHawks"] = {"000000", "FFFFFF", "D0112B", "FFFFFF"},
["Chicago Dogs"] = {"62B4E6", "FFFFFF", "EE1B2C", "FFFFFF"},
["Sioux Falls Canaries"] = {"015DAA", "FFFFFF", "000000", "FEE514"},
["St. Paul Saints"] = {"0150A3", "FFFFFF", "0150A3", "FFFFFF"},
["Winnipeg Goldeyes"] = {"C41E3A", "FFFFFF", "001450", "FFFFFF"},
["Gary SouthShore RailCats"] = {"114B3D", "FFFFFF", "8C3931", "FFFFFF"},
["Kansas City T-Bones"] = {"000000", "FFFFFF", "A61D45", "FFFFFF"},
["Lincoln Saltdogs"] = {"001D38", "FFFFFF", "B6A010", "FFFFFF"},
["Sioux City Explorers"] = {"000000", "FFFFFF", "C52D2E", "FFFFFF"},
["Cleburne Railroaders"] = {"001822", "F7E7C8", "939393", "001822"},
["Milwaukee Milkmen"] = {"000000", "FFFFFF", "000000", "FFFFFF"},
["Texas AirHogs"] = {"000000", "A5ADB0", "B02125", "FFFFFF"},
["New Jersey Jackals"] = {"C80815", "FFFFFF", "000000", "FFFFFF"},
["Québec Capitales"] = {"013674", "FEB827", "FEB827", "013674"},
["New York Boulders"] = {"0047AB", "FFFFFF", "FF0800", "FFFFFF"},
["Sussex County Miners"] = {"000000", "FFA824", "FFA824", "000000"},
["Trois-Rivières Aigles"] = {"000000", "FFFFFF", "b31b1b", "FFFFFF"},
["Lake Erie Crushers"] = {"765BA7", "FFFFFF", "765BA7", "FFFFFF"},
["Washington Wild Things"] = {"9F1922", "FFFFFF", "000000", "FFFFFF"},
["Evansville Otters"] = {"082567","FFFFFF", "800000", "FFFFFF"},
["Gateway Grizzlies"] = {"003263", "FFFFFF", "CF7518","003263"},
["Southern Illinois Miners"] = {"000000", "B7872D", "B7872D", "000000"},
["Windy City ThunderBolts"]= {"2560BD", "FFFFFF", "000000", "FFFFFF"},
["Joliet Slammers"] = {"055B3E", "FFFFFF", "F48034", "FFFFFF"},
["Schaumburg Boomers"] = {"000000", "FFFFFF", "F57B20", "000000"},
["Team Texas"] = {"000000", "DEDEDE", "000000", "DEDEDE"},
["Eastern Reyes del Tigre"] = {"EE8446", "F4F6FA", "121641", "F4F6FA"},
}