Module:ItemsTable: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 23: Line 23:
function p.getItemRow(frame)
function p.getItemRow(frame)
   local item = Items.getItemByID(frame.args[1])
   local item = Items.getItemByID(frame.args[1])
   return '\r\n|-\r\n|'..Icons.Icon({item.name, type='item', notext=true, size=50})..'||'..item.name..'||'..(i - 1)..'||'..item.category..'||'..item.type..'||data-sort-value="'..item.sellsFor..'"|[[File:Coins.svg|20px]] '..item.sellsFor..'||style="text-align:right;"|'..SourceTables.getItemSources(item.name)..'||style="text-align:right;"|'..UseTables.getItemUses(item.name)
   return '\r\n|-\r\n|'..Icons.Icon({item.name, type='item', notext=true, size=50})..'||'..item.name..'||'..(frame.args[1] - 1)..'||'..item.category..'||'..item.type..'||data-sort-value="'..item.sellsFor..'"|[[File:Coins.svg|20px]] '..item.sellsFor..'||style="text-align:right;"|'..SourceTables.getItemSources(item.name)..'||style="text-align:right;"|'..UseTables.getItemUses(item.name)
end
end


return p
return p
444

edits