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
 
(One intermediate revision by the same user not shown)
Line 479: Line 479:
[1] = "IconName",
[1] = "IconName",
[2] = "Description",
[2] = "Description",
[3] = "SkillType",
[3] = "LevelSelector",
[4] = "Placeholder",
[4] = "SkillType",
[5] = "SourceType",
[5] = "SourceType",
[6] = "QuickStats",
[6] = "QuickStats",
[7] = "SpecialMechanics",
[7] = "SpecialMechanics",
[8] = "LevelSelector",
[8] = "Placeholder",
}
}


Line 1,102: Line 1,102:
end
end


function PLUGINS.Description(rec, ctx)
        local desc = trim(rec.Description)
        if not desc then
                return nil
        end
        local wrapper = mw.html.create("div")
        wrapper:addClass("sv-module-description")
        wrapper:wikitext(string.format("''%s''", desc))
        return {
                inner = tostring(wrapper),
                classes = "module-description",
        }
end


-- PLUGIN: SourceType (Hero Module Slot 1) - Modifier + Source + Scaling.
-- PLUGIN: SourceType (Hero Module Slot 1) - Modifier + Source + Scaling.