Module:Sandbox/BrandonXLF/4: Difference between revisions

Content deleted Content added
Add shieldStyle
Tag: Reverted
Remove scale
Tag: Reverted
Line 154:
local sizeparts = {}
if width then
insert(sizeparts, format("%d", width * scale))
end
if height then
insert(sizeparts, format("x%d", height * scale))
end
size = concat(sizeparts)
else
size = format("%s%d", landscape and "x" or "", defaultShieldSize * scale)
end
local shieldCode = format("[[File:%s|%spx|link=|alt=]]", shield[1], size)
Line 177:
function p.shield(route, shieldStyle, sizeStyle)
missingShields = {}
 
scale = scale or 1
 
local rendered = {}