Module:Documentation: Difference between revisions

    m>Mr. Stradivarius
    (change docpageRoot to docpageBase, as usually base and root mean different things with respect to titles)
    m>Mr. Stradivarius
    (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
    -- Don't display the protection template if we are not in the template namespace.
    if not (protectionTemplate and (namespace == 10 or namespace == 828)) then
    -- Don't display the protection template if we are not in the template or module namespaces.
    return nil
    return nil
    end
    end