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

Join the Playtest on Steam Now: SpiritVale

Module:GameSkills: Difference between revisions

From SpiritVale Wiki
No edit summary
No edit summary
Line 908: Line 908:


local root = mw.html.create("table")
local root = mw.html.create("table")
root:addClass("wikitable spiritvale-skill-infobox")
 
-- IMPORTANT:
-- Don't use "wikitable" here; it triggers default borders + Citizen wrapper styling.
root:addClass("spiritvale-skill-infobox")
 
-- JS hook: treat the table itself as the "card"
root:addClass("sv-skill-card")
 
-- Helpful flag for list-mode overrides (optional, but nice)
if opts and opts.inList then
root:addClass("sv-skill-inlist")
end


-- JS hook: treat the table itself as the "card"
-- JS hook: treat the table itself as the "card"
Line 1,126: Line 1,137:
local root = mw.html.create("div")
local root = mw.html.create("div")
root:addClass("sv-skill-collection")
root:addClass("sv-skill-collection")
root:addClass("spiritvale-skill-list") -- keep for compatibility / other CSS


for _, rec in ipairs(matches) do
for _, rec in ipairs(matches) do