Module:PageCount

From The TF2 Sourcemod Wiki
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