- 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 47:
Line 47:
+
Line 161:
Line 162:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
battle name support
_list_name_label = "List name",
_list_name_label = "List name",
_comparison_name_label = "Comparison name",
_comparison_name_label = "Comparison name",
_battle_name_label = "Battle name",
_equipment_data_documentation = "Template:EquipmentDataDocumentation/EditIntro",
_equipment_data_documentation = "Template:EquipmentDataDocumentation/EditIntro",
_edit_link_text = "Edit",
_edit_link_text = "Edit",
end
end
table.insert(alternative_names, format{self._alternative_name_template, label = self._comparison_name_label, name = comparison_name, japanese_name = comparison_japanese_name})
table.insert(alternative_names, format{self._alternative_name_template, label = self._comparison_name_label, name = comparison_name, japanese_name = comparison_japanese_name})
end
if battle_name then
local battle_japanese_name = self._equipment:battle_japanese_name()
local battle_reading = self._equipment:battle_reading()
if battle_reading ~= false then
battle_japanese_name = tostring(Formatting:japanese_text(Formatting:format_stat(battle_japanese_name), Formatting:format_stat(battle_reading)))
end
local battle_localized_name = self._equipment:battle_localized_name()
if battle_localized_name then
battle_name = Formatting:tooltip(Formatting:format_stat(battle_name), Formatting:format_stat(battle_localized_name))
else
battle_name = Formatting:format_stat(battle_name)
end
table.insert(alternative_names, format{self._alternative_name_template, label = self._battle_name_label, name = battle_name, japanese_name = battle_japanese_name})
end
end
if #alternative_names == 0 then
if #alternative_names == 0 then