Module:Abilities/card: Difference between revisionsGive feedback
m fixed notes that were appearing even if notes source link doesn't exist |
m fixed description generator trying to use scale attributes |
||
| Line 333: | Line 333: | ||
local description = '' | local description = '' | ||
for k, v in pairs(prop) do | for k, v in pairs(prop) do | ||
local formatted_value = utils.format_value_with_prepost(k, v, frame) | if type(v) ~= 'table' then | ||
local formatted_value = utils.format_value_with_prepost(k, v, frame) | |||
local attr_name = lang.get_string(k..'_label') | |||
description = description .. string.format('%s %s', formatted_value, attr_name) | |||
end | |||
end | end | ||