561
edits
Auburnsummer (talk | contribs) No edit summary |
Auburnsummer (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
local cellWidth = sheetWidth / noOfColumns | local cellWidth = sheetWidth / noOfColumns | ||
local cellHeight = sheetHeight / noOfRows | local cellHeight = sheetHeight / noOfRows | ||
local outline = | local outline = frame:getArgument('outline') | ||
local | local imageClass | ||
if outline = | if outline ~= nil then | ||
imageClass = "pixelart blackstroke" | |||
else | else | ||
imageClass = "pixelart" | |||
end | end | ||
local span = mw.html.create('span') | local span = mw.html.create('span') | ||
Line 28: | Line 28: | ||
overflow = 'hidden', | overflow = 'hidden', | ||
display = 'inline-block', | display = 'inline-block', | ||
['vertical-align'] = 'middle' | ['vertical-align'] = 'middle', | ||
['--blackstroke-color'] = outline | |||
}) | }) | ||
:tag('span') | :tag('span') |