Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Added type & category categories
(Added the 'asList' argument to getItemSources)
(Added type & category categories)
Line 1,133: Line 1,133:
function p._getItemCategories(item)
function p._getItemCategories(item)
   local result = ''
   local result = ''
  if item.category ~= nil then result = result..'[[Category:'..item.category..']]' end
  if item.type ~= nil then result = result..'[[Category:'..item.type..']]' end
   return result
   return result
end
end