Editing Module:Documentation
Appearance
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 36: | Line 36: | ||
local p = {} | local p = {} | ||
p.i18n = i18n | p.i18n = i18n | ||
-- -------------------------------------------------------------------------- | -- -------------------------------------------------------------------------- | ||
| Line 140: | Line 134: | ||
-- @return {string} | -- @return {string} | ||
--]] | --]] | ||
function p.resolveNamespace(subjectSpace, | function p.resolveNamespace(subjectSpace, lowerPlural) | ||
if subjectSpace == 10 then -- Template namespace | if subjectSpace == 10 then -- Template namespace | ||
if | 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 | 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 | if lowerPlural then return 'files' | ||
else return 'file' end | else return 'file' end | ||
end | end | ||
| Line 814: | Line 808: | ||
if checkExists(env.docTitle.prefixedText) then | if checkExists(env.docTitle.prefixedText) then | ||
tags[2] = lnkdta:tag('td') | tags[2] = lnkdta:tag('td') | ||
tags[2]:wikitext('[[' .. env.docTitle.prefixedText .. '|' .. | tags[2]:wikitext('[[' .. env.docTitle.prefixedText .. '|' .. p.message('doc-link-display') .. ']]') | ||
colspan = colspan + 1 | colspan = colspan + 1 | ||
end | end | ||
if checkExists(env.sandboxTitle.prefixedText) then | if checkExists(env.sandboxTitle.prefixedText) then | ||
tags[3] = lnkdta:tag('td') | tags[3] = lnkdta:tag('td') | ||
tags[3]:wikitext('[[' .. env.sandboxTitle.prefixedText .. '|' .. | tags[3]:wikitext('[[' .. env.sandboxTitle.prefixedText .. '|' .. i18n:msg('sandbox-link-display') .. ']]') | ||
colspan = colspan + 1 | colspan = colspan + 1 | ||
end | end | ||