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)
Undo revision 992755 by Mayhalke (talk)
Tag: Undo
Line 7: Line 7:
local eventData = lsEventsData[eventKey] or {}
local eventData = lsEventsData[eventKey] or {}


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

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



Revision as of 11:26, 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 {}

    local eventName = eventData.eventName or ""
    local description = eventData.description or ""

    return eventName, description
end

return p