Content deleted Content added
avoid defining ten different output functions by using a metatable; and use string.match rather than mw.ustring.match as it works for this pattern, and it is faster |
fix leaderboard module title |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1:
-- Get the raw leaderboard content.
local lb = mw.title.new('Wikipedia:STiki/
local lbtext = (lb and lb:getContent()) or error('Could not find the leaderboard text')
Line 6:
local function findLeaderboardData(dfield, username)
username = username:gsub('%p', '%%%0')
)
end
Line 23:
__index = function (t, key)
return function (frame)
})
|