Implements {{user script table row}} used in Wikipedia:User scripts/List. /data interprets Wikipedia:User scripts/Most imported scripts and formats the data in a table.


local source = mw.title.new('Wikipedia: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