Module:LSEvent: Difference between revisions

From JoJo's Bizarre Encyclopedia - JoJo Wiki
Jump to navigation Jump to search
Content deleted Content added
Mayhalke (talk | contribs)
No edit summary
Mayhalke (talk | contribs)
No edit summary
Line 7: Line 7:
local eventData = lsEventsData[eventKey] or {}
local eventData = lsEventsData[eventKey] or {}


return {
local eventName = eventData.eventName or ""
local description = eventData.description or ""
eventName = eventData.eventName or "",
description = eventData.description or ""

}
return eventName, description
end
end



Revision as of 11:24, 1 September 2024

Documentation for this module may be created at Module:LSEvent/doc

local p = {}

local lsEventsData = mw.loadData('Module:LSEvents/data')

function p.main(frame)
    local eventKey = frame.args[1]
    local eventData = lsEventsData[eventKey] or {}

    return {
        eventName = eventData.eventName or "",
        description = eventData.description or ""
    }
end

return p