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..27cd457f2a --- /dev/null +++ b/components/main_page/wikis/deadlock/main_page_layout_data.lua @@ -0,0 +1,147 @@ +--- +-- @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, + }, + specialEvents = { + noPanel = true, + body = '{{Liquipedia:Special Event}}', + }, + filterButtons = { + noPanel = true, + body = '
' .. + '{{#invoke:Lua|invoke|module=FilterButtons|fn=getFromConfig}}
', + }, + matches = { + heading = 'Matches', + body = '{{MainPageMatches}}
[[Liquipedia:Matches|See more matches]]
', + padding = true, + boxid = 1507, + }, + tournaments = { + heading = 'Tournaments', + body = '{{#invoke:Lua|invoke|module=TournamentsList|fn=run|upcomingDays=120|' .. + 'completedDays=30|filterByTierTypes=true|useExternalFilters=true}}', + padding = true, + boxid = 1508, + }, +} + +return { + main = { + { -- Left + size = 6, + children = { + { + mobileOrder = 1, + content = CONTENT.aboutEsport, + }, + { + mobileOrder = 2, + content = CONTENT.specialEvents, + }, + { + mobileOrder = 4, + content = CONTENT.transfers, + }, + { + mobileOrder = 7, + content = CONTENT.wantToHelp, + }, + } + }, + { -- Right + size = 6, + children = { + { + mobileOrder = 3, + 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 = 5, + content = CONTENT.updates, + }, + { + mobileOrder = 6, + content = CONTENT.usefulArticles, + }, + }, + }, + }, +}