- 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 8:
Line 8:
− +
− +
Line 52:
Line 52:
+
Line 75:
Line 76:
+
+
+
+
Line 162:
Line 167:
− +
Make rarity display consistent with ShipInfoKai
_template = [[{|class="${table_class}" id="${table_id}" style="border: 1px solid darkgray; width: 400px; background-color: #fafafa; float: ${float};"
_template = [[{|class="${table_class}" id="${table_id}" style="border: 1px solid darkgray; width: 400px; background-color: #fafafa; float: ${float};"
|-
|-
| colspan="2" style="position: relative; padding: 1px 40px; text-align: center; background-color: ${back};${extra_style};"|<div style="position: absolute; right: 5px;">${edit_link}</div>
| colspan="2" style="position: relative; padding: 1px 40px; text-align: center; background-color: ${back};${extra_style};" title="${rarity}" | <div style="position: absolute; right: 5px;">${edit_link}</div>
<p style="font-size: 25px">'''${name}'''</p>${localized_name}
<p style="font-size: 25px">'''${name}'''</p>${localized_name}
<p style="font-size: 20px">'''No.${id} ${japanese_name}'''</p>
<p style="font-size: 20px">'''No.${id} ${japanese_name}'''</p>
|-
|-
| colspan="2" style="text-align: center; background-color: whitesmoke;"|
| colspan="2" style="text-align: center; background-color: whitesmoke;" |
'''${icon} ${eq_type}'''
'''${icon} ${eq_type}'''
_fields = {
_fields = {
"edit_link",
"edit_link",
"rarity",
"back",
"back",
"name",
"name",
function EquipmentInfoKai:edit_link()
function EquipmentInfoKai:edit_link()
self._vars.edit_link = Formatting:format_edit_link(self._equipment_data_module, self._edit_link_text, self._equipment_data_documentation)
self._vars.edit_link = Formatting:format_edit_link(self._equipment_data_module, self._edit_link_text, self._equipment_data_documentation)
end
function EquipmentInfoKai:rarity()
self._vars.rarity = Formatting:format_equipment_rarity(self._equipment:rarity())
end
end
function EquipmentInfoKai:eq_type()
function EquipmentInfoKai:eq_type()
self._vars.eq_type = Formatting:tooltip(Formatting:format_equipment_type(self._equipment:type()), Formatting:format_equipment_rarity(self._equipment:rarity()))
self._vars.eq_type = Formatting:format_equipment_type(self._equipment:type())
end
end