Module:Main page: Difference between revisions
Jump to navigation
Jump to search
(Replaced content with "local p = {} function p.show(frame) return "'''Mana Break''' is a PvP game released on TBA." end return p") Tags: Replaced Manual revert Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
-- Fungsi utama yang dipanggil dari {{#invoke:Main_page|show}} | |||
function p.show(frame) | function p.show(frame) | ||
local html = mw.html.create() | |||
-- === Hero banner / header === | |||
html:tag('div') | |||
:addClass('mainpage-header') | |||
:css{ | |||
['text-align'] = 'center', | |||
['background'] = 'linear-gradient(135deg, #2a2a2a, #1e1e1e)', | |||
['padding'] = '25px', | |||
['color'] = 'white', | |||
['border-radius'] = '10px', | |||
['margin-bottom'] = '20px' | |||
} | |||
:wikitext("'''" .. "Welcome to the '''''Mana Break Wiki!'''''") | |||
:tag('div') | |||
:css('font-size', '90%') | |||
:wikitext("A community-maintained database for everything related to '''Mana Break''', including heroes, items, PvP guides, and more.") | |||
:done() | |||
:done() | |||
-- === Quick navigation section === | |||
local nav = html:tag('div') | |||
:addClass('mainpage-nav') | |||
:css{ | |||
['display'] = 'flex', | |||
['justify-content'] = 'space-around', | |||
['flex-wrap'] = 'wrap', | |||
['gap'] = '10px', | |||
['margin'] = '10px 0' | |||
} | |||
local links = { | |||
{text = "Heroes", url = "https://mbwiki.stairwaygames.work/wiki/Heroes"}, | |||
{text = "Items", url = "https://mbwiki.stairwaygames.work/wiki/Items"}, | |||
{text = "Game Modes", url = "https://mbwiki.stairwaygames.work/wiki/Game_Modes"}, | |||
{text = "PvP Guide", url = "https://mbwiki.stairwaygames.work/wiki/PvP_Guide"}, | |||
{text = "Latest Updates", url = "https://mbwiki.stairwaygames.work/wiki/Updates"} | |||
} | |||
for _, link in ipairs(links) do | |||
nav:tag('div') | |||
:addClass('mainpage-link') | |||
:css{ | |||
['background'] = '#f3f3f3', | |||
['border'] = '1px solid #ccc', | |||
['border-radius'] = '8px', | |||
['padding'] = '10px 15px', | |||
['min-width'] = '120px', | |||
['text-align'] = 'center', | |||
['font-weight'] = 'bold' | |||
} | |||
:tag('a') | |||
:attr('href', link.url) | |||
:css('color', '#2a2a2a') | |||
:wikitext(link.text) | |||
:done() | |||
:done() | |||
end | |||
-- === News section === | |||
html:tag('div') | |||
:addClass('mainpage-news') | |||
:css{ | |||
['margin-top'] = '25px', | |||
['background'] = '#f9f9f9', | |||
['border'] = '1px solid #ccc', | |||
['border-radius'] = '8px', | |||
['padding'] = '10px' | |||
} | |||
:tag('h2'):wikitext("Latest News"):done() | |||
:tag('ul') | |||
:tag('li'):wikitext("'''[November 2025]''' Mana Break global launch event is live!"):done() | |||
:tag('li'):wikitext("New heroes available in the banner: ''Aldra'' and ''Rhea''."):done() | |||
:tag('li'):wikitext("Join the PvP Tournament to earn exclusive skins!"):done() | |||
:done() | |||
:done() | |||
-- === Footer === | |||
html:tag('div') | |||
:addClass('mainpage-footer') | |||
:css{ | |||
['text-align'] = 'center', | |||
['font-size'] = '90%', | |||
['color'] = '#666', | |||
['margin-top'] = '20px' | |||
} | |||
:wikitext("Mana Break Wiki is a community project — contributions are welcome!") | |||
return tostring(html) | |||
end | end | ||
return p | return p | ||
Revision as of 04:05, 13 November 2025
Welcome to the Mana Break Wiki!
A community-maintained database for everything related to Mana Break, including heroes, items, PvP guides, and more.
<a href="https://mbwiki.stairwaygames.work/wiki/Heroes" style="color:#2a2a2a">Heroes</a>
<a href="https://mbwiki.stairwaygames.work/wiki/Items" style="color:#2a2a2a">Items</a>
<a href="https://mbwiki.stairwaygames.work/wiki/Game_Modes" style="color:#2a2a2a">Game Modes</a>
<a href="https://mbwiki.stairwaygames.work/wiki/PvP_Guide" style="color:#2a2a2a">PvP Guide</a>
<a href="https://mbwiki.stairwaygames.work/wiki/Updates" style="color:#2a2a2a">Latest Updates</a>
Latest News
- [November 2025] Mana Break global launch event is live!
- New heroes available in the banner: Aldra and Rhea.
- Join the PvP Tournament to earn exclusive skins!
local p = {}
-- Fungsi utama yang dipanggil dari {{#invoke:Main_page|show}}
function p.show(frame)
local html = mw.html.create()
-- === Hero banner / header ===
html:tag('div')
:addClass('mainpage-header')
:css{
['text-align'] = 'center',
['background'] = 'linear-gradient(135deg, #2a2a2a, #1e1e1e)',
['padding'] = '25px',
['color'] = 'white',
['border-radius'] = '10px',
['margin-bottom'] = '20px'
}
:wikitext("'''" .. "Welcome to the '''''Mana Break Wiki!'''''")
:tag('div')
:css('font-size', '90%')
:wikitext("A community-maintained database for everything related to '''Mana Break''', including heroes, items, PvP guides, and more.")
:done()
:done()
-- === Quick navigation section ===
local nav = html:tag('div')
:addClass('mainpage-nav')
:css{
['display'] = 'flex',
['justify-content'] = 'space-around',
['flex-wrap'] = 'wrap',
['gap'] = '10px',
['margin'] = '10px 0'
}
local links = {
{text = "Heroes", url = "https://mbwiki.stairwaygames.work/wiki/Heroes"},
{text = "Items", url = "https://mbwiki.stairwaygames.work/wiki/Items"},
{text = "Game Modes", url = "https://mbwiki.stairwaygames.work/wiki/Game_Modes"},
{text = "PvP Guide", url = "https://mbwiki.stairwaygames.work/wiki/PvP_Guide"},
{text = "Latest Updates", url = "https://mbwiki.stairwaygames.work/wiki/Updates"}
}
for _, link in ipairs(links) do
nav:tag('div')
:addClass('mainpage-link')
:css{
['background'] = '#f3f3f3',
['border'] = '1px solid #ccc',
['border-radius'] = '8px',
['padding'] = '10px 15px',
['min-width'] = '120px',
['text-align'] = 'center',
['font-weight'] = 'bold'
}
:tag('a')
:attr('href', link.url)
:css('color', '#2a2a2a')
:wikitext(link.text)
:done()
:done()
end
-- === News section ===
html:tag('div')
:addClass('mainpage-news')
:css{
['margin-top'] = '25px',
['background'] = '#f9f9f9',
['border'] = '1px solid #ccc',
['border-radius'] = '8px',
['padding'] = '10px'
}
:tag('h2'):wikitext("Latest News"):done()
:tag('ul')
:tag('li'):wikitext("'''[November 2025]''' Mana Break global launch event is live!"):done()
:tag('li'):wikitext("New heroes available in the banner: ''Aldra'' and ''Rhea''."):done()
:tag('li'):wikitext("Join the PvP Tournament to earn exclusive skins!"):done()
:done()
:done()
-- === Footer ===
html:tag('div')
:addClass('mainpage-footer')
:css{
['text-align'] = 'center',
['font-size'] = '90%',
['color'] = '#666',
['margin-top'] = '20px'
}
:wikitext("Mana Break Wiki is a community project — contributions are welcome!")
return tostring(html)
end
return p