Module:CategoryList

--See Module:CategoryListOld for more complete, but failed attempt

local p = {}

function p.pagesInCategory (frame) local category = frame.args[1] local listStyleType = frame.args[2] or 'inline-bullets' local columnCount = frame.args[3] or '' if columnCount then columnCount = 'columncount = ' + columnCount end

local opts = [[

category = ]] .. category .. [[

shownamespace = true mode = ]] .. listStyleType .. ordermethod = sortkey       order     = ascending         .. columnCount .. 

return frame:extensionTag('DynamicPageList', opts) end

function p.categoriesInCategory (frame) local category = frame.args[1] local listStyleType = frame.args[2] or 'inline-bullets' local columnCount = frame.args[3] or '' if columnCount then columnCount = 'columncount = ' + columnCount end

local opts = [[

category = ]] .. category .. [[

namespace = Category shownamespace = false mode = ]] .. listStyleType .. ordermethod = sortkey       order     = ascending         .. columnCount .. 

return frame:extensionTag('DynamicPageList', opts) end

function p.main (frame) return p.pagesInCategory(frame) end return p