Main Page: Difference between revisions
More actions
m Reverted edits by Texyc (talk) to last revision by MediaWiki default Tags: Rollback Reverted |
Tags: Undo Reverted |
||
| Line 1: | Line 1: | ||
local p = {} | |||
function p.render(frame) | |||
local div = mw.html.create("div") | |||
== | div:css({ | ||
-- LAYOUT FIXES | |||
["display"] = "flow-root", -- Prevents overlap | |||
["margin"] = "0 0 1.5em 0", | |||
["padding"] = "1.5em", | |||
["text-align"] = "center", | |||
-- CITIZEN SKIN STYLING | |||
["background"] = "var(--color-surface-2)", | |||
["border"] = "1px solid var(--border-color-base)", | |||
["border-radius"] = "var(--border-radius-base, 10px)", | |||
["box-shadow"] = "var(--box-shadow-level-1)", | |||
["color"] = "var(--color-base)", | |||
["font-weight"] = "400", | |||
}) | |||
-- 1. MAIN HEADING | |||
-- Replaces "== Welcome ==" to avoid parser bugs and edit buttons | |||
div:tag("h2") | |||
:css({ | |||
["border-bottom"] = "none", -- Removes the default wiki underline | |||
["margin"] = "0 0 10px 0", | |||
["font-weight"] = "bold", | |||
["font-size"] = "1.8em", | |||
["line-height"] = "1.2", | |||
["font-family"] = "var(--font-family-header)", -- Matches skin font | |||
}) | |||
:wikitext("Welcome to the Jule's RNG Wiki!") | |||
-- 2. GALLERY | |||
local galleryImages = table.concat({ | |||
"image1=File:ThumbEvo13.png", | |||
"image2=File:ThumbGen1.png", | |||
"image3=File:ThumbGen2.png", | |||
}, "|") | |||
div:wikitext(frame:preprocess("{{Slider|height=450px|interval=4000|" .. galleryImages .. "}}")) | |||
-- 3. SUB-HEADING (Your ultimate guide...) | |||
div:tag("div") | |||
:css({ | |||
["font-size"] = "1.2em", | |||
["font-weight"] = "bold", | |||
["margin-top"] = "15px", | |||
["font-style"] = "italic", | |||
}) | |||
:wikitext("Your ultimate guide to Jule's RNG!") | |||
-- 4. DESCRIPTION (Learn about...) | |||
div:tag("div") | |||
:css({ | |||
["color"] = "var(--color-subtle)", -- Muted text color | |||
["font-style"] = "italic", | |||
["margin-top"] = "5px", | |||
["font-size"] = "0.95em", | |||
}) | |||
:wikitext("Learn about its Items, Auras, and Game Mechanics. We'd like you to help us edit this wiki!") | |||
return tostring(div) | |||
end | |||
return p | |||
Revision as of 04:14, 27 January 2026
local p = {}
function p.render(frame) local div = mw.html.create("div")
div:css({ -- LAYOUT FIXES ["display"] = "flow-root", -- Prevents overlap ["margin"] = "0 0 1.5em 0", ["padding"] = "1.5em", ["text-align"] = "center",
-- CITIZEN SKIN STYLING ["background"] = "var(--color-surface-2)", ["border"] = "1px solid var(--border-color-base)", ["border-radius"] = "var(--border-radius-base, 10px)", ["box-shadow"] = "var(--box-shadow-level-1)", ["color"] = "var(--color-base)", ["font-weight"] = "400", })
-- 1. MAIN HEADING -- Replaces "== Welcome ==" to avoid parser bugs and edit buttons div:tag("h2") :css({ ["border-bottom"] = "none", -- Removes the default wiki underline ["margin"] = "0 0 10px 0", ["font-weight"] = "bold", ["font-size"] = "1.8em", ["line-height"] = "1.2", ["font-family"] = "var(--font-family-header)", -- Matches skin font }) :wikitext("Welcome to the Jule's RNG Wiki!")
-- 2. GALLERY local galleryImages = table.concat({ "image1=File:ThumbEvo13.png", "image2=File:ThumbGen1.png", "image3=File:ThumbGen2.png", }, "|")
div:wikitext(frame:preprocess("
"))
-- 3. SUB-HEADING (Your ultimate guide...) div:tag("div") :css({ ["font-size"] = "1.2em", ["font-weight"] = "bold", ["margin-top"] = "15px", ["font-style"] = "italic", }) :wikitext("Your ultimate guide to Jule's RNG!")
-- 4. DESCRIPTION (Learn about...) div:tag("div") :css({ ["color"] = "var(--color-subtle)", -- Muted text color ["font-style"] = "italic", ["margin-top"] = "5px", ["font-size"] = "0.95em", }) :wikitext("Learn about its Items, Auras, and Game Mechanics. We'd like you to help us edit this wiki!")
return tostring(div) end
return p