diff --git a/lua/wikis/deltaforce/Info.lua b/lua/wikis/deltaforce/Info.lua new file mode 100644 index 00000000000..ff407a7a1ca --- /dev/null +++ b/lua/wikis/deltaforce/Info.lua @@ -0,0 +1,49 @@ +--- +-- @Liquipedia +-- page=Module:Info +-- +-- Please see https://github.com/Liquipedia/Lua-Modules to contribute +-- + +return { + startYear = 2023, + wikiName = 'deltaforce', + name = 'Delta Force', + defaultGame = 'deltaforce', + games = { + deltaforce = { + abbreviation = 'DF', + name = 'Delta Force', + link = 'Delta Force', + logo = { + darkMode = 'Delta Force icon allmode.png', + lightMode = 'Delta Force icon allmode.png', + }, + defaultTeamLogo = { + darkMode = 'Delta Force icon allmode.png', + lightMode = 'Delta Force icon allmode.png', + }, + }, + }, + config = { + squads = { + hasPosition = false, + hasSpecialTeam = false, + allowManual = false, + }, + match2 = { + status = 2, + matchWidth = 180, + }, + defaultMaxPlayersPerPlacement = 30, + infoboxPlayer = { + autoTeam = true, + automatedHistory = { + mode = 'automatic', + }, + }, + participants = { + defaultPlayerNumber = 3, + }, + }, +} diff --git a/lua/wikis/deltaforce/MainPageLayout/data.lua b/lua/wikis/deltaforce/MainPageLayout/data.lua new file mode 100644 index 00000000000..4d021183959 --- /dev/null +++ b/lua/wikis/deltaforce/MainPageLayout/data.lua @@ -0,0 +1,207 @@ +--- +-- @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 TournamentsTicker = Lua.import('Module:Widget/Tournaments/Ticker/List') + +local Html = Lua.import('Module:Widget/Html') +local Div = Html.Div +local MatchTicker = Lua.import('Module:Widget/MainPage/MatchTicker') +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 = 'The Game', + body = '{{Liquipedia:The Game}}', + 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{ + 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 = false, + boxid = MainPageLayoutUtil.BoxId.MATCH_TICKER, + }, + tournaments = { + heading = 'Tournaments', + body = TournamentsTicker{ + upcomingDays = 30, + completedDays = 30, + variant = 'collapsible', + }, + padding = false, + boxid = MainPageLayoutUtil.BoxId.TOURNAMENTS_TICKER, + }, +} + +return { + banner = { + lightmode = 'Delta Force logo lightmode.svg ', + darkmode = 'Delta Force logo darkmode.svg ', + }, + metadesc = 'The Delta Force esports wiki covering everything from players, teams and transfers, to ' .. + 'tournaments and results, maps, and weapons.', + title = 'Delta Force', + navigation = { + { + file = 'Delta Force Team Pills.jpg', + title = 'Teams', + link = 'Portal:Teams', + count = { + method = 'LPDB', + table = 'team', + }, + }, + { + file = 'Delta Force Player Pills.jpg', + title = 'Players', + link = 'Portal:Players', + count = { + method = 'LPDB', + table = 'player', + }, + }, + { + file = 'Delta Force Tournament Pills.jpg', + title = 'Tournaments', + link = 'Portal:Tournaments', + count = { + method = 'LPDB', + table = 'tournament', + }, + }, + { + file = 'Delta Force Transfer Pills.jpg', + title = 'Transfers', + link = 'Portal:Transfers', + count = { + method = 'LPDB', + table = 'transfer', + }, + }, + { + file = 'Delta Force Character Pills.jpg', + title = 'Operators', + link = 'Portal:Operators', + count = { + method = 'CATEGORY', + category = 'Characters', + }, + }, + { + file = 'Delta Force Map Pills.png', + title = 'Maps', + link = 'Portal:Maps', + count = { + method = 'CATEGORY', + category = 'Maps', + }, + }, + }, + layouts = { + main = { + { -- Left + sizes = {xxl = 5, xxxl = 6}, + children = { + { + mobileOrder = 1, + content = CONTENT.specialEvents, + }, + { + mobileOrder = 3, + content = CONTENT.transfers, + }, + { + 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, + }, + }, + }, + }, + }, + { + mobileOrder = 4, + content = CONTENT.thisDay, + }, + { + mobileOrder = 6, + content = CONTENT.usefulArticles, + }, + }, + }, + }, + }, +} diff --git a/stylesheets/commons/Banner.scss b/stylesheets/commons/Banner.scss index ead7ee0b3ad..e91b0f8e561 100644 --- a/stylesheets/commons/Banner.scss +++ b/stylesheets/commons/Banner.scss @@ -70,6 +70,10 @@ @include banner-background( "8/8f/Deadlock_mainpage_banner.png" ); } + .wiki-deltaforce & { + @include banner-background( "d/d2/Deltaforce-bg.webp" ); + } + .wiki-dota2 & { @include banner-background( "1/19/Bgdota2.jpg" ); }