Changes
no edit summary
= image
= image
and EquipmentCardKai:Asset({ name, size = image, link = link or name })
and EquipmentCardKai:Asset({ name, size = image, link = link or name })
or F:format_link(link or name, text or name)
or ""
local formatted_icon
local formatted_icon
and F:format_image{ F:format_equipment_icon(Equipment(name):icon()) }
and F:format_image{ F:format_equipment_icon(Equipment(name):icon()) }
or ""
or ""
local formatted_text
= text
and F:format_link(link or name, text or name)
or (icon
and F:format_link(link or name, text or name)
or "")
or (image
and ""
or F:format_link(link or name, text or name))
local tooltip_content = F:class_div("tooltip-contents", nil, #cards > 0 and table.concat(cards, "") or "??")
local tooltip_content = F:class_div("tooltip-contents", nil, #cards > 0 and table.concat(cards, "") or "??")
return F:class_span("advanced-tooltip", nil, formatted_icon .. formatted_link .. tooltip_content)
return F:class_span("advanced-tooltip", nil, formatted_icon .. formatted_link .. formatted_text .. tooltip_content)
end
end