Jump to content

Module:User script table row/data: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
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...'
 
(No difference)

Latest revision as of 03:21, 10 April 2021

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