- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Changes
Jump to navigation
Jump to search
Line 16:
Line 16:
− <div>${icon} <b>${eq_type}</b></div>+
− <p><b>Effects: ${effects}</b></p>+
− <div>${buildable}</div>+
−
Line 239:
Line 238:
− +
− local ship_label = Formatting:format_ship_type(ship_type)+
− if note then+
− ship_label = Formatting:tooltip(ship_label, note)+
− +
+
+
+
+
+
+
no edit summary
|-
|-
| colspan="2" style="text-align: center; background-color: whitesmoke;" |
| colspan="2" style="text-align: center; background-color: whitesmoke;" |
${icon} <b>${eq_type}</b><br />
<b>Effects: ${effects}</b><br />
'''Scrap value: ${scrap}''' (${buildable})${alternative_names}
'''Scrap value: ${scrap}'''${alternative_names}
|-
|-
| colspan="2" style="text-align: center;" | ${card}
| colspan="2" style="text-align: center;" | ${card}
table.insert(result, self._row_starter)
table.insert(result, self._row_starter)
end
end
local compatibility, note = self._equipment:equippable(ship_type)
local compatibility, note, ship_label
if ship_type then
compatibility, note = self._equipment:equippable(ship_type)
ship_label = Formatting:format_ship_type(ship_type)-- + " " + Formatting:format_equipment_compatibility_symbol(compatibility)
end
if note then
ship_label = Formatting:tooltip(ship_label, note)
end
else
ship_label = Formatting:format_ship_type(ship_type)
end
table.insert(result, format{self._compatibility_cell, bg_color = Formatting:format_equipment_compatibility(compatibility), label = ship_label})
table.insert(result, format{self._compatibility_cell, bg_color = Formatting:format_equipment_compatibility(compatibility), label = ship_label})
--table.insert(result, format{self._compatibility_cell, bg_color = Formatting:format_equipment_compatibility_color(compatibility), label = ship_label})
end
end
self._vars.compatibility_details = table.concat(result, "\n")
self._vars.compatibility_details = table.concat(result, "\n")