Module:User script table row/data

MyWikiBiz, Author Your Legacy — Saturday May 04, 2024
< Module:User script table row
Revision as of 07:49, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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

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