Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Automatic skillcape table
(Formatting tweak to ShopSkillcapeTable)
(Automatic skillcape table)
Line 1,852: Line 1,852:


   return p._getItemCategories(item)
   return p._getItemCategories(item)
end
function p.getSkillcapeTable(frame)
  local skillName = frame.args ~= nil and frame.args[1] or frame
  local cape = p.getItem(skillName..' Skillcape')
  local result = '{| class="wikitable"\r\n'
  result = result..'!Skillcape!!Name!!Effect'
  result = result..'\r\n|-\r\n|'..Icons.Icon({cape.name, type='item', size='60', notext=true})
  result = result..'||[['..cape.name..']]||'..cape.description
  result = result..'\r\n|}'
  return result
end
end