Module:User script table row/data

From Gratispaideia, the free and educational encyclopedia

Documentation for this module may be created at Module:User script table row/data/doc

local source = mw.title.new('Gratispaideia:User scripts/Most imported scripts'):getContent()
local t = {}

for script, total, active in mw.ustring.gmatch(source, '\n%| %[%[([^%]]+)%]%] -\n%| (%d+) -\n%| (%d+)') do
	t[script] = { total = tonumber(total), active = tonumber(active) }
end

return t