Module:Souls: Difference between revisionsGive feedback
m Missing "/" |
No edit summary |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 2: | Line 2: | ||
local Lang = require('Module:Lang') | local Lang = require('Module:Lang') | ||
local lang_code = Lang.get_lang_code() | |||
-- 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 12: | Line 13: | ||
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 link = 'Souls' | local link = 'Souls' | ||
if lang_code ~= 'en' then | if lang_code ~= 'en' then | ||
| 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 | ||