Module:Sprite: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 32: Line 32:
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=pixelart]]', image, sheetWidth * ratio))
:done()
:done()
return tostring(span)
return tostring(span)