Module:Sports color/esports
< Module:Sports color
Jump to navigation
Jump to search
Revision as of 23:03, 15 February 2020 by blackwiki>Pbrks (fla)
![]() | 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. |
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.
Test table
Team | 1 | 2 | 3 | 4 | Contrast | |
---|---|---|---|---|---|---|
1/2 | 4/3 | |||||
ATL Academy | 9.18 | 12.82 | ||||
Atlanta Reign Also known as ATL | 9.18 | 12.82 | ||||
Bilibili Gaming | 7.35 | 10.35 | ||||
Boston Uprising Also known as BOS | 8.43 | 17.85 | ||||
British Hurricane | 14.45 | 11.04 | ||||
Chengdu Hunters Also known as CDH | 10.73 | 3 | ||||
Dallas Fuel Also known as DAL | 15.93 | 4.95 | ||||
Eternal Academy | 10.89 | 9.58 | ||||
Florida Mayhem Also known as FLA | 5.82 | 21 | ||||
Fusion University | 9.95 | 21 | ||||
Gladiators Legion | 9.69 | 21 | ||||
Guangzhou Charge Also known as GZC | 14.34 | 3.05 | ||||
Hangzhou Spark Also known as HZS | 3.05 | 3.61 | ||||
Houston Outlaws Also known as HOU | 21 | 12.04 | ||||
LGE.Huya | 11.03 | 21 | ||||
London Spitfire Also known as LDN | 11.04 | 10.81 | ||||
Los Angeles Gladiators Also known as GLA | 15.1 | 21 | ||||
Los Angeles Valiant Also known as VAL | 3.91 | 14.37 | ||||
Montreal Rebellion | 7.02 | 21 | ||||
New York Excelsior Also known as NYE | 16.67 | 3.86 | ||||
Paris Eternal Also known as PAR | 10.89 | 9.58 | ||||
Philadelphia Fusion Also known as PHI | 9.95 | 21 | ||||
RunAway | 7.71 | 13.76 | ||||
San Francisco Shock Also known as SFS | 21 | 9.12 | ||||
Seoul Dynasty Also known as SEO | 21 | 3.3 | ||||
Shanghai Dragons Also known as SHD | 5.16 | 21 | ||||
T1 | 4.91 | 21 | ||||
T1w.GZA | 14.34 | 3.05 | ||||
Team CC | 3.32 | 5.1 | ||||
Team Envy | 15.79 | 4.89 | ||||
Toronto Defiant Also known as TOR | 21 | 6.38 | ||||
Uprising Academy | 9.53 | 15.19 | ||||
Vancouver Titans Also known as VAN | 14.4 | 3.2 | ||||
Washington Justice Also known as WAS | 8.74 | 12.02 | ||||
XL2 Academy | 16.67 | 5.88 | ||||
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 {
-- OWL --
["Atlanta Reign"] = {"910F1B","FFFFFF","323232","FFFFFF"},
["ATL"] = "Atlanta Reign",
["Boston Uprising"] = {"174B97","FFFFFF","FFF116","000000"},
["BOS"] = "Boston Uprising",
["Chengdu Hunters"] = {"FDA723","000000","B18F68","FFFFFF"},
["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","639CAC","FFFFFF"},
["GZC"] = "Guangzhou Charge",
["Hangzhou Spark"] = {"F3618B","FFFFFF","5788CE","FFFFFF"},
["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"] = {"1888C6","FFFFFF","FFD100","000000"},
["VAL"] = "Los Angeles Valiant",
["New York Excelsior"] = {"171C38","FFFFFF","FF1C26","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","AD8900","FFFFFF"},
["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","28A621","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"},
["Team CC"] = {"0096D6","FFFFFF","D42728","FFFFFF"},
["T1w.GZA"] = {"122C42","FFFFFF","639CAC","FFFFFF"},
["RunAway"] = {"FF4FF7","000000","00E6FF","000000"},
["Montreal Rebellion"] = {"A52B31","FFFFFF","000000","FFFFFF"},
["Eternal Academy"] = {"303D56","FFFFFF","8D052D","FFFFFF"},
-- Mult-team --
["Team Envy"] = {"0C2340","FFFFFF","0072CE","FFFFFF"},
["Bilibili Gaming"] = {"0341E2","FFFFFF","FEA12A","000000"},
["T1"] = {"E2012D","FFFFFF","000000","FFFFFF"},
}