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 |
if subjectSpace ~= 6 then -- Don't show the link in file space. |
||
local pagetype |
|||
⚫ | |||
if subjectSpace == 10 then |
|||
pagetype = 'template' |
|||
text = text .. ' ' .. makeWikilink('Special:PrefixIndex/' .. templatePage .. '/', 'Subpages of this template') |
|||
elseif subjectSpace |
elseif subjectSpace == 828 then |
||
pagetype = 'module' |
|||
text = text .. ' ' .. makeWikilink('Special:PrefixIndex/' .. templatePage .. '/', 'Subpages of this page') |
|||
else |
|||
pagetype = 'page' |
|||
end |
|||
⚫ | |||
end |
end |
||
-- Show the "print" link if it exists. |
-- Show the "print" link if it exists. |