Module:LootChest: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 738: Line 738:
end
end


if p.items[itemname][1] == "item" then
s = sprite.link({name='ItemSprite', link, k ,id=m})
--s = p.current_frame:expandTemplate{ title = 'ItemLink', args = { link , k , id = m } }
elseif p.items[itemname][1] == "block" then
s = sprite.link({name='BlockSprite', link, k ,id=m})
--s = p.current_frame:expandTemplate{ title = 'BlockLink', args = { link , k , id = m } }
end
-- if p.items[itemname][1] == "item" then
-- if p.items[itemname][1] == "item" then
-- s = sprite.link({name='ItemSprite', 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='BlockSprite', 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
if p.items[itemname][1] == "item" then
s = sprite.link({name='Inventory slot', link, k ,id=m})
--s = p.current_frame:expandTemplate{ title = 'ItemLink', args = { link , k , id = m } }
elseif p.items[itemname][1] == "block" then
s = sprite.link({name='Inventory slot', link, k ,id=m})
--s = p.current_frame:expandTemplate{ title = 'BlockLink', args = { link , k , id = m } }
end


if p.items[itemname].note and p.notes[p.items[itemname].note] then
if p.items[itemname].note and p.notes[p.items[itemname].note] then
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 'Inventory slot' )
name = ( item[1] == 'item' and 'ItemSprite' or 'BlockSprite')
}
}
table.insert( html, image )
table.insert( html, image )

Navigation menu