This module is rated as
beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected.
This module displays statistics about a given editor's use of the
STiki anti-vandalism tool. It reads the information from
Wikipedia:STiki/leaderboard.
-- Get the raw leaderboard content.locallb=mw.title.new('Wikipedia:STiki/leaderboard')locallbtext=(lbandlb:getContent())orerror('Could not find the leaderboard text')-- Get a specific data value for a given username.localfunctionfindLeaderboardData(dfield,username)username=username:gsub('%p','%%%0')localr={}r.rank,r.uses,r.vand,r.agf,r.queue,r.first,r.last,r.avg,r.yest,r.last30=string.match(lbtext,'\n| align=center | (%d+) || align=left | %[%[User:'..username..'|'..username..'%]%] %(%[%[User_Talk:'..username..'|talk%]%] | %[%[Special:Contributions/'..username..'|contribs%]%]%) || align=right | (%d+) || align=right | ([%d%.]+)%% '..'|| align=right | ([%d%.]+)%% || align=center | (%S+) || align=right '..'| {{ntsh|%d+}} (%d+) days ago || align=right | {{ntsh|%d+}} (%d+) days ago || align=right '..'| {{ntsh|[%d%.]+}} ([%d%.]+) edits || align=right | (%d+) || align=right | (%d+)')returnrdfieldend-- Expose the data values to wikitextreturnsetmetatable({},{__index=function(t,key)returnfunction(frame)localusername=frame.args1or''username=mw.getContentLanguage():ucfirst(mw.text.trim(username))ifusername==''thenerror('No username specified')endreturnfindLeaderboardData(key,username)endend})