Module:CategoryCount: Difference between revisions
Jump to navigation
Jump to search
(Created page with "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 "Категория...") |
(No difference)
|
Latest revision as of 20:23, 14 October 2024
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