4,951
edits
Falterfire (talk | contribs) m (Slight formatting change to GP) |
Falterfire (talk | contribs) (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: | 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 = | local result = '[[File:Coins.svg|25px|link=Coins]]' | ||
result = result..' '..Shared.formatnum(amt) | result = result..' '..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 |