Module:Items: Difference between revisions

More formatting changes
(More formatting fixes)
(More formatting changes)
Line 376: Line 376:
   if isWeaponType then
   if isWeaponType then
     --Weapons have an extra column here for Attack Speed
     --Weapons have an extra column here for Attack Speed
    result = result..'\r\n!colspan="3"|'
  else
     result = result..'\r\n!colspan="2"|'
     result = result..'\r\n!colspan="2"|'
  else
    result = result..'\r\n!colspan="1"|'
   end
   end
   result = result..'\r\n!colspan="5"style="padding:0 0.5em 0 0.5em;"|Attack Bonus'
   result = result..'\r\n!colspan="5"style="padding:0 0.5em 0 0.5em;"|Attack Bonus'
Line 396: Line 396:
   result = result..'\r\n|-class="headerRow-1"'
   result = result..'\r\n|-class="headerRow-1"'
   result = result..'\r\n!style="padding:0 1em 0 0.5em;"|Item'
   result = result..'\r\n!style="padding:0 1em 0 0.5em;"|Item'
  result = result..'\r\n!style="padding:0 1em 0 0.5em;"|Name'
   --Weapons have Attack Speed here
   --Weapons have Attack Speed here
   if isWeaponType then
   if isWeaponType then
Line 436: Line 437:
       if listItem then
       if listItem then
         result = result..'\r\n|-'
         result = result..'\r\n|-'
         result = result..'\r\n|style="text-align:left;padding:0 0.5em 0 0.5em;"|'..Icons.Icon({item.name, type='item'})
         result = result..'\r\n|style ="text-align: left;padding: 0 0 0 0;"|'..Icons.Icon({item.name, type='item', size=50, notext=true})
        result = result..'\r\n|style ="text-align: left;padding: 0 0.5em 0 0.5em;"|[['..item.name..']]'
         result = result..'\r\n| style ="text-align: right;padding: 0 0.5em 0 0;" |'..Shared.formatnum(item.attackSpeed)
         result = result..'\r\n| style ="text-align: right;padding: 0 0.5em 0 0;" |'..Shared.formatnum(item.attackSpeed)
         for j, statName in pairs(statColumns) do
         for j, statName in pairs(statColumns) do