Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions lua/wikis/eva/FilterButtons/Config.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
-- @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 = {}

---@type FilterButtonCategory[]
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
45 changes: 45 additions & 0 deletions lua/wikis/eva/Info.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
-- @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 = {
lightMode = 'EVA lightmode.png',
darkMode = 'EVA darkmode.png',
},
defaultTeamLogo = {
lightMode = 'EVA lightmode.png',
darkMode = 'EVA darkmode.png',
},
},
},
config = {
squads = {
hasPosition = false,
hasSpecialTeam = false,
allowManual = false,
},
match2 = {
status = 2,
matchWidth = 180,
},
infoboxPlayer = {
autoTeam = true,
automatedHistory = {
mode = 'automatic',
},
},
},
}
213 changes: 213 additions & 0 deletions lua/wikis/eva/MainPageLayout/data.lua
Original file line number Diff line number Diff line change
@@ -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 = MainPageLayoutUtil.BoxId.SPECIAL_EVENTS,
},
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 = 4,
content = CONTENT.thisDay,
},
{
mobileOrder = 5,
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 = 6,
content = CONTENT.usefulArticles,
},
},
},
},
},
}
4 changes: 4 additions & 0 deletions stylesheets/commons/Banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
}
Expand Down
Loading