Content deleted Content added
Created error for case where "main" is called twice |
mNo edit summary |
||
Line 1,663:
end
-- main function that
function p.main(frame)
local f, args, i, v
-- get the parent frame to take the arguments that were passed to the wrapper template
frame = frame:getParent() or frame
f = mw.text.trim(frame.args[1] or "")
assert(p[f], 'The function "' .. f .. '" does not exist')
|