Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Added header to the result from the getUseTable function to that the header can be hidden if not needed
(Adding in p.getItemUseTable)
(Added header to the result from the getUseTable function to that the header can be hidden if not needed)
Line 1,002: Line 1,002:
                          
                          
   local result = ''
   local result = ''
  if Shared.tableCount(useArray) == 0 then
    return ''
  end
   result = result..'{| class="wikitable sortable"'
   result = result..'{| class="wikitable sortable"'
   result = result..'\r\n!colspan=2|Item Created!!Type!!Requirements!!XP!!Quantity!!Ingredients'
   result = result..'\r\n!colspan=2|Item Created!!Type!!Requirements!!XP!!Quantity!!Ingredients'
Line 1,034: Line 1,037:


   result = result..'\r\n|}'
   result = result..'\r\n|}'
   return result
   return '==Uses==\r\n'..result
end
end