Module:Documentation: Difference between revisions

Content deleted Content added
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:
local title = env.title
local protectionTemplate = message('protection-template')
iflocal notnamespace (protectionTemplate and= title.namespace == 10) then
if not (protectionTemplate and (namespace == 10 or namespace == 828)) then
-- Don't display the protection template if we are not in the template namespaceor module namespaces.
return nil
end