561
edits
Auburnsummer (talk | contribs) No edit summary |
Auburnsummer (talk | contribs) No edit summary |
||
Line 11: | Line 11: | ||
local row = tonumber(frame.args['row']) - 1 | local row = tonumber(frame.args['row']) - 1 | ||
local col = tonumber(frame.args['col']) - 1 | local col = tonumber(frame.args['col']) - 1 | ||
local image = frame.args['image'] | |||
local cellWidth = sheetWidth / noOfRows | local cellWidth = sheetWidth / noOfRows | ||
local cellHeight = sheetHeight / noOfColumns | local cellHeight = sheetHeight / noOfColumns | ||
Line 31: | Line 32: | ||
left = tostring((offsetX - cellWidth * col) * ratio) .. 'px' | left = tostring((offsetX - cellWidth * col) * ratio) .. 'px' | ||
}) | }) | ||
:wikitext(image) | |||
:done() | :done() | ||
return tostring(span) | return tostring(span) |