Module:Items: Difference between revisions

From Melvor Idle
No edit summary
No edit summary
Line 571: Line 571:
curRow = html:tag('tr')
curRow = html:tag('tr')
i = 0
i = 0
else
end
cell = curRow:tag('td')
:css('height', '48px')
cell = curRow:tag('td')
:css('width', '48px')
:css('height', '48px')
:css('padding', '0px')
:css('width', '48px')
:css('padding', '0px')
cell:tag('div')
cell:tag('div')
:css('padding', '8px')
:css('padding', '8px')
:wikitext(Icons.Icon({v.name, type='item', notext=true, size='32'}))
:wikitext(Icons.Icon({v.name, type='item', notext=true, size='32'}))
-- Mod operator is slow. We use this instead
-- Mod operator is slow. We use this instead
i = i + 1
i = i + 1
end
end
end
end
end