跳转到内容

模組:Sports color/esports/doc

维基百科,自由的百科全书

这是Module: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

Team1234Contrast
1/24/3
100 Thieves4.2321
ATL Academy9.1812.82
Astralis421
Atlanta Reign
Also known as ATL
9.1812.82
Bilibili Gaming7.3510.35
Boston Uprising
Also known as BOS
8.4319.24
British Hurricane14.4511.04
Chengdu Hunters
Also known as CDH
10.733
Cloud92.629.79
Complexity Gaming148.79
Counter Logic Gaming2.415.14
Dallas Fuel
Also known as DAL
15.934.95
Dignitas13.9819.17
Eternal Academy10.899.58
Evil Geniuses18.713.98
FaZe Clan4.1921
Florida Mayhem
Also known as FLA
5.8221
Fnatic6.6821
Fusion University9.9521
G2 Esports214.34
Gladiators Legion9.6921
Guangzhou Charge
Also known as GZC
14.343.05
Hangzhou Spark
Also known as HZS
3.053.61
Houston Outlaws
Also known as HOU
2112.04
LGE.Huya11.0321
London Spitfire
Also known as LDN
11.0410.81
Los Angeles Gladiators
Also known as GLA
15.121
Los Angeles Valiant
Also known as VAL
3.9114.37
Luminosity Gaming9.4214.59
Montreal Rebellion7.0221
NRG Esports2121
Natus Vincere17.9521
New York Excelsior
Also known as NYE
16.673.86
OpTic Chicago11.5819.93
PSG Esports11.234.65
Paris Eternal
Also known as PAR
10.899.58
Philadelphia Fusion
Also known as PHI
9.9521
Renegades12.27.58
Rogue8.7315.77
RunAway7.7113.76
San Francisco Shock
Also known as SFS
219.12
Seoul Dynasty
Also known as SEO
213.3
Shanghai Dragons
Also known as SHD
5.1621
T14.9121
Team CC3.325.1
Team Envy15.794.89
Team SoloMid2121
Team Vitality13.4616.34
Tempo Storm5.0417.22
The One Winner4.223.94
Toronto Defiant
Also known as TOR
216.38
Ultra Prime Academy14.1913.8
Uprising Academy9.5315.19
Vancouver Titans
Also known as VAN
14.43.2
Virtus.pro3.317.85
Washington Justice
Also known as WAS
8.7412.02
XL2 Academy16.675.88
Free agentXX15.31
RetiredXX15.31
數字欄位部分為第一/第二以及第三/第四顏色的對比比值計算結果。如果數值低於3,代表該組顏色對比度很差,必須在資料模組部分進行更改。更多資訊請參考Template:Color contrast ratio