Module:Pets: Difference between revisions

getPetSidebar: Center align pet image
(Added new getPets function for use in the new ModifierTables module that's in progress)
(getPetSidebar: Center align pet image)
Line 151: Line 151:
   result = '{| class="wikitable" style="float:right; clear:right;"\r\n|-\r\n'
   result = '{| class="wikitable" style="float:right; clear:right;"\r\n|-\r\n'
   result = result..'! '..name..'\r\n|-\r\n| '
   result = result..'! '..name..'\r\n|-\r\n| '
   result = result..Icons.Icon({name, type='pet', size='250', notext=true})
   result = result..'style="text-align: center;"|' .. Icons.Icon({name, type='pet', size='250', notext=true})
   result = result.."\r\n|-\r\n|'''Pet ID:''' "..pet.id
   result = result.."\r\n|-\r\n|'''Pet ID:''' "..pet.id
   result = result.."\r\n|-\r\n|'''Source:''' "..p._getPetSource(pet)
   result = result.."\r\n|-\r\n|'''Source:''' "..p._getPetSource(pet)