-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up mainpage data layout Deadlock
- Loading branch information
Showing
1 changed file
with
147 additions
and
0 deletions.
There are no files selected for viewing
147 changes: 147 additions & 0 deletions
147
components/main_page/wikis/deadlock/main_page_layout_data.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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">' .. | ||
'[[{{FULLURL:Player Transfers/{{CURRENTYEAR}}/{{CURRENTMONTHNAME}}|action=edit}} edit]]</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;">•</span>' .. | ||
'[[Transfer query]]<span style{{=}}"font-style:normal; padding:0 5px;">•</span>' .. | ||
'[[lpcommons:Special:RunQuery/Transfer|Input Form]]' .. | ||
'<span style="font-style:normal; padding:0 5px;">•</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, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |