Module:LootChest: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 747: Line 747:
if p.items[itemname][1] == "item" then
if p.items[itemname][1] == "item" then
s = sprite.link({name='InvSprite', link, k ,id=m})
s = sprite.link({name='Inventory slot', link, k ,id=m})
--s = p.current_frame:expandTemplate{ title = 'ItemLink', args = { link , k , id = m } }
--s = p.current_frame:expandTemplate{ title = 'ItemLink', args = { link , k , id = m } }
elseif p.items[itemname][1] == "block" then
elseif p.items[itemname][1] == "block" then
s = sprite.link({name='InvSprite', link, k ,id=m})
s = sprite.link({name='Inventory slot', link, k ,id=m})
--s = p.current_frame:expandTemplate{ title = 'BlockLink', args = { link , k , id = m } }
--s = p.current_frame:expandTemplate{ title = 'BlockLink', args = { link , k , id = m } }
end
end
Line 1,520: Line 1,520:
text = item.title or q.titlecase(string.gsub(chest_item,'-',' ')),
text = item.title or q.titlecase(string.gsub(chest_item,'-',' ')),
wrap = 'true',
wrap = 'true',
name = ( item[1] == 'item' and 'ItemSprite' or 'BlockSprite' )
name = ( item[1] == 'item' and 'Inventory slot' )
}
}
table.insert( html, image )
table.insert( html, image )