Module:Items: Difference between revisions

Added category for Tier + Type
(Making a couple more things module-level variables)
(Added category for Tier + Type)
Line 252: Line 252:
   if item.category ~= nil then result = result..'[[Category:'..item.category..']]' end
   if item.category ~= nil then result = result..'[[Category:'..item.category..']]' end
   if item.type ~= nil then result = result..'[[Category:'..item.type..']]' end
   if item.type ~= nil then result = result..'[[Category:'..item.type..']]' end
  if item.tier ~= nil then result = result..'[[Category:'..Shared.titleCase(item.tier)..' '..item.type..']]' end
   return result
   return result
end
end