Module:Skills/Artisan: Difference between revisions

m
Fix for misaligned tables when alt recipe is present
No edit summary
m (Fix for misaligned tables when alt recipe is present)
Line 628: Line 628:
:addClass('table-img')
:addClass('table-img')
cell = row:tag('td')
cell = row:tag('td')
if not altRepeat and rowspanAmt ~= nil then
cell:attr('rowspan', tostring(rowspanAmt))
end
cell:wikitext((qty > 1 and '<b>' .. qty .. 'x</b> ' or '') .. Icons.Icon({item.name, type='item', noicon=true}))
cell:wikitext((qty > 1 and '<b>' .. qty .. 'x</b> ' or '') .. Icons.Icon({item.name, type='item', noicon=true}))
if qty > 1 then
if qty > 1 then