Module:Sprite: Difference between revisions

Jump to navigation Jump to search
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)

Navigation menu