Module:Souls: Difference between revisionsGive feedback
m Call lang code once |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 5: | Line 5: | ||
-- Formats souls amount with an icon and styling | -- Formats souls amount with an icon and styling | ||
function render(amount, args) | local 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 21: | Line 21: | ||
local bold = amount and '<b>' .. amount .. '</b>' or '' | local bold = amount and '<b>' .. amount .. '</b>' or '' | ||
return '<span style="' .. style .. '">' .. file .. thin_space .. bold .. '</span>' | return '<span class="souls-text" style="' .. style .. '">' .. file .. thin_space .. bold .. '</span>' | ||
end | end | ||