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

Module:Documentation: Difference between revisions

From The Petit Planet Wiki
mNo edit summary
No edit summary
Line 134: Line 134:
-- @return {string}
-- @return {string}
--]]
--]]
function p.resolveNamespace(subjectSpace, upperPlural)
function p.resolveNamespace(subjectSpace, lowerPlural)
if subjectSpace == 10 then -- Template namespace
if subjectSpace == 10 then -- Template namespace
if upperPlural then return 'templates'
if lowerPlural then return 'templates'
else return 'template' end
else return 'template' end
elseif subjectSpace == 828 then -- Module namespace
elseif subjectSpace == 828 then -- Module namespace
if upperPlural then return 'modules'
if lowerPlural then return 'modules'
else return 'module' end
else return 'module' end
elseif subjectSpace == 6 then -- File namespace
elseif subjectSpace == 6 then -- File namespace
if upperPlural then return 'files'
if lowerPlural then return 'files'
else return 'file' end
else return 'file' end
end
end