From 21da591f676e7f74ef464f7c19d8916f8ec6c7b9 Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Fri, 20 Dec 2024 16:08:51 +0700 Subject: [PATCH 01/13] Adding link support for Chess.com --- standard/links/commons/links.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/standard/links/commons/links.lua b/standard/links/commons/links.lua index b0a70b5bdc5..45c5a49af07 100644 --- a/standard/links/commons/links.lua +++ b/standard/links/commons/links.lua @@ -50,6 +50,7 @@ local PREFIXES = { booyah = {'https://booyah.live/'}, bracket = {''}, breakingpoint = {match = 'https://www.breakingpoint.gg/match/'}, + chesscom = {'https://www.chess.com/'}, cc = {'https://cc.163.com/'}, cdl = {match = 'https://callofdutyleague.com/en-us/match/'}, challengermode = { @@ -359,6 +360,11 @@ local MATCH_ICONS = { iconDark = 'File:Breaking Point GG icon darkmode.png', text = 'Breaking Point matchpage' }, + chesscom = { + icon = 'File:ChessCom_allmode.png', + iconDark = 'File:ChessCom_allmode.png', + text = 'Chess.com matchpage' + }, cdl = { icon = 'File:Call of Duty League lightmode.png', iconDark = 'File:Call of Duty League darkmode.png', From 75b0199eb9dd3e447808d7fbe81c5ae305c65fab Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Fri, 20 Dec 2024 16:13:59 +0700 Subject: [PATCH 02/13] Update links_priority_groups.lua --- standard/links/commons/links_priority_groups.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/standard/links/commons/links_priority_groups.lua b/standard/links/commons/links_priority_groups.lua index d0b6668739d..30d58953b24 100644 --- a/standard/links/commons/links_priority_groups.lua +++ b/standard/links/commons/links_priority_groups.lua @@ -22,6 +22,7 @@ return { 'cfs', 'challengermode', 'challonge', + 'chesscom', 'cybergamer', 'datdota', 'dotabuff', From 45ccd0c74f443300e5a7306b34142ba8229ebbe1 Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Fri, 20 Dec 2024 16:17:03 +0700 Subject: [PATCH 03/13] Update Icons.less --- stylesheets/commons/Icons.less | 1 + 1 file changed, 1 insertion(+) diff --git a/stylesheets/commons/Icons.less b/stylesheets/commons/Icons.less index e9d0f91d063..e9d29c2a4d7 100644 --- a/stylesheets/commons/Icons.less +++ b/stylesheets/commons/Icons.less @@ -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" ); From bfa6f9b6ac129c1e0ee651da7551d33515d0aaf6 Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Fri, 20 Dec 2024 23:09:43 +0700 Subject: [PATCH 04/13] Update links.lua --- standard/links/commons/links.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standard/links/commons/links.lua b/standard/links/commons/links.lua index 45c5a49af07..955469becec 100644 --- a/standard/links/commons/links.lua +++ b/standard/links/commons/links.lua @@ -50,7 +50,7 @@ local PREFIXES = { booyah = {'https://booyah.live/'}, bracket = {''}, breakingpoint = {match = 'https://www.breakingpoint.gg/match/'}, - chesscom = {'https://www.chess.com/'}, + chesscom = {match = 'https://www.chess.com/'}, cc = {'https://cc.163.com/'}, cdl = {match = 'https://callofdutyleague.com/en-us/match/'}, challengermode = { From d5cf699dc142b520c5a580ed79c376553481666e Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Sat, 21 Dec 2024 21:57:19 +0700 Subject: [PATCH 05/13] Tell me if this is the correct way for when inputting in Infobox gives you a different preset url, then in a match gives you another different one --- standard/links/commons/links.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/standard/links/commons/links.lua b/standard/links/commons/links.lua index 955469becec..fea1f17d463 100644 --- a/standard/links/commons/links.lua +++ b/standard/links/commons/links.lua @@ -50,7 +50,10 @@ local PREFIXES = { booyah = {'https://booyah.live/'}, bracket = {''}, breakingpoint = {match = 'https://www.breakingpoint.gg/match/'}, - chesscom = {match = 'https://www.chess.com/'}, + chesscom = { + 'https://www.chess.com/', + match = 'https://www.chess.com/games/view' + }, cc = {'https://cc.163.com/'}, cdl = {match = 'https://callofdutyleague.com/en-us/match/'}, challengermode = { From 01f63ae71efc8c7e7a97ec20c1c25432c45891b3 Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Sat, 21 Dec 2024 22:06:53 +0700 Subject: [PATCH 06/13] Update links.lua --- standard/links/commons/links.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standard/links/commons/links.lua b/standard/links/commons/links.lua index fea1f17d463..d8df68b6ff5 100644 --- a/standard/links/commons/links.lua +++ b/standard/links/commons/links.lua @@ -52,7 +52,7 @@ local PREFIXES = { breakingpoint = {match = 'https://www.breakingpoint.gg/match/'}, chesscom = { 'https://www.chess.com/', - match = 'https://www.chess.com/games/view' + match = 'https://www.chess.com/games/view/', }, cc = {'https://cc.163.com/'}, cdl = {match = 'https://callofdutyleague.com/en-us/match/'}, From 35ede589de64fac92154cbfe146e952b8d4eb6d2 Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Sat, 21 Dec 2024 23:26:34 +0700 Subject: [PATCH 07/13] Update links.lua --- standard/links/commons/links.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/standard/links/commons/links.lua b/standard/links/commons/links.lua index d8df68b6ff5..2f80ac71a8e 100644 --- a/standard/links/commons/links.lua +++ b/standard/links/commons/links.lua @@ -52,6 +52,7 @@ local PREFIXES = { breakingpoint = {match = 'https://www.breakingpoint.gg/match/'}, chesscom = { 'https://www.chess.com/', + player = 'https://www.chess.com/member/', match = 'https://www.chess.com/games/view/', }, cc = {'https://cc.163.com/'}, From cbfab94c85a6753bec87593317ded1cfea1d9116 Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Tue, 24 Dec 2024 18:32:58 +0700 Subject: [PATCH 08/13] Update links_priority_groups.lua --- standard/links/commons/links_priority_groups.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/standard/links/commons/links_priority_groups.lua b/standard/links/commons/links_priority_groups.lua index 30d58953b24..24675bf1940 100644 --- a/standard/links/commons/links_priority_groups.lua +++ b/standard/links/commons/links_priority_groups.lua @@ -22,7 +22,9 @@ return { 'cfs', 'challengermode', 'challonge', + 'chess365', 'chesscom', + 'chessgames', 'cybergamer', 'datdota', 'dotabuff', From c458656fad4a37f3ec240e8647aa2ead81ea4147 Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Tue, 24 Dec 2024 18:37:39 +0700 Subject: [PATCH 09/13] add 365chess and chessgames part 1 --- standard/links/commons/links.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/standard/links/commons/links.lua b/standard/links/commons/links.lua index 2f80ac71a8e..eecd62150f9 100644 --- a/standard/links/commons/links.lua +++ b/standard/links/commons/links.lua @@ -50,6 +50,16 @@ local PREFIXES = { booyah = {'https://booyah.live/'}, bracket = {''}, breakingpoint = {match = 'https://www.breakingpoint.gg/match/'}, + ['365chess'] = { + 'https://www.365chess.com/tournaments/', + player = 'https://www.365chess.com/players/', + match = 'https://www.365chess.com/game.php?gid=', + }, + 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=', + }, chesscom = { 'https://www.chess.com/', player = 'https://www.chess.com/member/', From a99a70b626ed42b8d6bda066156afad6810fdb96 Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Tue, 24 Dec 2024 19:02:18 +0700 Subject: [PATCH 10/13] Update part 2 --- standard/links/commons/links.lua | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/standard/links/commons/links.lua b/standard/links/commons/links.lua index eecd62150f9..d13e69575ac 100644 --- a/standard/links/commons/links.lua +++ b/standard/links/commons/links.lua @@ -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/', @@ -50,11 +55,6 @@ local PREFIXES = { booyah = {'https://booyah.live/'}, bracket = {''}, breakingpoint = {match = 'https://www.breakingpoint.gg/match/'}, - ['365chess'] = { - 'https://www.365chess.com/tournaments/', - player = 'https://www.365chess.com/players/', - match = 'https://www.365chess.com/game.php?gid=', - }, chessgames = { 'https://www.chessgames.com/perl/chess.pl?tid=', player = 'https://www.chessgames.com/perl/chessplayer?pid=', @@ -365,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' @@ -374,6 +379,11 @@ local MATCH_ICONS = { iconDark = 'File:Breaking Point GG icon darkmode.png', text = 'Breaking Point matchpage' }, + chessgames = { + icon = 'File:Chessgames_allmode.png', + iconDark = 'File:Chessgames_allmode.png', + text = 'Chessgames matchpage' + }, chesscom = { icon = 'File:ChessCom_allmode.png', iconDark = 'File:ChessCom_allmode.png', From 2e4d364a527b37fde84ea9b288aadba6ccc1d87e Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Tue, 24 Dec 2024 19:05:00 +0700 Subject: [PATCH 11/13] links reordering --- standard/links/commons/links.lua | 40 ++++++++++++++++---------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/standard/links/commons/links.lua b/standard/links/commons/links.lua index d13e69575ac..91704ce304e 100644 --- a/standard/links/commons/links.lua +++ b/standard/links/commons/links.lua @@ -55,16 +55,6 @@ local PREFIXES = { booyah = {'https://booyah.live/'}, bracket = {''}, breakingpoint = {match = 'https://www.breakingpoint.gg/match/'}, - 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=', - }, - chesscom = { - 'https://www.chess.com/', - player = 'https://www.chess.com/member/', - match = 'https://www.chess.com/games/view/', - }, cc = {'https://cc.163.com/'}, cdl = {match = 'https://callofdutyleague.com/en-us/match/'}, challengermode = { @@ -77,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/'}, @@ -379,16 +379,6 @@ local MATCH_ICONS = { iconDark = 'File:Breaking Point GG icon darkmode.png', text = 'Breaking Point matchpage' }, - chessgames = { - icon = 'File:Chessgames_allmode.png', - iconDark = 'File:Chessgames_allmode.png', - text = 'Chessgames matchpage' - }, - chesscom = { - icon = 'File:ChessCom_allmode.png', - iconDark = 'File:ChessCom_allmode.png', - text = 'Chess.com matchpage' - }, cdl = { icon = 'File:Call of Duty League lightmode.png', iconDark = 'File:Call of Duty League darkmode.png', @@ -398,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' From e0a27104c10f5e019ce4bfd89fc6072b33f35b32 Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Tue, 24 Dec 2024 19:05:32 +0700 Subject: [PATCH 12/13] priority groups reordering --- standard/links/commons/links_priority_groups.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standard/links/commons/links_priority_groups.lua b/standard/links/commons/links_priority_groups.lua index 24675bf1940..7d6d8689c08 100644 --- a/standard/links/commons/links_priority_groups.lua +++ b/standard/links/commons/links_priority_groups.lua @@ -13,6 +13,7 @@ return { 'website' }, league = { + '365chess', '5ewin', 'abiosgaming', 'aligulac', @@ -22,7 +23,6 @@ return { 'cfs', 'challengermode', 'challonge', - 'chess365', 'chesscom', 'chessgames', 'cybergamer', From bee9c96b0c33f0d178edfde5f443245ce152df63 Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Tue, 24 Dec 2024 19:29:14 +0700 Subject: [PATCH 13/13] upload infobox icons files in commons --- stylesheets/commons/Icons.less | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stylesheets/commons/Icons.less b/stylesheets/commons/Icons.less index e9d29c2a4d7..a6d8e90f880 100644 --- a/stylesheets/commons/Icons.less +++ b/stylesheets/commons/Icons.less @@ -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" ); @@ -64,6 +65,7 @@ Note: When adding a new icon, please add to .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" );