Changes
let one function work for other modules and for wikitext
-- Returns the permission required to perform a given action on a given title.
-- If no title is specified, the title of the page being displayed is used.
function p.main(frame, action, pagename, frame) if not frame then = frame = or mw.getCurrentFrame() endaction = action or frame.args.action or frame.args[1] pagename = pagename or frame.args.pagename or frame.args[2]
local title
if type(pagename) == 'table' then
end
end
end
return p