Module:STikiLeaderboard: Difference between revisions

Content deleted Content added
update this to get all data fields from the table
better error check for the leaderboard content
Line 1:
-- Get the raw leaderboard content.
local lb = mw.title.new('Wikipedia:STiki/leaderboard') or {}
lbtext = lb:getContent() or error('Could not find the leaderboard text')
local lbtext
if lb then
lbtext = lb:getContent() or error('Could not find the leaderboard text')
end
 
-- Get a specific data value for a given username.