Module:IconBar
Jump to navigation
Jump to search
local p = {}
local getArgs = require("Module:Arguments").getArgs
function p.bar(frame)
local args = getArgs(frame, {inherited = true}) return p._bar(args)
end
function p._bar(args)
local name = args.name local num = tonumber(args[1]) or 1 if num == 0 then return "16px" end local numFloor = math.floor(num) local s = string.rep("16px", numFloor) if numFloor ~= num then s = s .. "16px" end return s
end
return p