Module:PageCount

From The TF2 Sourcemod Wiki
Revision as of 01:08, 16 December 2024 by MIXERRULES (talk | contribs) (Added script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:PageCount/doc

local p = {}

function p.count(frame)
    local cat = frame.args[1] or ""
    local categorymembers = mw.site.stats.pagesInCategory(cat) or 0
    return categorymembers
end

return p