8,282
edits
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=' | -- s = sprite.link({name='InvSprite', 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=' | -- s = sprite.link({name='InvSprite', 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 | ||
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,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' or 'InvSprite') | ||
-- } | -- } | ||
-- table.insert( html, image ) | -- table.insert( html, image ) | ||
-- | -- table.insert( html, spriteCat ) | ||
if item.note and p.notes[item.note] then | if item.note and p.notes[item.note] then |