Changes

m
Lua error in Module:EquipmentInfoKai at line 153: attempt to call method '_manufacturer_name' (a string value).
Line 64: Line 64:  
_comparison_name_label = "Comparison name",
 
_comparison_name_label = "Comparison name",
 
_battle_name_label = "Battle name",
 
_battle_name_label = "Battle name",
 +
_manufacturer_name = "Manufacturer name",
 +
_allied_reporting_name = "Allied reporting name",
 
_equipment_data_documentation = "Template:EquipmentDataDocumentation/EditIntro",
 
_equipment_data_documentation = "Template:EquipmentDataDocumentation/EditIntro",
 
_edit_link_text = "Edit",
 
_edit_link_text = "Edit",
Line 149: Line 151:  
local comparison_name = self._equipment:comparison_name()
 
local comparison_name = self._equipment:comparison_name()
 
local battle_name = self._equipment:battle_name()
 
local battle_name = self._equipment:battle_name()
 +
local manufacturer_name = self._equipment:_manufacturer_name()
 +
local allied_reporting_name = self._equipment:_allied_reporting_name()
 
if list_name then
 
if list_name then
 
local list_japanese_name = self._equipment:list_japanese_name()
 
local list_japanese_name = self._equipment:list_japanese_name()
Line 204: Line 208:  
end
 
end
 
table.insert(alternative_names, format{self._alternative_name_template, label = self._battle_name_label, name = battle_name, japanese_name = battle_japanese_name})
 
table.insert(alternative_names, format{self._alternative_name_template, label = self._battle_name_label, name = battle_name, japanese_name = battle_japanese_name})
 +
end
 +
if #manufacturer_name == 0 then
 +
self._vars.manufacturer_name = ""
 +
else
 +
self._manufacturer_name = format{self._alternative_names_template, names = table.concat(manufacturer_name, "<br/>")}
 +
end
 +
if allied_reporting_name then
 +
self._vars.allied_reporting_name = ""
 +
else
 +
self._allied_reporting_name = format{self._alternative_names_template, names = table.concat(allied_reporting_name, "<br/>")}
 
end
 
end
 
if #alternative_names == 0 then
 
if #alternative_names == 0 then
Line 209: Line 223:  
else
 
else
 
self._vars.alternative_names = format{self._alternative_names_template, names = table.concat(alternative_names, "<br/>")}
 
self._vars.alternative_names = format{self._alternative_names_template, names = table.concat(alternative_names, "<br/>")}
end
+
end
 
end
 
end
  
42,611

edits