Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Number of works

From ProleWiki, the proletarian encyclopedia
Revision as of 21:56, 4 July 2023 by CriticalResist (talk | contribs) (test)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
local p = {}

function p.getWorkCount(frame)
    local category = frame.args.category or ''
    local pages = mw.site.stats.pagesInCategory(category)
    return tostring(pages - 1)
end

return p