模組: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
編輯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。