Module:Abilities/utils: Difference between revisionsGive feedback
m added option to omit the + symbol from format_value_with_prepost |
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. | local prefix = lang.get_string(string.format("%s_prefix",key)) | ||
local postfix = lang. | 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 | ||