Module:StreetBrawlItems: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
Add gated-preview support: styled non-TOC tier/section headings via heading_div, and optional gate=ID param on tiers to open a clip container after Tier 1 (with help from vergir-bot LLM)
Vergir (talk | contribs)
Tier/counter headings now carry the skin's mw-heading wrapper classes, so they inherit real heading styling instead of hardcoded values (with help from vergir-bot LLM)
Line 72: Line 72:
end
end


-- A tier/section heading styled to look like a heading but rendered as a plain
-- A tier/section heading: a plain div carrying the skin's own heading wrapper
-- div, so it stays out of the table of contents (and can be hidden inside the gate).
-- classes, so it inherits real heading styling while staying out of the table
-- of contents (and can be hidden inside the gate).
local function heading_div(label)
local function heading_div(label)
return '<div class="sb-tier-head">' .. label .. '</div>'
return '<div class="mw-heading mw-heading3 sb-tier-head">' .. label .. '</div>'
end
end