local p = {} function p.getPagesInCategory(categoryName) local category = mw.site.getCategory(categoryName) local pages = {} for page in category:members() do table.insert(pages, page.title) end return pages end return p