Jump to content

Module:User:SD0001/Gadget sizes

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SD0001 (talk | contribs) at 15:41, 10 January 2025 (fix table syntax). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local Gadgets = require('Module:Gadgets')

local p = {}

p.main = function()
	local repo = Gadgets.parse()
	local box = '{| class="wikitable"\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