Module:Sports color/esports

MyWikiBiz, Author Your Legacy — Saturday November 16, 2024
< Module:Sports color
Revision as of 06:08, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Template:Module rating

This is the data module used by Module:Sports color.

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.

Choosing colors

In general:

  • First color is the team's primary color, used for backgrounds.
  • Second color is the font color that goes well with the first as its background. Should typically be black or white.
  • Third color is the team's secondary color, used for backgrounds.
  • Fourth color is the font color that goes well with the third as its background. Should typically be black or white.

Colors must at a minimum satisfy Web Content Accessibility Guidelines (WCAG) AA (contrast ratio of at least 4.5), and, if possible, satisfy WCAG AAA (contrast ratio of at least 7.0). The WebAIM Contrast Checker is a good tool to check colors.

Test table

Team1234Contrast
1/24/3
100 Thieves4.5221
76ers GC5.564.83
ATL Academy9.1812.82
Astralis4.8121
Atlanta Faze
Also known as Atlanta FaZe
4.521
Atlanta Reign
Also known as ATL
9.1812.82
Bilibili Gaming7.3510.35
Blazer5 Gaming214.84
Boston Uprising
Also known as BOS
8.4315.33
British Hurricane14.4511.04
Bucks Gaming10.958.46
Cavs Legion GC10.3912.12
Celtics Crossover Gaming4.847.66
Chengdu Hunters
Also known as CDH
107.26
Chicago Huntsmen8.986.14
Cloud98.989.79
Complexity Gaming148.79
Counter Logic Gaming8.715.14
Dallas Empire8.3121
Dallas Fuel
Also known as DAL
15.934.95
Dignitas13.9819.17
Eternal Academy10.899.58
Evil Geniuses18.713.98
FaZe Clan4.521
Florida Mayhem
Also known as FLA
5.8221
Florida Mutineers9.247.02
FlyQuest8.748.7
Fnatic6.6821
FunPlus Phoenix4.6421
Fusion University9.9521
G2 Esports214.69
Gen.G216.34
Gladiators Legion9.6921
Golden Guardians10.621
Grizz Gaming14.335.79
Guangzhou Charge
Also known as GZC
14.347.39
Hangzhou Spark
Also known as HZS
9.929.07
Hawks Talon GC5.8812.15
Heat Check Gaming218.84
Hornets Venom GT5.1716.14
Houston Outlaws
Also known as HOU
2112.04
Immortals7.9512.66
Jazz Gaming14.46.91
Kings Guard Gaming9.874.98
Knicks Gaming5.568.21
LGE.Huya11.0321
Lakers Gaming10.6112.15
London Royal Ravens13.345.65
London Spitfire
Also known as LDN
11.0410.81
Los Angeles Gladiators
Also known as GLA
15.121
Los Angeles Guerrillas8.3621
Los Angeles Thieves4.5221
Los Angeles Valiant
Also known as VAL
9.3714.37
Luminosity Gaming9.4214.59
Made in Brazil
Also known as MIBR
2113.8
Magic Gaming4.7721
Mavs Gaming6.0711.86
Minnesota ROKKR
Also known as Minnesota RØKKR
12.98.6
Montreal Rebellion7.0221
NRG Esports2121
Natus Vincere17.9521
Nets GC2121
New York Excelsior
Also known as NYE
16.677.07
New York Subliners16.6517.72
OG15.0513.89
OpTic Chicago12.219.93
PSG Esports11.234.65
Pacers Gaming13.537.94
Paris Eternal
Also known as PAR
10.899.58
Paris Legion8.128.45
Philadelphia Fusion
Also known as PHI
9.9521
Pistons GT5.564.83
Raptors Uprising GC5.5521
Renegades12.27.58
Rogue8.7315.77
RunAway7.7113.76
San Francisco Shock
Also known as SFS
219.12
Schalke 048.458.45
Seattle Surge7.1315.31
Seoul Dynasty
Also known as SEO
217.98
Shanghai Dragons
Also known as SHD
5.1621
T-Wolves Gaming15.796.91
T14.9121
Team CC7.245.1
Team Envy15.794.89
Team SoloMid2121
Team Vitality13.4616.34
Tempo Storm5.0417.22
The One Winner4.534.55
Toronto Defiant
Also known as TOR
216.38
Toronto Ultra6.721
Ultra Prime Academy14.1913.8
Uprising Academy9.5315.19
Vancouver Titans
Also known as VAN
14.44.59
Virtus.pro7.817.85
Warriors Gaming Squad5.568.56
Washington Justice
Also known as WAS
8.7412.02
Wizards District Gaming144.72
XL2 Academy16.675.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.

return {
-- Multi-team --
["100 Thieves"] = {"E91C1C","FFFFFF","000000","FFFFFF"},
["Astralis"] = {"E60000","FFFFFF","000000","FFFFFF"},
["Bilibili Gaming"] = {"0341E2","FFFFFF","FEA12A","000000"},
["Complexity Gaming"] = {"002B5C","FFFFFF","A1A9AC","000000"},
["Counter Logic Gaming"] = {"00B5E2","000000","DC0031","FFFFFF"},
["Cloud9"] = {"05B4FF","000000","B1B1B1","000000"},
["Dignitas"] = {"FFCD00","000000","0F0F0F","FFFFFF"},
["Evil Geniuses"] = {"0C1220","FFFFFF","D1D3D4","000000"},
["FaZe Clan"] = {"E22F22","FFFFFF","000000","FFFFFF"},
["Fnatic"] = {"FF5900","000000","000000","FFFFFF"},
["FunPlus Phoenix"] = {"E90D01","FFFFFF","000000","FFFFFF"},
["Gen.G"] = {"000000", "FFFFFF", "AA8A00", "000000"},
["G2 Esports"] = {"000000","FFFFFF","E1251B","FFFFFF"},
["Immortals"] = {"01B2AA","000000","333331","FFFFFF"},
["Luminosity Gaming"] = {"3CBCDC","000000","082B44","FFFFFF"},
["Made in Brazil"] = {"000000","FFFFFF","cfd2d2","000000"},
 ["MIBR"] = "Made in Brazil",
["Natus Vincere"] = {"FFF200","000000","000000","FFFFFF"},
["NRG Esports"] = {"000000","FFFFFF","FFFFFF","000000"},
["OG"] = {"022554", "ffffff", "ffcc00", "000000"},
["PSG Esports"] = {"003665","F5F5F5","D32A31","F5F5F5"},
["Renegades"] = {"6F090E","FFFFFF","CC9026","000000"},
["Rogue"] = {"00B1FF","000000","00253D","FFFFFF"},
["Schalke 04"] = {"004B9C","FFFFFF","004B9C","FFFFFF"},
["T1"] = {"E2012D","FFFFFF","000000","FFFFFF"},
["Team Envy"] = {"0C2340","FFFFFF","0072CE","FFFFFF"},
["Team SoloMid"] = {"000000","FFFFFF","FFFFFF","000000"},
["Team Vitality"] = {"FFC72C","000000","221C35","FFFFFF"},
["Tempo Storm"] = {"0173BA","FFFFFF","1B1B1B","FFFFFF"},
["Virtus.pro"] = {"FF7433","000000","111821","FFFFFF"},
-- League of Legends --
["FlyQuest"] = {"17562C", "FFFFFF", "D19F2A","000000"},
["Golden Guardians"] = {"E0B158", "000000", "000000","FFFFFF"},
-- NBA 2K League --
["76ers GC"] = {"006BB6", "FFFFFF", "ED174C", "000000"},
["Blazer5 Gaming"] = {"000000", "FFFFFF", "E03A3E", "000000"},
["Bucks Gaming"] = {"00471B", "FFFFFF", "EEE1C6", "00471B"},
["Cavs Legion GC"] = {"6F263D", "FFFFFF", "FFB81C", "000000"},
["Celtics Crossover Gaming"] = {"008348", "FFFFFF", "BB9753", "000000"},
["Grizz Gaming"] = {"00285E", "FFFFFF", "6189B9", "000000"},
["Hawks Talon GC"] = {"C8102E", "FFFFFF", "FDB927", "000000"},
["Heat Check Gaming"] = {"000000", "FFFFFF", "98002E", "FFFFFF"},
["Hornets Venom GT"] = {"00788C", "FFFFFF", "1D1160", "FFFFFF"},
["Jazz Gaming"] = {"00285C", "FFFFFF", "F9A01B", "00285C"},
["Kings Guard Gaming"] = {"5A2D81", "FFFFFF", "63727A", "FFFFFF"},
["Knicks Gaming"] = {"006BB6", "FFFFFF", "F58426", "000000"},
["Lakers Gaming"] = {"552583", "FFFFFF", "FDB927", "000000"},
["Magic Gaming"] = {"0077C0", "FFFFFF", "000000", "FFFFFF"},
["Mavs Gaming"] = {"0064B1", "FFFFFF", "BBC4CA", "000000"},
["Nets GC"] = {"000000", "FFFFFF", "FFFFFF", "000000"},
["Pacers Gaming"] = {"002D62", "FFFFFF", "FDBB30", "002D62"},
["Pistons GT"] = {"006BB6", "FFFFFF", "ED174C", "000000"},
["Raptors Uprising GC"] = {"CE1141", "FFFFFF", "000000", "FFFFFF"},
["T-Wolves Gaming"] = {"0C2340", "FFFFFF", "78BE20", "0C2340"},
["Warriors Gaming Squad"] = {"006BB6", "FFFFFF", "FDB927", "26282A"},
["Wizards District Gaming"] = {"002B5C", "FFFFFF", "E31837", "FFFFFF"},
-- OWL --
["Atlanta Reign"] = {"910F1B","FFFFFF","323232","FFFFFF"},
 ["ATL"] = "Atlanta Reign",
["Boston Uprising"] = {"174B97","FFFFFF","F5DE01","000000"},
 ["BOS"] = "Boston Uprising",
["Chengdu Hunters"] = {"FD9D0A","000000","B4926A","000000"},
 ["CDH"] = "Chengdu Hunters",
["Dallas Fuel"] = {"032340","FFFFFF","0071CD","FFFFFF"},
 ["DAL"] = "Dallas Fuel",
["Florida Mayhem"] = {"E04AB6","000000","000000","FFFFFF"},
 ["FLA"] = "Florida Mayhem",
["Guangzhou Charge"] = {"122C42","FFFFFF","67A2B2","000000"},
 ["GZC"] = "Guangzhou Charge",
["Hangzhou Spark"] = {"FB93B2","000000","88ADDD","000000"},
 ["HZS"] = "Hangzhou Spark",
["Houston Outlaws"] = {"000000","FFFFFF","97D700","000000"},
 ["HOU"] = "Houston Outlaws",
["London Spitfire"] = {"59CAE8","000000","FFA64D","000000"},
 ["LDN"] = "London Spitfire",
["Los Angeles Gladiators"] = {"3C1053","FFFFFF","000000","FFFFFF"},
 ["GLA"] = "Los Angeles Gladiators",
["Los Angeles Valiant"] = {"57B7EA","000000","FFD100","000000"},
 ["VAL"] = "Los Angeles Valiant",
["New York Excelsior"] = {"171C38","FFFFFF","0D4DCE","FFFFFF"},
 ["NYE"] = "New York Excelsior",
["Paris Eternal"] = {"303D56","FFFFFF","8D052D","FFFFFF"},
 ["PAR"] = "Paris Eternal",
["Philadelphia Fusion"] = {"F99E29","000000","000000","FFFFFF"},
 ["PHI"] = "Philadelphia Fusion",
["San Francisco Shock"] = {"000000","FFFFFF","A5ACAF","000000"},
 ["SFS"] = "San Francisco Shock",
["Seoul Dynasty"] = {"000000","FFFFFF","C29B00","000000"},
 ["SEO"] = "Seoul Dynasty",
["Shanghai Dragons"] = {"D22730","FFFFFF","000000","FFFFFF"},
 ["SHD"] = "Shanghai Dragons",
["Toronto Defiant"] = {"000000","FFFFFF","C10021","FFFFFF"},
 ["TOR"] = "Toronto Defiant",
["Vancouver Titans"] = {"0A226C","FFFFFF","278722","FFFFFF"},
 ["VAN"] = "Vancouver Titans",
["Washington Justice"] = {"990034","FFFFFF","003768","FFFFFF"},
 ["WAS"] = "Washington Justice",
-- OWC --
["ATL Academy"] = {"910F1B","FFFFFF","323232","FFFFFF"},
["Uprising Academy"] = {"064196","FFFFFF","EEDF00","000000"},
["British Hurricane"] = {"1B2B3A","FFFFFF","59CAE8","000000"},
["XL2 Academy"] = {"171C38","FFFFFF","0F57EA","FFFFFF"},
["Fusion University"] = {"F99E29","000000","000000","FFFFFF"},
["LGE.Huya"] = {"DAB866","000000","000000","FFFFFF"},
["Gladiators Legion"] = {"611E9B","FFFFFF","000000","FFFFFF"},
["The One Winner"] = {"EC0E15","FFFFFF","2878C8","FFFFFF"},
["Team CC"] = {"00A1E6","000000","D42728","FFFFFF"},
["RunAway"] = {"FF4FF7","000000","00E6FF","000000"},
["Montreal Rebellion"] = {"A52B31","FFFFFF","000000","FFFFFF"},
["Eternal Academy"] = {"303D56","FFFFFF","8D052D","FFFFFF"},
["Ultra Prime Academy"] = {"122d42","FFFFFF","50e6e6","000000"},
-- CDL --
["Atlanta Faze"] = {"E22F22","FFFFFF","000000","FFFFFF"},
 ["Atlanta FaZe"] = "Atlanta Faze",
["Chicago Huntsmen"] = {"20532E","FFFFFF","785d38","FFFFFF"},
["Dallas Empire"] = {"B4A269","000000","000000","FFFFFF"},
["Florida Mutineers"] = {"3BBFAD","000000","FE6148","000000"},
["London Royal Ravens"] = {"00109F","FFFFFF","CE0D2C","FFFFFF"},
["Los Angeles Guerrillas"] = {"6432A1","FFFFFF","000000","FFFFFF"},
["Los Angeles Thieves"] = {"E91C1C","FFFFFF","000000","FFFFFF"},
["Minnesota ROKKR"] = {"342766","FFFFFF","00B4E0","000000"},
 ["Minnesota RØKKR"] = "Minnesota ROKKR",
["New York Subliners"] = {"171C39","FFFFFF","FFF000","000000"},
["OpTic Chicago"] = {"9bd666","000000","090907","FFFFFF"},
["Paris Legion"] = {"9C182F","FFFFFF","F18A41","000000"},
["Seattle Surge"] = {"036077","FFFFFF","00F8CD","000000"},
["Toronto Ultra"] = {"780CF2","FFFFFF","000000","FFFFFF"},
}