Jump to content

Module:User scripts table

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Guarapiranga (talk | contribs) at 06:32, 22 May 2021 (User scripts table). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local source = mw.title.new('Wikipedia:User scripts/Most imported scripts'):getContent()

for script, total, active in mw.ustring.gmatch(source, '\n%| %[%[([^%]]+)%]%] -\n%| (%d+) -\n%| (%d+)') do

local row = mw.html.create('tr')
       :tag('td'):wikitext(script)
       :tag('td'):wikitext(active)
       :tag('td'):wikitext(total)

end