Editing Module:SoulsGive feedback
Jump to navigation
Jump to search
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
-- Formats souls amount with an icon and styling | -- Formats souls amount with an icon and styling | ||
function render(amount, args) | |||
local args = args or {} | local args = args or {} | ||
local size = args.size or '14px' | local size = args.size or '14px' | ||
| Line 12: | Line 9: | ||
local style = 'color:#98ffde; font-family:Retail Demo; text-wrap:nowrap; ' .. shadow | local style = 'color:#98ffde; font-family:Retail Demo; text-wrap:nowrap; ' .. shadow | ||
local file = '[[File:Souls iconColored.png|link=Souls|' .. size .. '|Souls]]' | |||
local file = '[[File:Souls iconColored.png|link= | |||
local thin_space = amount and ' ' or '' | local thin_space = amount and ' ' or '' | ||
local bold = amount and '<b>' .. amount .. '</b>' or '' | local bold = amount and '<b>' .. amount .. '</b>' or '' | ||
return '<span | return '<span style="' .. style .. '">' .. file .. thin_space .. bold .. '</span>' | ||
end | end | ||