Module:Actions

Revision as of 23:37, 7 September 2024 by Noah (talk | contribs) (Created page with "local p = {} function p.parseActions(frame) local args = frame.args if args[1] == nil then return "no defined" end return "epic" end -- Set the __call metamethod to the default function setmetatable(p, { __call = function(_, frame) return p.defaultFunction(frame) end }) return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local p = {}

function p.parseActions(frame)
    local args = frame.args
    if args[1] == nil then return "no defined" end

    return "epic"
end

-- Set the __call metamethod to the default function
setmetatable(p, {
    __call = function(_, frame)
        return p.defaultFunction(frame)
    end
})

return p