From ba9985d4ebbbec8daf523e2d3e43d92c8d83d553 Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Tue, 24 Mar 2026 15:34:41 +0900 Subject: [PATCH 01/11] Add eva:Module:Info --- lua/wikis/eva/Info.lua | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 lua/wikis/eva/Info.lua diff --git a/lua/wikis/eva/Info.lua b/lua/wikis/eva/Info.lua new file mode 100644 index 00000000000..ea38f0d8d81 --- /dev/null +++ b/lua/wikis/eva/Info.lua @@ -0,0 +1,46 @@ +--- +-- @Liquipedia +-- page=Module:Info +-- +-- Please see https://github.com/Liquipedia/Lua-Modules to contribute +-- + +return { + startYear = 2017, + wikiName = 'eva', + name = 'EVA', + defaultGame = 'eva', + games = { + eva= { + abbreviation = 'EVA', + name = 'EVA', + link = 'Esports Virtual Arena', + logo = { + darkMode = 'EVA lightmode.png', + lightMode = 'EVA darkmode.png', + }, + defaultTeamLogo = { + darkMode = 'EVA lightmode.png', + lightMode = 'EVA darkmode.png', + }, + }, + }, + config = { + squads = { + hasPosition = false, + hasSpecialTeam = false, + allowManual = false, + }, + match2 = { + status = 2, + matchWidth = 180, + }, + infoboxPlayer = { + autoTeam = true, + automatedHistory = { + mode = 'automatic', + storeFromWikiCode = true, + }, + }, + }, +} From 0bcb2a7dc687ebadc97f28223a157c58f112075d Mon Sep 17 00:00:00 2001 From: Hesketh2 <88981446+Hesketh2@users.noreply.github.com> Date: Tue, 24 Mar 2026 15:35:34 +0900 Subject: [PATCH 02/11] Add eva:Module:FilterButtons/Config --- lua/wikis/eva/FilterButtons/Config.lua | 45 ++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 lua/wikis/eva/FilterButtons/Config.lua diff --git a/lua/wikis/eva/FilterButtons/Config.lua b/lua/wikis/eva/FilterButtons/Config.lua new file mode 100644 index 00000000000..57d1a4f4497 --- /dev/null +++ b/lua/wikis/eva/FilterButtons/Config.lua @@ -0,0 +1,45 @@ +--- +-- @Liquipedia +-- page=Module:FilterButtons/Config +-- +-- Please see https://github.com/Liquipedia/Lua-Modules to contribute +-- + +local Lua = require('Module:Lua') + +local Tier = Lua.import('Module:Tier/Utils') +local Config = {} + +Config.categories = { + { + name = 'liquipediatier', + property = 'liquipediaTier', + load = function(category) + category.items = {} + for _, tier in Tier.iterate('tiers') do + table.insert(category.items, tier.value) + end + end, + defaultItems = {'1', '2', '3'}, + transform = function(tier) + return Tier.toName(tier) + end, + expandKey = "liquipediatiertype", + }, + { + name = 'liquipediatiertype', + property = 'liquipediaTierType', + expandable = true, + load = function(category) + category.items = {} + for _, tiertype in Tier.iterate('tierTypes') do + table.insert(category.items, Tier.toIdentifier(tiertype.value)) + end + end, + transform = function(tiertype) + return select(2, Tier.toName(1, tiertype)) + end, + }, +} + +return Config From 40a437d33adb0900c7043bcf444eb404e3126f7c Mon Sep 17 00:00:00 2001 From: Jasper Jacobs <97167868+Kanopedia@users.noreply.github.com> Date: Tue, 24 Mar 2026 15:38:02 +0900 Subject: [PATCH 03/11] Add eva:Module:MainPageLayout/data --- lua/wikis/eva/MainPageLayout/data.lua | 213 ++++++++++++++++++++++++++ 1 file changed, 213 insertions(+) create mode 100644 lua/wikis/eva/MainPageLayout/data.lua diff --git a/lua/wikis/eva/MainPageLayout/data.lua b/lua/wikis/eva/MainPageLayout/data.lua new file mode 100644 index 00000000000..e26bf73d6f6 --- /dev/null +++ b/lua/wikis/eva/MainPageLayout/data.lua @@ -0,0 +1,213 @@ +--- +-- @Liquipedia +-- page=Module:MainPageLayout/data +-- +-- Please see https://github.com/Liquipedia/Lua-Modules to contribute +-- + +local Lua = require('Module:Lua') + +local MainPageLayoutUtil = Lua.import('Module:MainPageLayout/Util') + +local FilterButtonsWidget = Lua.import('Module:Widget/FilterButtons') +local MatchTicker = Lua.import('Module:Widget/MainPage/MatchTicker') +local TournamentsTicker = Lua.import('Module:Widget/Tournaments/Ticker') + +local HtmlWidgets = Lua.import('Module:Widget/Html/All') +local Div = HtmlWidgets.Div +local ThisDayWidgets = Lua.import('Module:Widget/MainPage/ThisDay') +local TransfersList = Lua.import('Module:Widget/MainPage/TransfersList') +local WantToHelp = Lua.import('Module:Widget/MainPage/WantToHelp') + +local CONTENT = { + usefulArticles = { + heading = 'Useful Articles', + body = '{{Liquipedia:Useful Articles}}', + padding = true, + boxid = MainPageLayoutUtil.BoxId.USEFUL_ARTICLES, + }, + wantToHelp = { + heading = 'Want To Help?', + body = WantToHelp{}, + padding = true, + boxid = MainPageLayoutUtil.BoxId.WANT_TO_HELP, + }, + transfers = { + heading = 'Transfers', + body = TransfersList{ + limit = 10, + transferPage = MainPageLayoutUtil.getYearlyTransferPage(), + }, + boxid = MainPageLayoutUtil.BoxId.TRANSFERS, + }, + thisDay = { + heading = ThisDayWidgets.Title(), + body = ThisDayWidgets.Content(), + padding = true, + boxid = MainPageLayoutUtil.BoxId.THIS_DAY, + }, + specialEvents = { + noPanel = true, + body = '{{Liquipedia:Special_Event}}', + boxid = 1516, + }, + filterButtons = { + noPanel = true, + body = Div{ + css = { width = '100%', ['margin-bottom'] = '8px' }, + children = { FilterButtonsWidget() } + } + }, + matches = { + heading = 'Matches', + body = MatchTicker{}, + padding = true, + boxid = MainPageLayoutUtil.BoxId.MATCH_TICKER, + }, + tournaments = { + heading = 'Tournaments', + body = TournamentsTicker{ + upcomingDays = 120, + completedDays = 120 + }, + padding = true, + boxid = MainPageLayoutUtil.BoxId.TOURNAMENTS_TICKER, + }, +} + +return { + banner = { + lightmode = 'EVA lightmode.png', + darkmode = 'EVA darkmode.png', + }, + metadesc = 'The EVA esports wiki covering everything from players, teams and transfers, ' .. + 'to tournaments and results, heroes, maps and weapons.', + title = 'EVA', + navigation = { + { + file = 'EVA Teams Portal Pill.jpg', + title = 'Teams', + link = 'Portal:Teams', + count = { + method = 'LPDB', + table = 'team', + }, + }, + { + file = 'EVA Players Portal Pill.jpg', + title = 'Players', + link = 'Portal:Players', + count = { + method = 'LPDB', + table = 'player', + }, + }, + { + file = 'EVA Tournaments Portal Pill.jpg', + title = 'Tournaments', + link = 'Portal:Tournaments', + count = { + method = 'LPDB', + table = 'tournament', + }, + }, + { + file = 'EVA Transfers Portal Pill.jpg', + title = 'Transfers', + link = 'Portal:Transfers', + count = { + method = 'LPDB', + table = 'transfer', + }, + }, + { + file = 'EVA Maps Portal Pill.png', + title = 'Maps', + link = 'Portal:Maps', + }, + { + file = 'EVA Heroes Portal Pill.png', + title = 'Heroes', + link = 'Portal:Heroes', + }, + { + file = 'EVA Weapons Portal Pill.png', + title = 'Weapons', + link = 'Portal:Weapons', + }, + { + file = 'NRG hodsic at the ALGS Mannheim Split 2 Playoffs.jpg', + title = 'Statistics', + link = 'Portal:Statistics', + }, + }, + layouts = { + main = { + { -- Left + sizes = {xxl = 5, xxxl = 6}, + children = { + { + mobileOrder = 1, + content = CONTENT.specialEvents, + }, + { + mobileOrder = 3, + content = CONTENT.transfers, + }, + { + mobileOrder = 5, + content = CONTENT.thisDay, + }, + { + mobileOrder = 6, + content = CONTENT.wantToHelp, + }, + } + }, + { -- Right + sizes = {xxl = 7, xxxl = 6}, + children = { + { + mobileOrder = 2, + children = { + { + children = { + { + noPanel = true, + content = CONTENT.filterButtons, + }, + }, + }, + { + size = 6, + children = { + { + noPanel = true, + content = CONTENT.matches, + }, + }, + }, + { + size = 6, + children = { + { + noPanel = true, + content = CONTENT.tournaments, + }, + }, + }, + }, + }, + }, + }, + { -- Bottom + children = { + { + mobileOrder = 5, + content = CONTENT.usefulArticles, + }, + }, + }, + }, + }, +} From 320d6d6223ab1a448e656f5e1833cd644055a150 Mon Sep 17 00:00:00 2001 From: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com> Date: Tue, 24 Mar 2026 19:33:35 +0900 Subject: [PATCH 04/11] kick storeFromWikiCode --- lua/wikis/eva/Info.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/lua/wikis/eva/Info.lua b/lua/wikis/eva/Info.lua index ea38f0d8d81..da90fa7d2d6 100644 --- a/lua/wikis/eva/Info.lua +++ b/lua/wikis/eva/Info.lua @@ -39,7 +39,6 @@ return { autoTeam = true, automatedHistory = { mode = 'automatic', - storeFromWikiCode = true, }, }, }, From 49dadd62adeb66a249c5941271fd3c9af0b6675d Mon Sep 17 00:00:00 2001 From: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com> Date: Tue, 24 Mar 2026 19:33:45 +0900 Subject: [PATCH 05/11] code style --- lua/wikis/eva/Info.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/wikis/eva/Info.lua b/lua/wikis/eva/Info.lua index da90fa7d2d6..75f435bd490 100644 --- a/lua/wikis/eva/Info.lua +++ b/lua/wikis/eva/Info.lua @@ -11,7 +11,7 @@ return { name = 'EVA', defaultGame = 'eva', games = { - eva= { + eva = { abbreviation = 'EVA', name = 'EVA', link = 'Esports Virtual Arena', From 794588a23c6fe41ddcddfe5166cbcb259edf91a5 Mon Sep 17 00:00:00 2001 From: Jasper Jacobs <97167868+Kanopedia@users.noreply.github.com> Date: Tue, 24 Mar 2026 12:02:58 +0100 Subject: [PATCH 06/11] Update Banner.scss --- stylesheets/commons/Banner.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stylesheets/commons/Banner.scss b/stylesheets/commons/Banner.scss index 75289cb8c9f..a34721e2710 100644 --- a/stylesheets/commons/Banner.scss +++ b/stylesheets/commons/Banner.scss @@ -86,6 +86,10 @@ @include banner-background( "4/46/Esports-banner.png" ); } + .wiki-eva & { + @include banner-background( "0/07/Eva-banner.png" ); + } + .wiki-freefire & { @include banner-background( "5/51/Freefire-banner.png" ); } From 82392786dc981db1412481c47290183885ca8c82 Mon Sep 17 00:00:00 2001 From: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com> Date: Tue, 24 Mar 2026 20:06:11 +0900 Subject: [PATCH 07/11] lint --- stylesheets/commons/Banner.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stylesheets/commons/Banner.scss b/stylesheets/commons/Banner.scss index a34721e2710..ead7ee0b3ad 100644 --- a/stylesheets/commons/Banner.scss +++ b/stylesheets/commons/Banner.scss @@ -89,7 +89,7 @@ .wiki-eva & { @include banner-background( "0/07/Eva-banner.png" ); } - + .wiki-freefire & { @include banner-background( "5/51/Freefire-banner.png" ); } From 7f06326ec7b2434856120865b6644296d9212480 Mon Sep 17 00:00:00 2001 From: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com> Date: Wed, 25 Mar 2026 18:30:54 +0900 Subject: [PATCH 08/11] type annotation --- lua/wikis/eva/FilterButtons/Config.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/wikis/eva/FilterButtons/Config.lua b/lua/wikis/eva/FilterButtons/Config.lua index 57d1a4f4497..e8111c4fbc6 100644 --- a/lua/wikis/eva/FilterButtons/Config.lua +++ b/lua/wikis/eva/FilterButtons/Config.lua @@ -10,6 +10,7 @@ local Lua = require('Module:Lua') local Tier = Lua.import('Module:Tier/Utils') local Config = {} +---@type FilterButtonCategory[] Config.categories = { { name = 'liquipediatier', From 2994158fe11a291f52e59c51ca6a576d7d65fb2a Mon Sep 17 00:00:00 2001 From: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com> Date: Wed, 25 Mar 2026 18:32:13 +0900 Subject: [PATCH 09/11] apply suggestion from review --- lua/wikis/eva/Info.lua | 2 +- lua/wikis/eva/MainPageLayout/data.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/wikis/eva/Info.lua b/lua/wikis/eva/Info.lua index 75f435bd490..4585e2be114 100644 --- a/lua/wikis/eva/Info.lua +++ b/lua/wikis/eva/Info.lua @@ -16,8 +16,8 @@ return { name = 'EVA', link = 'Esports Virtual Arena', logo = { - darkMode = 'EVA lightmode.png', lightMode = 'EVA darkmode.png', + darkMode = 'EVA lightmode.png', }, defaultTeamLogo = { darkMode = 'EVA lightmode.png', diff --git a/lua/wikis/eva/MainPageLayout/data.lua b/lua/wikis/eva/MainPageLayout/data.lua index e26bf73d6f6..2b60aef04ed 100644 --- a/lua/wikis/eva/MainPageLayout/data.lua +++ b/lua/wikis/eva/MainPageLayout/data.lua @@ -48,8 +48,8 @@ local CONTENT = { }, specialEvents = { noPanel = true, - body = '{{Liquipedia:Special_Event}}', - boxid = 1516, + body = '{{Liquipedia:Special Event}}', + boxid = MainPageLayoutUtil.BoxId.SPECIAL_EVENTS, }, filterButtons = { noPanel = true, @@ -203,7 +203,7 @@ return { { -- Bottom children = { { - mobileOrder = 5, + mobileOrder = 7, content = CONTENT.usefulArticles, }, }, From 4ec9eb60424396c7869f70bdae42e840b47d12ed Mon Sep 17 00:00:00 2001 From: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com> Date: Thu, 26 Mar 2026 08:51:38 +0900 Subject: [PATCH 10/11] fix images --- lua/wikis/eva/Info.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/wikis/eva/Info.lua b/lua/wikis/eva/Info.lua index 4585e2be114..46a69256a90 100644 --- a/lua/wikis/eva/Info.lua +++ b/lua/wikis/eva/Info.lua @@ -16,12 +16,12 @@ return { name = 'EVA', link = 'Esports Virtual Arena', logo = { - lightMode = 'EVA darkmode.png', - darkMode = 'EVA lightmode.png', + lightMode = 'EVA lightmode.png', + darkMode = 'EVA darkmode.png', }, defaultTeamLogo = { - darkMode = 'EVA lightmode.png', - lightMode = 'EVA darkmode.png', + lightMode = 'EVA lightmode.png', + darkMode = 'EVA darkmode.png', }, }, }, From 71d17a50cfe38469609fca22c72760f20050d2d5 Mon Sep 17 00:00:00 2001 From: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com> Date: Thu, 26 Mar 2026 08:52:03 +0900 Subject: [PATCH 11/11] adjust mobileOrder --- lua/wikis/eva/MainPageLayout/data.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/wikis/eva/MainPageLayout/data.lua b/lua/wikis/eva/MainPageLayout/data.lua index 2b60aef04ed..aa322f8fc85 100644 --- a/lua/wikis/eva/MainPageLayout/data.lua +++ b/lua/wikis/eva/MainPageLayout/data.lua @@ -155,11 +155,11 @@ return { content = CONTENT.transfers, }, { - mobileOrder = 5, + mobileOrder = 4, content = CONTENT.thisDay, }, { - mobileOrder = 6, + mobileOrder = 5, content = CONTENT.wantToHelp, }, } @@ -203,7 +203,7 @@ return { { -- Bottom children = { { - mobileOrder = 7, + mobileOrder = 6, content = CONTENT.usefulArticles, }, },