Documentation for this module may be created at Module:Namespace manager/doc

local p = {}
 
function p.articleManagement(frame)
    local namespaceAccess = {
        ['MAIN']      = 'true',
        ['TALK']      = 'false',
        ['FILE']      = 'true',
        ['FILE_TALK'] = 'false',
        ['USER']      = 'false',
        ['USER_TALK'] = 'false',
        ['CATEGORY']  = 'true'
    }
 
    local namespace = nil
 
    if string.len(frame.args[1]) ~= 0 then
        namespace = string.upper(frame.args[1])
    else
        namespace = 'MAIN'
    end
 
    local access = namespaceAccess[namespace]
 
    if access == nil then
        access = 'false'
    end
 
    return access
 
end
 
return p
Community content is available under CC-BY-SA unless otherwise noted.