Module:Sprite: Difference between revisions

Jump to navigation Jump to search
Should fix it
No edit summary
(Should fix it)
Line 83: Line 83:
scale = settings.scale,
scale = settings.scale,
autoScale = settings.autoscale,
autoScale = settings.autoscale,
image = getImage(settings.image)
image = (settings.image and getImage(settings.image))
or settings.spriteSheet
}
}


Line 141: Line 142:
append("background-position", '-' .. left .. 'px -' .. top .. 'px')
append("background-position", '-' .. left .. 'px -' .. top .. 'px')
if settings.image then
if settings.image then
append("background", "url(" .. settings.image.url .. ")")
append("background", settings.image.url)
end
end


Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator, Widget editors
154

edits

Navigation menu