Jump to content

Module:User:SD0001/Gadget sizes

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by SD0001 (talk | contribs) at 15:48, 10 January 2025 (make table sortable). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
local Gadgets = require('Module:Gadgets')

local p = {}

p.main = function()
	local repo = Gadgets.parse()
	local box = '{| class="wikitable sortable"\n|-\n! Name !! Size (bytes)\n'
	
	for name, _ in pairs(repo) do
		box = box .. '|-\n| ' .. name .. ' || <span class="size" data-name="' .. name .. '"></span>\n'
	end
	
	return box .. '|}'
	
end

return p