561
edits
Auburnsummer (talk | contribs) No edit summary |
Auburnsummer (talk | contribs) No edit summary |
||
Line 37: | Line 37: | ||
) | ) | ||
:tag('span') | :tag('span') | ||
: | :cssText( | ||
position | string.format( | ||
[[ | |||
position: absolute; | |||
height: %dpx; | |||
width: %dpx; | |||
top: %dpx; | |||
left: %dpx; | |||
]], | |||
sheetHeight * ratio, | |||
sheetWidth * ratio, | |||
(offsetY - cellHeight * row) * ratio, | |||
(offsetX - cellWidth * col) * ratio | |||
) | |||
) | |||
:wikitext(string.format('[[%s|%dpx|class=pixelart]]', image, sheetWidth * ratio)) | :wikitext(string.format('[[%s|%dpx|class=pixelart]]', image, sheetWidth * ratio)) | ||
:done() | :done() |