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"
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
local p = {}
local p = {}


function p.parseActions(frame)
function p.builder(frame)
     local args = frame.args
     return #frame.args[1]
    if args[1] == nil then return "no defined" end
 
    return "epic"
end
end
-- Set the __call metamethod to the default function
setmetatable(p, {
    __call = function(_, frame)
        return p.defaultFunction(frame)
    end
})


return p
return p

Latest revision as of 23:46, 7 September 2024

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

local p = {}

function p.builder(frame)
    return #frame.args[1]
end

return p