More languages
More actions
No edit summary Tag: Manual revert |
(reverted to july 2023 version) Tag: Manual revert |
||
(7 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
local category = frame.args.category or '' | local category = frame.args.category or '' | ||
local pages = mw.site.stats.pagesInCategory(category) | local pages = mw.site.stats.pagesInCategory(category) | ||
if tonumber(pages) == 1 then | |||
return "1 work" | |||
else | |||
return pages .. " works" | |||
end | |||
end | end | ||