Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding link support for Chess.com , 365Chess and Chessgames #5226

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
30 changes: 30 additions & 0 deletions standard/links/commons/links.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ local CustomData = Lua.requireIfExists('Module:Links/CustomData', {loadData = tr
local Links = {}

local PREFIXES = {
['365chess'] = {
'https://www.365chess.com/tournaments/',
player = 'https://www.365chess.com/players/',
match = 'https://www.365chess.com/game.php?gid=',
},
['5ewin'] = {
'https://arena.5eplay.com/tournament/',
player = 'https://arena.5eplay.com/data/player/',
Expand Down Expand Up @@ -62,6 +67,16 @@ local PREFIXES = {
'',
player = 'https://challonge.com/users/',
},
chesscom = {
'https://www.chess.com/',
player = 'https://www.chess.com/member/',
match = 'https://www.chess.com/games/view/',
},
chessgames = {
'https://www.chessgames.com/perl/chess.pl?tid=',
player = 'https://www.chessgames.com/perl/chessplayer?pid=',
match = 'https://www.chessgames.com/perl/chessgame?gid=',
},
chzzk = {'https://chzzk.naver.com/live/'},
civdraft = {match = 'https://aoe2cm.net/draft/'},
cntft = {'https://lol.qq.com/tft/#/masterDetail/'},
Expand Down Expand Up @@ -350,6 +365,11 @@ local ICON_KEYS_TO_RENAME = {
}

local MATCH_ICONS = {
['365chess'] = {
icon = 'File:365chess_allmode.png',
iconDark = 'File:365chess_allmode.png',
text = '365Chess matchpage'
},
ballchasing = {
icon = 'File:Ballchasing icon.png',
text = 'Ballchasing replays'
Expand All @@ -368,6 +388,16 @@ local MATCH_ICONS = {
icon = 'File:Challengermode icon.png',
text = 'Match page on Challengermode'
},
chesscom = {
icon = 'File:ChessCom_allmode.png',
iconDark = 'File:ChessCom_allmode.png',
text = 'Chess.com matchpage'
},
chessgames = {
icon = 'File:Chessgames_allmode.png',
iconDark = 'File:Chessgames_allmode.png',
text = 'Chessgames matchpage'
},
civdraft = {
text = 'Civ Draft',
icon = 'File:Civ Draft Icon.png'
Expand Down
3 changes: 3 additions & 0 deletions standard/links/commons/links_priority_groups.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ return {
'website'
},
league = {
'365chess',
'5ewin',
'abiosgaming',
'aligulac',
Expand All @@ -22,6 +23,8 @@ return {
'cfs',
'challengermode',
'challonge',
'chesscom',
'chessgames',
'cybergamer',
'datdota',
'dotabuff',
Expand Down
1 change: 1 addition & 0 deletions stylesheets/commons/Icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Note: When adding a new icon, please add to
.icon-make-image( cfs, "//liquipedia.net/commons/images/1/1e/InfoboxIcon_CFS.png" );
.icon-make-image( challengermode, "//liquipedia.net/commons/images/1/19/InfoboxIcon_Challengermode.png" );
.icon-make-image( challonge, "//liquipedia.net/commons/images/c/cd/InfoboxIcon_Challonge.png" );
.icon-make-image( chesscom, "//liquipedia.net/commons/images/1/10/InfoboxIcon_ChessCom.png" );
.icon-make-image( chzzk, "//liquipedia.net/commons/images/7/71/InfoboxIcon_CHZZK.png" );
.icon-make-image( cntft, "//liquipedia.net/commons/images/e/ea/InfoboxIcon_CNTFT.png" );
.icon-make-image( corestrike, "//liquipedia.net/commons/images/a/aa/InfoboxIcon_CoreStrike.png" );
Expand Down
Loading