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
if label == nil then
local label = lang.get_string(key..'_label', nil, commonutils.add_space_before_cap(key))
label = commonutils.add_space_before_cap(key)
end
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)