Module:Subpage List: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 18: Line 18:
title = mw.title.getCurrentTitle()
title = mw.title.getCurrentTitle()
end
end
local subpages = p.getSubpages(title)
local subpages = utilsPage.getSubpages(title.prefixedText)
return p.buildTree(title, subpages, recurse)
return p.buildTree(title, subpages, recurse)
end
function p.getSubpages(title)
if not title then
title = mw.title.getCurrentTitle()
elseif title == "string" then
title = mw.title.create(title)
end
return utilsPage.dpl({
namespace= title.nsText,
titlematch= '%' .. title.text .. '/%',
})
end
end


Navigation menu