Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Main Page: Difference between revisions

From Jules RNG Wiki
m Reverted edits by Texyc (talk) to last revision by MediaWiki default
Tags: Rollback Reverted
Undo revision 169 by Texyc (talk)
Tags: Undo Reverted
Line 1: Line 1:
<strong>MediaWiki has been installed.</strong>
local p = {}


Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.
function p.render(frame)
local div = mw.html.create("div")


== Getting started ==
div:css({
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]
-- LAYOUT FIXES
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]
["display"] = "flow-root", -- Prevents overlap
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]
["margin"] = "0 0 1.5em 0",
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]
["padding"] = "1.5em",
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]
["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