Module:User script table row/data

This is the current revision of this page, as edited by imported>Nardog at 04:21, 10 April 2021 (Created page with 'local source = mw.title.new('Wikipedia:User scripts/Most imported scripts'):getContent() local t = {} for script, total, active in mw.ustring.gmatch(source, '\n...'). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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