Module:Abilities/details table: Difference between revisionsGive feedback
m Fixed fallback string |
m Check for empty str return to assign fallback |
||
| Line 99: | Line 99: | ||
-- get localized label, if none exists, fallback to one that is based on the key | -- get localized label, if none exists, fallback to one that is based on the key | ||
local label = lang.get_string(key..'_label' | local label = lang.get_string(key..'_label') | ||
if label == '' then | |||
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) | ||