Module:Documentation: Difference between revisions

show padlock in other namespaces, e.g. userspace
en>Ahecht
(sync sandbox. Fix (mirror) link for creating a sandbox.)
en>MSGJ
(show padlock in other namespaces, e.g. userspace)
Line 406: Line 406:
local protectionLevels, mProtectionBanner
local protectionLevels, mProtectionBanner
local title = env.title
local title = env.title
if title.namespace ~= 10 and title.namespace ~= 828 then
-- Don't display the protection template if we are not in the template or module namespaces.
return nil
end
protectionLevels = env.protectionLevels
protectionLevels = env.protectionLevels
if not protectionLevels then
if not protectionLevels then
Anonymous user