285
edits
ByteFoolish (talk | contribs) (Switch to getAreaFilterType slayer) |
ByteFoolish (talk | contribs) (getPetNavbox) |
||
Line 147: | Line 147: | ||
end | end | ||
function p.getPetNavbox(frame) | |||
--• | |||
local result = '{| class="wikitable" style="margin:auto; text-align:center; clear:both; width: 100%"' | |||
result = result..'\r\n|-\r\n!Pets\r\n|-\r\n' | |||
local PetList = {} | |||
for i, petData in Shared.skpairs(PetData.Pets) do | |||
table.insert(PetList, Icons.Icon({petData.name, type='pet'})) | |||
end | |||
result = result..'|'..table.concat(PetList, ' • ') | |||
result = result..'\r\n|}' | |||
return result | |||
end | |||
return p | return p |
edits