Module:CategoryCount
Documentation for this module may be created at Module:CategoryCount/doc
local p = {}
function p.countPagesInCategory(frame)
    -- Получаем название категории из параметров
    local category = frame.args[1]
    if not category then
        return "Не указана категория"
    end
    -- Получаем количество страниц в категории
    local categoryInfo = mw.site.stats.pagesInCategory(category)
    if not categoryInfo then
        return "Категория не найдена"
    end
    return categoryInfo
end
return p