Module:Equipment/Recommended: Difference between revisions

m
images are not rawtext
(should have removed the need for itemicon)
m (images are not rawtext)
Line 37: Line 37:
tr:tag('td'):wikitext(string.format('[[File:%s.png|%s|link=%s|36px]]', slot.icon, slot.txt, slot.link))
tr:tag('td'):wikitext(string.format('[[File:%s.png|%s|link=%s|36px]]', slot.icon, slot.txt, slot.link))
for _, v in ipairs(data) do
for _, v in ipairs(data) do
tr:tag('td'):wikitext('{{ItemIcon|' .. v .. '|size=30}}')
local itemicon = p.Icon({v, img=v, type='item'})
tr:tag('td'):wikitext(itemicon)
end
end
892

edits