Module:Documentation: Difference between revisions

Jump to navigation Jump to search
more efficient code for the subpages link
(try and keep the line length down a bit)
(more efficient code for the subpages link)
Line 326:
end
-- Show the "subpages" link.
if subjectSpace =~= 8286 then -- ModuleDon't show the link in file space.
local pagetype
text = text .. ' ' .. makeWikilink('Special:PrefixIndex/' .. templatePage .. '/', 'Subpages of this module')
elseif if subjectSpace == 10 then -- Template space.
pagetype = 'template'
text = text .. ' ' .. makeWikilink('Special:PrefixIndex/' .. templatePage .. '/', 'Subpages of this template')
elseif subjectSpace ~== 6828 then -- Don't show the link in file space.
pagetype = 'module'
text = text .. ' ' .. makeWikilink('Special:PrefixIndex/' .. templatePage .. '/', 'Subpages of this page')
else
pagetype = 'page'
end
text = text .. ' ' .. makeWikilink('Special:PrefixIndex/' .. templatePage .. '/', 'Subpages of this module' .. pagetype)
end
-- Show the "print" link if it exists.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu