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

feat(Links): Adding support for various Chess-related links #5226

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
41 changes: 41 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 @@ -116,6 +131,7 @@ local PREFIXES = {
['faceit-hub'] = {'https://www.faceit.com/en/hub/'},
['faceit-org'] = {'https://www.faceit.com/en/organizers/'},
fanclub = {''},
fide = {'https://ratings.fide.com/profile/'},
geoguessr = {'https://www.geoguessr.com/'},
gol = {match = 'https://gol.gg/game/stats/'},
gosugamers = {''},
Expand Down Expand Up @@ -150,6 +166,11 @@ local PREFIXES = {
player = 'https://gg.letsplay.live/profile/view-stats/',
match = 'https://old.letsplay.live/match/',
},
lichess = {
'https://lichess.org/broadcast/',
player = 'https://lichess.org/@/',
match = 'https://lichess.org/'
},
linkedin = {'https://www.linkedin.com/in/'},
loco = {'https://loco.gg/streamers/'},
lolchess = {'https://lolchess.gg/profile/'},
Expand Down Expand Up @@ -350,6 +371,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 +394,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 Expand Up @@ -425,6 +461,11 @@ local MATCH_ICONS = {
icon = 'File:JCG-BMS icon.png',
text = 'JCG matchpage'
},
lichess = {
icon = 'File:Lichess_lightmode.png',
iconDark = 'File:Lichess_darkmode.png',
text = 'Game page on Lichess'
},
logstf = {
icon = 'File:Logstf_icon.png',
text = 'logs.tf Match Page '
Expand Down
5 changes: 5 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 All @@ -35,11 +38,13 @@ return {
'faceit-c',
'faceit-hub',
'faceit-org',
'fide',
'gamersclub',
'geoguessr',
'halodatahive',
'letsplaylive',
'letsplaylive-old',
'lichess',
'matcherino',
'matcherinolink',
'nwc3l',
Expand Down
5 changes: 5 additions & 0 deletions stylesheets/commons/Icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Note: When adding a new icon, please add to
}
}
// Images
.icon-make-image( 365chess, "//liquipedia.net/commons/images/b/b5/InfoboxIcon_365Chess.png" );
.icon-make-image( 5ewin, "//liquipedia.net/commons/images/c/cf/InfoboxIcon_5Ewin.png" );
.icon-make-image( abios, "//liquipedia.net/commons/images/2/21/InfoboxIcon_Abios.png" );
.icon-make-image( afreeca, "//liquipedia.net/commons/images/7/7c/InfoboxIcon_Afreeca.png" );
Expand All @@ -63,6 +64,8 @@ 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( chessgames, "//liquipedia.net/commons/images/3/3a/InfoboxIcon_Chessgames.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 All @@ -87,6 +90,7 @@ Note: When adding a new icon, please add to
.icon-make-image( faceit, "//liquipedia.net/commons/images/e/e6/InfoboxIcon_FACEIT.png" );
.icon-make-image( factor, "//liquipedia.net/commons/images/1/15/InfoboxIcon_Factor.png" );
.icon-make-image( fanclub, "//liquipedia.net/commons/images/f/fe/InfoboxIcon_TLFanPage.png" );
.icon-make-image( fide, "//liquipedia.net/commons/images/8/8f/InfoboxIcon_FIDE.png" );
.icon-make-image( flickr, "//liquipedia.net/commons/images/d/d2/InfoboxIcon_Flickr.png" );
.icon-make-image( gamersclub, "//liquipedia.net/commons/images/a/a5/InfoboxIcon_Gamers_Club.png" );
.icon-make-image( garena, "//liquipedia.net/commons/images/6/6b/InfoboxIcon_Garena.png" );
Expand All @@ -110,6 +114,7 @@ Note: When adding a new icon, please add to
.icon-make-image( letsplaylive, "//liquipedia.net/commons/images/f/fa/InfoboxIcon_letsplay.live.png" );
.icon-make-image( letsplaylive-old, "//liquipedia.net/commons/images/2/2c/InfoboxIcon_LetsPlay.Live.png" );
.icon-make-image( linkedin, "//liquipedia.net/commons/images/9/97/InfoboxIcon_LinkedIn.png" );
.icon-make-image( lichess, "//liquipedia.net/commons/images/0/06/InfoboxIcon_Lichess.png" );
.icon-make-image( liquipedia, "//liquipedia.net/commons/images/d/de/InfoboxIcon_Liquipedia.png" );
.icon-make-image( loco, "//liquipedia.net/commons/images/0/06/InfoboxIcon_Loco.png" );
.icon-make-image( lolchess, "//liquipedia.net/commons/images/0/0f/InfoboxIcon_LoLCHESS.png" );
Expand Down
Loading