Difference between revisions of "Module:Effective protection level"
Jump to navigation
Jump to search
Module:Effective protection level (view source)
Revision as of 18:56, 12 January 2014
, 18:56, 12 January 2014don't bother checking our own frame
>Jackmcbarn (←Created page with 'local p = {} -- 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 i...') |
>Jackmcbarn (don't bother checking our own frame) |
||
Line 27: | Line 27: | ||
function p.p(frame) | function p.p(frame) | ||
local parent = frame:getParent() | local parent = frame:getParent() | ||
return p.main( | return p.main(parent.args.action or parent.args[1], parent.args.title or parent.args[2]) | ||
end | end | ||
return p | return p |