Anonymous

Module:Subpage List: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
no edit summary
mNo edit summary
No edit summary
Line 18: Line 18:
title = mw.title.getCurrentTitle()
title = mw.title.getCurrentTitle()
end
end
local subpages = utilsPage.dpl({
local subpages = p.getSubpages(title)
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,
namespace= title.nsText,
titlematch= '%' .. title.text .. '/%',
titlematch= '%' .. title.text .. '/%',
})
})
return p.buildTree(title, subpages, recurse)
end
end