diff --git a/components/components/filter_buttons/wikis/deadlock/filter_buttons_config.lua b/components/components/filter_buttons/wikis/deadlock/filter_buttons_config.lua new file mode 100644 index 0000000000..f2cf2fdf7f --- /dev/null +++ b/components/components/filter_buttons/wikis/deadlock/filter_buttons_config.lua @@ -0,0 +1,44 @@ +--- +-- @Liquipedia +-- wiki=deadlock +-- page=Module:FilterButtons/Config +-- +-- Please see https://github.com/Liquipedia/Lua-Modules to contribute +-- + +local Tier = require('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 diff --git a/components/main_page/wikis/deadlock/main_page_layout_data.lua b/components/main_page/wikis/deadlock/main_page_layout_data.lua new file mode 100644 index 0000000000..2474fedc0d --- /dev/null +++ b/components/main_page/wikis/deadlock/main_page_layout_data.lua @@ -0,0 +1,238 @@ +--- +-- @Liquipedia +-- wiki=deadlock +-- page=Module:MainPageLayout/data +-- +-- Please see https://github.com/Liquipedia/Lua-Modules to contribute +-- + +local CONTENT = { + updates = { + heading = 'Updates', + body = '\n{{Main Page Updates}}', + padding = true, + boxid = 1502, + }, + usefulArticles = { + heading = 'Useful Articles', + body = '{{Liquipedia:Useful Articles}}', + padding = true, + boxid = 1503, + }, + wantToHelp = { + heading = 'Want To Help?', + body = '{{Liquipedia:Want_to_help}}', + padding = true, + boxid = 1504, + }, + transfers = { + heading = 'Transfers', + body = '{{Transfer List|limit=15}}\n' .. + '
\n' .. + '
\'\'[[#Top|Back to top]]\'\'
\n' .. + '\n' .. + '
' .. + '[[Portal:Transfers|See more transfers]]' .. + '[[Transfer query]]' .. + '[[lpcommons:Special:RunQuery/Transfer|Input Form]]' .. + '' .. + '[[Portal:Rumours|Rumours]]
\n
', + boxid = 1509, + }, + thisDay = { + heading = 'This day in Deadlock ' .. + '({{#time:F}} {{Ordinal|{{#time:j}}}})', + body = '{{Liquipedia:This day}}', + padding = true, + boxid = 1510, + }, + heroes = { + heading = 'Heroes', + body = '{{Liquipedia:HeroTable}}', + padding = true, + boxid = 1501, + + }, + filterButtons = { + noPanel = true, + body = '
' .. + '{{#invoke:Lua|invoke|module=FilterButtons|fn=getFromConfig}}
', + }, + matches = { + heading = 'Matches', + body = '{{#invoke:Lua|invoke|module=Widget/Factory|fn=fromTemplate|widget=Match/Ticker/Container}}' .. + '
[[Liquipedia:Matches|See more matches]]
', + padding = true, + boxid = 1507, + }, + tournaments = { + heading = 'Tournaments', + body = '{{#invoke:Lua|invoke|module=Widget/Factory|fn=fromTemplate|widget=Tournaments/Ticker' .. + '|upcomingDays=60|completedDays=20}}', + padding = true, + boxid = 1508, + }, +} + +return { + banner = { + lightmode = 'Deadlock full logo lightmode.svg', + darkmode = 'Deadlock full logo darkmode.svg', + }, + metadesc = 'Comprehensive Deadlock wiki with articles covering everything from heroes and items, to strategies, ' .. + 'to tournaments, to competitive players, and teams.', + title = 'The Deadlock Wiki', + navigation = { + { + file = 'Deadlock gameasset Patches allmode.png', + title = 'Patches', + link = 'Portal:Patches', + count = { + method = 'LPDB', + table = 'datapoint', + conditions = '[[type::patch]]', + }, + }, + { + file = 'Deadlock gameasset Art Hero Seven allmode.png', + title = 'Heroes', + link = 'Portal:Heroes', + count = { + method = 'LPDB', + table = 'datapoint', + conditions = '[[type::character]]', + }, + }, + { + file = 'Deadlock gameasset The Curiosity Shop allmode.png', + title = 'Items', + link = 'Portal:Items', + count = { + method = 'LPDB', + table = 'datapoint', + conditions = '[[type::item]]', + }, + }, + { + file = 'Deadlock gameasset Mechanics allmode.png', + title = 'Mechanics', + link = 'Mechanics', + count = { + method = 'CATEGORY', + category = 'Mechanics', + }, + }, + { + file = 'Hammer Trophy of the Six Invitational 2020.jpg', + title = 'Tournaments', + link = 'Portal:Tournaments', + count = { + method = 'LPDB', + table = 'tournament', + }, + }, + { + file = 'Team_Spirit_win_The_International_2023.jpg', + title = 'Teams', + link = 'Portal:Teams', + count = { + method = 'LPDB', + table = 'team', + }, + }, + { + file = 'Aurora Sunset at the ALGS London Split 2 Playoffs 2023.jpg', + title = 'Players', + link = 'Portal:Players', + count = { + method = 'LPDB', + table = 'player', + }, + }, + { + file = 'Hardecki at the ALGS Stockholm Playoffs.jpg', + title = 'Transfers', + link = 'Portal:Transfers', + count = { + method = 'LPDB', + table = 'transfer', + }, + }, + { + file = 'NRG hodsic at the ALGS Mannheim Split 2 Playoffs.jpg', + title = 'Statistics', + link = 'Portal:Statistics', + }, + }, + layouts = { + main = { + { -- Left + size = 6, + children = { + { + mobileOrder = 1, + content = CONTENT.heroes, + }, + { + mobileOrder = 4, + content = CONTENT.transfers, + }, + { + mobileOrder = 8, + content = CONTENT.wantToHelp, + }, + } + }, + { -- Right + size = 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 = 6, + content = CONTENT.thisDay, + }, + { + mobileOrder = 5, + content = CONTENT.updates, + }, + { + mobileOrder = 7, + content = CONTENT.usefulArticles, + }, + }, + }, + }, + }, +} diff --git a/stylesheets/commons/Banner.less b/stylesheets/commons/Banner.less index 8b71d98aac..dd2857bd3f 100644 --- a/stylesheets/commons/Banner.less +++ b/stylesheets/commons/Banner.less @@ -6,6 +6,12 @@ position: relative; border-radius: 0.5rem; + .wiki-deadlock & { + @media ( min-width: 768px ) { + background: url( https://liquipedia.net/commons/images/8/8f/Deadlock_mainpage_banner.png ) no-repeat center / cover; + } + } + .wiki-dota2 & { @media ( min-width: 768px ) { background: url( https://liquipedia.net/commons/images/1/19/Bgdota2.jpg ) no-repeat center / cover;