Module:Shop: Difference between revisions

Added shop icon to purchase list
(Reduced spacing between shop tables)
(Added shop icon to purchase list)
Line 187: Line 187:
function p._getPurchaseTable(purchase)
function p._getPurchaseTable(purchase)
   local result = '{| class="wikitable"\r\n|-'
   local result = '{| class="wikitable"\r\n|-'
   result = result..'\r\n!colspan="2"|[[Shop]] Purchase'
   result = result..'\r\n!colspan="2"|'..Icons.Icon({'Shop'})..' Purchase'
   if purchase.contains.items ~= nil and Shared.tableCount(purchase.contains.items) > 1 then
   if purchase.contains.items ~= nil and Shared.tableCount(purchase.contains.items) > 1 then
     result = result..' - '..Icons.Icon({purchase.name, type='item'})
     result = result..' - '..Icons.Icon({purchase.name, type='item'})