4,951
edits
Falterfire (talk | contribs) (Added proper handling for pagenames with apostrophes) |
Falterfire (talk | contribs) (added 'buildItemGrid') |
||
Line 1,962: | Line 1,962: | ||
result = result..'\r\n|}' | result = result..'\r\n|}' | ||
return result | |||
end | |||
function p.buildItemGrid(frame) | |||
result = '{|' | |||
for i, item in Shared.skpairs(ItemData.Items) do | |||
if i % 17 == 1 then | |||
result = result..'\r\n|-\r\n|' | |||
else | |||
result = result..'||' | |||
end | |||
result = result..Icons.Icon({item.name, type='item', notext=true, size='30'}) | |||
end | |||
result = result..'\r\n|}' | |||
return result | return result | ||
end | end | ||
return p | return p |