Module:Documentation: Difference between revisions
Jump to navigation
Jump to search
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') |
||
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 |
-- Don't display the protection template if we are not in the template or module namespaces. |
||
return nil |
return nil |
||
end |
end |