Module:GameInfo: Difference between revisions
From SpiritVale Wiki
More actions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 79: | Line 79: | ||
:addClass("sv-gi-card") | :addClass("sv-gi-card") | ||
:attr("data-gi", "1") | :attr("data-gi", "1") | ||
:attr("data-sv-card", "1") | |||
:attr("data-gi-phase", "4.1") | :attr("data-gi-phase", "4.1") | ||
:attr("data-level", tostring(level)) | :attr("data-level", tostring(level)) | ||
| Line 89: | Line 90: | ||
if opts.variant and tostring(opts.variant) ~= "" then | if opts.variant and tostring(opts.variant) ~= "" then | ||
root:addClass("sv-gi--" .. tostring(opts.variant)) | root:addClass("sv-gi--" .. tostring(opts.variant)) | ||
root:attr("data-sv-card-variant", tostring(opts.variant)) | |||
end | end | ||
local top = root:tag("div"):addClass("sv-gi-top") | local top = root:tag("div"):addClass("sv-gi-top") | ||
local bottom = root:tag("div"):addClass("sv-gi-bottom") | local bottom = root:tag("div") | ||
:addClass("sv-gi-bottom") | |||
:attr("data-sv-level-scope", "1") | |||
return { root = root, top = top, bottom = bottom } | return { root = root, top = top, bottom = bottom } | ||