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

Module:Documentation: Difference between revisions

Content added Content deleted
(try and keep the line length down a bit)
(more efficient code for the subpages link)
Line 326: Line 326:
end
end
-- Show the "subpages" link.
-- Show the "subpages" link.
if subjectSpace == 828 then -- Module space.
if subjectSpace ~= 6 then -- Don't show the link in file space.
local pagetype
text = text .. ' ' .. makeWikilink('Special:PrefixIndex/' .. templatePage .. '/', 'Subpages of this module')
elseif subjectSpace == 10 then -- Template space.
if subjectSpace == 10 then
pagetype = 'template'
text = text .. ' ' .. makeWikilink('Special:PrefixIndex/' .. templatePage .. '/', 'Subpages of this template')
elseif subjectSpace ~= 6 then -- Don't show the link in file space.
elseif subjectSpace == 828 then
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 ' .. pagetype)
end
end
-- Show the "print" link if it exists.
-- Show the "print" link if it exists.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.