Skip to content

Commit

Permalink
Set up mainpage data layout Deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanopedia authored Dec 17, 2024
1 parent c9199f4 commit 6a3c9c8
Showing 1 changed file with 147 additions and 0 deletions.
147 changes: 147 additions & 0 deletions components/main_page/wikis/deadlock/main_page_layout_data.lua
Original file line number Diff line number Diff line change
@@ -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 = '<nowiki>\n</nowiki>{{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<div style{{=}}"display:block; text-align:center; padding:0.5em;">\n' ..
'<div style{{=}}"display:inline; float:left; font-style:italic;">\'\'[[#Top|Back to top]]\'\'</div>\n' ..
'<div style{{=}}"display:inline; float:right;" class="plainlinks smalledit">' ..
'&#91;[{{FULLURL:Player Transfers/{{CURRENTYEAR}}/{{CURRENTMONTHNAME}}|action=edit}} edit]&#93;</div>\n' ..
'<div style{{=}}"white-space:nowrap; display:inline; margin:0 10px font-size:15px; font-style:italic;">' ..
'[[Portal:Transfers|See more transfers]]<span style="font-style:normal; padding:0 5px;">&#8226;</span>' ..
'[[Transfer query]]<span style{{=}}"font-style:normal; padding:0 5px;">&#8226;</span>' ..
'[[lpcommons:Special:RunQuery/Transfer|Input Form]]' ..
'<span style="font-style:normal; padding:0 5px;">&#8226;</span>' ..
'[[Portal:Rumours|Rumours]]</center></div>\n</div>',
boxid = 1509,
},
thisDay = {
heading = 'This day in Deadlock <small id="this-day-date" style = "margin-left: 5px">' ..
'({{#time:F}} {{Ordinal|{{#time:j}}}})</small>',
body = '{{Liquipedia:This day}}',
padding = true,
boxid = 1510,
},
specialEvents = {
noPanel = true,
body = '{{Liquipedia:Special Event}}',
},
filterButtons = {
noPanel = true,
body = '<div style{{=}}"width:100%;margin-bottom:8px;">' ..
'{{#invoke:Lua|invoke|module=FilterButtons|fn=getFromConfig}}</div>',
},
matches = {
heading = 'Matches',
body = '{{MainPageMatches}}<div style{{=}}"white-space:nowrap; display: block; margin:0 10px; ' ..
'font-size:15px; font-style:italic; text-align:center;">[[Liquipedia:Matches|See more matches]]</div>',
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,
},
},
},
},
}

0 comments on commit 6a3c9c8

Please sign in to comment.