Module:Icons: Difference between revisions

Added inline blocks to GP & Icon code
m (Slight formatting change to GP)
(Added inline blocks to GP & Icon code)
Line 55: Line 55:
     end
     end
   end
   end
  result = '<span style="display:inline-block">'..result..'</span>'


   if menu then
   if menu then
     result = '{| class="articletable" style="display:inline-block;vertical-align:bottom;"\r\n|-\r\n|'..result
     result = '{| class="articletable" style="display:inline-block;vertical-align:middle;"\r\n|-\r\n|'..result
     result = result..'\r\n|}'
     result = result..'\r\n|}'
   end
   end
Line 65: Line 67:


function p.GP(amt, maxamt)
function p.GP(amt, maxamt)
   local result = p.Icon({'Coins', notext=true})
   local result = '[[File:Coins.svg|25px|link=Coins]]'
   result = result..'&nbsp;'..Shared.formatnum(amt)
   result = result..'&nbsp;'..Shared.formatnum(amt)
   if maxamt ~= nil then result = result..'-'..Shared.formatnum(maxamt) end
   if maxamt ~= nil then result = result..' - '..Shared.formatnum(maxamt) end
 
  result = '<span style="display:inline-block">'..result..'</span>'
   return result
   return result
end
end


return p
return p