Module:Protected edit request/active: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
reword comment
Jackmcbarn (talk | contribs)
reflect new calling conventions of Module:Effective protection level
Line 4:
local makeToolbar = require('Module:Toolbar')._main
local getPagetype = require('Module:Pagetype')._main
local effectiveProtectionLevel = require('Module:Effective protection level').main_main
 
----------------------------------------------------------------------
Line 38:
 
-- Add a protectionLevel property.
obj.protectionLevel = effectiveProtectionLevel(nil, obj.exists and 'edit' or 'create', obj)
if obj.protectionLevel == '*' then
-- Make unprotected pages return "unprotected".