Module:Abilities/details table: Difference between revisions
mNo edit summary |
m Fixed fallback string |
||
Line 98: | Line 98: | ||
end | end | ||
local label = lang.get_string(key..'_label' | -- get localized label, if none exists, fallback to one that is based on the key | ||
local label = lang.get_string(key..'_label', nil, commonutils.add_space_before_cap(key)) | |||
local formatted_value = utils.format_value_with_prepost(key, value, frame, with_plus~=true) | local formatted_value = utils.format_value_with_prepost(key, value, frame, with_plus~=true) |