Modul:Effective protection level: Unterschied zwischen den Versionen
Modul:Effective protection level (Quelltext anzeigen)
Version vom 12. Januar 2014, 20:56 Uhr
, vor 10 Jahrendon't bother checking our own frame
(←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...') |
(don't bother checking our own frame) |
||
Zeile 27: | Zeile 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 |