From 6a3c9c8ed5095c892d4954b6af09ac4bdcbe4a73 Mon Sep 17 00:00:00 2001
From: Jasper Jacobs <97167868+Kanopedia@users.noreply.github.com>
Date: Tue, 17 Dec 2024 13:42:58 +0100
Subject: [PATCH 1/3] Set up mainpage data layout Deadlock
---
.../wikis/deadlock/main_page_layout_data.lua | 147 ++++++++++++++++++
1 file changed, 147 insertions(+)
create mode 100644 components/main_page/wikis/deadlock/main_page_layout_data.lua
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' ..
+ '
' ..
+ '[[{{FULLURL:Player Transfers/{{CURRENTYEAR}}/{{CURRENTMONTHNAME}}|action=edit}} edit]]
\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,
+ },
+ },
+ },
+ },
+}
From 6d4702ce0c5f7d3a8cd08f853b30548f505695a6 Mon Sep 17 00:00:00 2001
From: Jasper Jacobs <97167868+Kanopedia@users.noreply.github.com>
Date: Tue, 17 Dec 2024 14:27:49 +0100
Subject: [PATCH 2/3] Update main_page_layout_data.lua
---
components/main_page/wikis/deadlock/main_page_layout_data.lua | 1 -
1 file changed, 1 deletion(-)
diff --git a/components/main_page/wikis/deadlock/main_page_layout_data.lua b/components/main_page/wikis/deadlock/main_page_layout_data.lua
index 27cd457f2a..31ef735744 100644
--- a/components/main_page/wikis/deadlock/main_page_layout_data.lua
+++ b/components/main_page/wikis/deadlock/main_page_layout_data.lua
@@ -128,7 +128,6 @@ return {
},
},
},
-
{
mobileOrder = 4,
content = CONTENT.thisDay,
From 83f24c307e96e385e5cf722fa78d3e7473148469 Mon Sep 17 00:00:00 2001
From: Jasper Jacobs <97167868+Kanopedia@users.noreply.github.com>
Date: Tue, 17 Dec 2024 14:41:07 +0100
Subject: [PATCH 3/3] Add Deadlock banner
---
stylesheets/commons/Banner.less | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/stylesheets/commons/Banner.less b/stylesheets/commons/Banner.less
index ed841f1565..797e8271d1 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/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;