From Wikipedia, the free encyclopedia
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