Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Documentation: Difference between revisions

Content added Content deleted
(change docpageRoot to docpageBase, as usually base and root mean different things with respect to titles)
(allow protection templates to display in the module namespace)
Line 376: Line 376:
local title = env.title
local title = env.title
local protectionTemplate = message('protection-template')
local protectionTemplate = message('protection-template')
if not (protectionTemplate and title.namespace == 10) then
local namespace = title.namespace
if not (protectionTemplate and (namespace == 10 or namespace == 828)) then
-- Don't display the protection template if we are not in the template namespace.
-- Don't display the protection template if we are not in the template or module namespaces.
return nil
return nil
end
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.