Module:Sprite: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 39: Line 39:
left = tostring((offsetX - cellWidth * col) * ratio) .. 'px'
left = tostring((offsetX - cellWidth * col) * ratio) .. 'px'
})
})
:wikitext(string.format('[[%s|%dpx|class=pixelart]]', image, sheetWidth * ratio))
:wikitext(string.format('[[%s|%dpx|class=%s]]', image, sheetWidth * ratio, imageClass))
:done()
:done()
return tostring(span)
return tostring(span)