Module:Actions: Difference between revisions
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. | function p.builder(frame) | ||
return #frame.args[1] | |||
end | 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