Jump to content

Module:Medal tally

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by KEmel49 (talk | contribs) at 17:22, 9 December 2024 (Xperiment). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
local p = {}

function p.getEditCount(frame)
    local username = frame.args.username or mw.title.getCurrentTitle().text
    local userInfo = mw.site.users[username]
    
    if userInfo and userInfo.editCount then
        return userInfo.editCount
    else
        return "Edit count unavailable"
    end
end

return package