8,282
edits
No edit summary |
No edit summary |
||
Line 1,514: | Line 1,514: | ||
local item = p.items[chest_item] | local item = p.items[chest_item] | ||
-- table.insert( html, "\n<td>" ) | |||
-- local image, spriteCat = sprite.link{ | |||
-- id = item.id or chest_item, | |||
-- link = item.link or string.gsub(chest_item,'-',' '), | |||
-- text = item.title or q.titlecase(string.gsub(chest_item,'-',' ')), | |||
-- wrap = 'true', | |||
-- name = ( item[1] == 'item' and 'ItemSprite' or 'BlockSprite' ) | |||
-- } | |||
-- table.insert( html, image ) | |||
-- table.insert( html, spriteCat ) | |||
table.insert( html, "\n<td>" ) | table.insert( html, "\n<td>" ) | ||
local image, spriteCat = sprite.link{ | local image, spriteCat = sprite.link{ | ||
Line 1,520: | Line 1,531: | ||
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 ' | name = ( item[1] == 'item' and 'InvSprite' ) | ||
} | } | ||
table.insert( html, image ) | table.insert( html, image ) | ||
table.insert( html, spriteCat ) | table.insert( html, spriteCat ) | ||
if item.note and p.notes[item.note] then | if item.note and p.notes[item.note] then |