Template:PageCat: 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)
|
Revision as of 20:22, 14 October 2024
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