模組:Sports color/esports
外观
![]() | 此模块已评为通行版,稳定可靠,可各处使用无误。已可在帮助页面和其他维基百科资源中提及,以帮助新用户学习。为降低服务器负载和错误输出,改善本模块前应进行沙盒测试,而不是重复的试错性编辑。 |
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 | |||||
100 Thieves | 4.23 | 21 | ||||
ATL Academy | 9.18 | 12.82 | ||||
Astralis | 4 | 21 | ||||
Atlanta Reign Also known as ATL | 9.18 | 12.82 | ||||
Bilibili Gaming | 7.35 | 10.35 | ||||
Boston Uprising Also known as BOS | 8.43 | 19.24 | ||||
British Hurricane | 14.45 | 11.04 | ||||
Chengdu Hunters Also known as CDH | 10.73 | 3 | ||||
Cloud9 | 2.62 | 9.79 | ||||
Complexity Gaming | 14 | 8.79 | ||||
Counter Logic Gaming | 2.41 | 5.14 | ||||
Dallas Fuel Also known as DAL | 15.93 | 4.95 | ||||
Dignitas | 13.98 | 19.17 | ||||
Eternal Academy | 10.89 | 9.58 | ||||
Evil Geniuses | 18.7 | 13.98 | ||||
FaZe Clan | 4.19 | 21 | ||||
Florida Mayhem Also known as FLA | 5.82 | 21 | ||||
Fnatic | 6.68 | 21 | ||||
Fusion University | 9.95 | 21 | ||||
G2 Esports | 21 | 4.34 | ||||
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 | ||||
Luminosity Gaming | 9.42 | 14.59 | ||||
Montreal Rebellion | 7.02 | 21 | ||||
NRG Esports | 21 | 21 | ||||
Natus Vincere | 17.95 | 21 | ||||
New York Excelsior Also known as NYE | 16.67 | 3.86 | ||||
OpTic Chicago | 11.58 | 19.93 | ||||
PSG Esports | 11.23 | 4.65 | ||||
Paris Eternal Also known as PAR | 10.89 | 9.58 | ||||
Philadelphia Fusion Also known as PHI | 9.95 | 21 | ||||
Renegades | 12.2 | 7.58 | ||||
Rogue | 8.73 | 15.77 | ||||
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 | ||||
Team CC | 3.32 | 5.1 | ||||
Team Envy | 15.79 | 4.89 | ||||
Team SoloMid | 21 | 21 | ||||
Team Vitality | 13.46 | 16.34 | ||||
Tempo Storm | 5.04 | 17.22 | ||||
The One Winner | 4.22 | 3.94 | ||||
Toronto Defiant Also known as TOR | 21 | 6.38 | ||||
Ultra Prime Academy | 14.19 | 13.8 | ||||
Uprising Academy | 9.53 | 15.19 | ||||
Vancouver Titans Also known as VAN | 14.4 | 3.2 | ||||
Virtus.pro | 3.3 | 17.85 | ||||
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 |
數字欄位部分為第一/第二以及第三/第四顏色的對比比值計算結果。如果數值低於3,代表該組顏色對比度很差,必須在資料模組部分進行更改。更多資訊請參考Template:Color contrast ratio。
上述文档嵌入自Module:Sports color/esports/doc。 (编辑 | 历史) 编者可以在本模块的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 本模块的子页面。 |
return {
-- Multi-team --
["100 Thieves"] = {"EA3031","FFFFFF","000000","FFFFFF"},
["Astralis"] = {"FF0000","FFFFFF","000000","FFFFFF"},
["Bilibili Gaming"] = {"0341E2","FFFFFF","FEA12A","000000"},
["Complexity Gaming"] = {"002B5C","FFFFFF","A1A9AC","000000"},
["Counter Logic Gaming"] = {"00B5E2","FFFFFF","DC0031","FFFFFF"},
["Cloud9"] = {"27ABE2","FFFFFF","B1B1B1","000000"},
["Dignitas"] = {"FFCD00","000000","0F0F0F","FFFFFF"},
["Evil Geniuses"] = {"0C1220","FFFFFF","D1D3D4","000000"},
["FaZe Clan"] = {"E43D30","FFFFFF","000000","FFFFFF"},
["Fnatic"] = {"FF5900","000000","000000","FFFFFF"},
["G2 Esports"] = {"000000","FFFFFF","ED2025","FFFFFF"},
["Luminosity Gaming"] = {"3CBCDC","000000","082B44","FFFFFF"},
["Natus Vincere"] = {"FFF200","000000","000000","FFFFFF"},
["NRG Esports"] = {"000000","FFFFFF","FFFFFF","000000"},
["PSG Esports"] = {"003665","F5F5F5","D32A31","F5F5F5"},
["Renegades"] = {"6F090E","FFFFFF","CC9026","000000"},
["Rogue"] = {"00B1FF","000000","00253D","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"] = {"FE5000","FFFFFF","111821","FFFFFF"},
-- OWL --
["Atlanta Reign"] = {"910F1B","FFFFFF","323232","FFFFFF"},
["ATL"] = "Atlanta Reign",
["Boston Uprising"] = {"174B97","FFFFFF","FFF995","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"},
["The One Winner"] = {"f21d23","FFFFFF","2e83d6","FFFFFF"},
["Team CC"] = {"0096D6","FFFFFF","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 --
["OpTic Chicago"] = {"9bd666","090907","090907","FFFFFF"},
}