Module:GameSkills: Difference between revisions
From SpiritVale Wiki
More actions
No edit summary |
No edit summary |
||
| Line 908: | Line 908: | ||
local root = mw.html.create("table") | local root = mw.html.create("table") | ||
root:addClass(" | |||
-- 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") | ||
for _, rec in ipairs(matches) do | for _, rec in ipairs(matches) do | ||