Module:Abilities/utils: Difference between revisions

m added option to omit the + symbol from format_value_with_prepost
Sur (talk | contribs)
m _get_string > get_string
Line 25: Line 25:
if (value == nil) then return nil end
if (value == nil) then return nil end
local prefix = lang._get_string(string.format("%s_prefix",key))
local prefix = lang.get_string(string.format("%s_prefix",key))
local postfix = lang._get_string(string.format("%s_postfix",key))
local postfix = lang.get_string(string.format("%s_postfix",key))
-- Default pre/post fix to empty string, as they may not exist
-- Default pre/post fix to empty string, as they may not exist