Module:Protection banner: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (fix a few mistakes)
(allow the template reason to show the red padlock in any namespace)
Line 701: Line 701:
local level = protectionObj.level
local level = protectionObj.level
local namespace = protectionObj.title.namespace
local namespace = protectionObj.title.namespace
local reason = protectionObj.reason
-- Deal with special cases first.
-- Deal with special cases first.
if (
if (namespace == 10 or namespace == 828)
namespace == 10
or namespace == 828
or reason and obj._cfg.imageIndefReasons[reason]
)
and action == 'edit'
and action == 'edit'
and level == 'sysop'
and level == 'sysop'