Module:Protection banner: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (fix comment typo)
(more efficient p.matchNamespace logic)
Line 93: Line 93:
end
end
local nskey = nskeys[ns]
local nskey = nskeys[ns]
if not nskey and ns % 2 == 1 then
if not nskey then
nskey = 'talk'
if ns % 2 == 1 then
nskey = 'talk'
elseif not nskey then
else
nskey = 'all'
nskey = 'all'
end
end
end
return nskey
return nskey