• 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
no edit summary
Line 7: Line 7:  
|-
 
|-
 
| 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>
 
|-
 
|-
Line 24: Line 24:  
_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",
Line 70: Line 71:     
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
local name, page, section = equipment:link()
+
return format{self._localized_name_template, localized_name = localized_name}
return Formatting:format_link(Formatting:format_stat_with_max(name, localized_name), page, section)
   
end
 
end
return Formatting:format_link(equipment:link())
+
return ""
 
end
 
end
   Line 162: Line 166:  
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),
Anonymous user

Navigation menu