Jump to content

Module:User script table row/data

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Nardog (talk | contribs) at 03: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) ← Previous 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