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
Binary file modified lua/spec/snapshots/LeagueIcon.generate_copy_paste_gen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/Slider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/date range display.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/dota2 rankings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_apexlegends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_counterstrike.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_dota2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_leagueoflegends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_mobilelegends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_overwatch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_rainbowsix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_rocketleague.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_starcraft2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/infobox_league_valorant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_apexlegends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_counterstrike.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_dota2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_leagueoflegends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_mobilelegends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_overwatch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_rainbowsix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_rocketleague.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_starcraft2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/match2_matchlist_smoke_valorant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/prize_pool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lua/spec/snapshots/squad_row_apexlegends.png
Binary file modified lua/spec/snapshots/squad_row_counterstrike.png
Binary file modified lua/spec/snapshots/squad_row_dota2.png
Binary file modified lua/spec/snapshots/squad_row_leagueoflegends.png
Binary file modified lua/spec/snapshots/squad_row_mobilelegends.png
Binary file modified lua/spec/snapshots/squad_row_overwatch.png
Binary file modified lua/spec/snapshots/squad_row_rocketleague.png
Binary file modified lua/spec/snapshots/squad_row_starcraft2.png
Binary file modified lua/spec/snapshots/squad_row_valorant.png
Binary file modified lua/spec/snapshots/tabs_dynamic_variants.png
Binary file modified lua/spec/snapshots/team_participant.png
Binary file modified lua/spec/snapshots/teamcard_legacy.png
Binary file modified lua/spec/snapshots/transfer_row_apexlegends.png
Binary file modified lua/spec/snapshots/transfer_row_counterstrike.png
Binary file modified lua/spec/snapshots/transfer_row_dota2.png
Binary file modified lua/spec/snapshots/transfer_row_leagueoflegends.png
Binary file modified lua/spec/snapshots/transfer_row_mobilelegends.png
Binary file modified lua/spec/snapshots/transfer_row_overwatch.png
Binary file modified lua/spec/snapshots/transfer_row_rainbowsix.png
Binary file modified lua/spec/snapshots/transfer_row_rocketleague.png
Binary file modified lua/spec/snapshots/transfer_row_starcraft2.png
Binary file modified lua/spec/snapshots/transfer_row_valorant.png
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,
},
},
}
216 changes: 216 additions & 0 deletions lua/wikis/deltaforce/MainPageLayout/data.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
---
-- @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 HtmlWidgets = Lua.import('Module:Widget/Html/All')
local Div = HtmlWidgets.Div
Comment on lines +15 to +16
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
local HtmlWidgets = Lua.import('Module:Widget/Html/All')
local Div = HtmlWidgets.Div
local Html = Lua.import('Module:Widget/Html')
local Div = Html.Div

should be using widget3 on a new module

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this hasn't bee resolved

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 Weapon Pills.jpg',
title = 'Weapons',
link = 'Portal:Weapons',
count = {
method = 'CATEGORY',
category = 'Weapons',
},
},
{
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