Jump to content

Module:Protection banner: Difference between revisions

allow the template reason to show the red padlock in any namespace
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 (namespace == 10 or namespace == 828)
if (
namespace == 10
or namespace == 828
or reason and obj._cfg.imageIndefReasons[reason]
)
and action == 'edit'
and action == 'edit'
and level == 'sysop'
and level == 'sysop'
Cookies help us deliver our services. By using our services, you agree to our use of cookies.