|
|
Line 350: |
Line 350: |
|
| |
|
| return p._getItemCategories(item) | | return p._getItemCategories(item) |
| end
| |
|
| |
| -- TODO May be better placed in Shop module
| |
| function p.getSkillcapeTable(frame)
| |
| local skillName = frame.args ~= nil and frame.args[1] or frame
| |
| local cape = p.getItem(skillName..' Skillcape')
| |
| if cape == nil then
| |
| return ''
| |
| else
| |
| local resultPart = {}
| |
| table.insert(resultPart, '{| class="wikitable"\r\n')
| |
| table.insert(resultPart, '!Skillcape!!Name!!Effect')
| |
| table.insert(resultPart, '\r\n|-\r\n|'..Icons.Icon({cape.name, type='item', size='60', notext=true}))
| |
| table.insert(resultPart, '||'..Icons.Icon({cape.name, type='item', noicon=true})..'||'..(cape.customDescription or ''))
| |
| table.insert(resultPart, '\r\n|}')
| |
| return table.concat(resultPart)
| |
| end
| |
| end | | end |
|
| |
|