- 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 7:
Line 7:
− +
Line 24:
Line 24:
+
Line 70:
Line 71:
+
+
+
+
− local name, page, section = equipment:link() +
− return Formatting:format_link(Formatting:format_stat_with_max(name, localized_name), page, section)
− +
Line 162:
Line 166:
+
no edit summary
|-
|-
| 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};"|<div style="position: absolute; right: 5px;">${edit_link}</div>
<p style="font-size: 25px">'''${name}'''</p>
<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>
|-
|-
_row_starter = "|-",
_row_starter = "|-",
_compatibility_cell = [[| style="width: 200px; text-align: center; background-color: ${bg_color};" | ${label}]],
_compatibility_cell = [[| style="width: 200px; text-align: center; background-color: ${bg_color};" | ${label}]],
_localized_name_template = "<p>''${localized_name}''</p>",
_equipment_data_documentation = "Template:EquipmentDataDocumentation/EditIntro",
_equipment_data_documentation = "Template:EquipmentDataDocumentation/EditIntro",
_edit_link_text = "Edit",
_edit_link_text = "Edit",
function EquipmentInfoKai:name(equipment)
function EquipmentInfoKai:name(equipment)
return Formatting:format_link(equipment:link())
end
function EquipmentInfoKai:localized_name(equipment)
local localized_name = equipment:localized_name()
local localized_name = equipment:localized_name()
if localized_name then
if localized_name then
return format{self._localized_name_template, localized_name = localized_name}
end
end
return Formatting:format_link(equipment:link())
return ""
end
end
extra_style = self:extra_style(equipment),
extra_style = self:extra_style(equipment),
name = self:name(equipment),
name = self:name(equipment),
localized_name = self:localized_name(equipment),
id = self:id(equipment),
id = self:id(equipment),
japanese_name = self:japanese_name(equipment),
japanese_name = self:japanese_name(equipment),