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
49 changes: 49 additions & 0 deletions lua/wikis/deltaforce/Info.lua
Comment thread
Hesketh2 marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -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,
},
},
}
207 changes: 207 additions & 0 deletions lua/wikis/deltaforce/MainPageLayout/data.lua
Original file line number Diff line number Diff line change
@@ -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,
},
},
},
},
},
}
4 changes: 4 additions & 0 deletions stylesheets/commons/Banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
}
Expand Down
Loading