Changes

Line 82: Line 82:  
table.insert(value, Formatting:format_stat(ship:japanese_name()))
 
table.insert(value, Formatting:format_stat(ship:japanese_name()))
 
end
 
end
return {value = Formatting:id_span(tostring(ship:api_id() or mw.ustring.lower(mw.ustring.gsub(ship:name(), "%s+", self._dash))), self._fragment_prefix, table.concat(value, "<br />")), text_align = "text-align: " + self._start_align}
+
return {value = Formatting:id_span(tostring(ship:api_id() or mw.ustring.lower(mw.ustring.gsub(ship:name(), "%s+", self._dash))), self._fragment_prefix, table.concat(value, "<br />")), text_align = "text-align: " .. self._start_align}
 
end
 
end
   Line 98: Line 98:  
class_number = "??"
 
class_number = "??"
 
end
 
end
return {value = class_number and format{self._class_number_template, class_name = class_name, class_number = class_number} or class_name, text_align = "text-align: " + self._start_align}
+
return {value = class_number and format{self._class_number_template, class_name = class_name, class_number = class_number} or class_name, text_align = "text-align: " .. self._start_align}
 
end
 
end
    
function ShipListKai:type(ship)
 
function ShipListKai:type(ship)
return {value = Formatting:format_ship_code(ship:type()), text_align = "text-align: " + self._start_align}
+
return {value = Formatting:format_ship_code(ship:type()), text_align = "text-align: " .. self._start_align}
 
end
 
end
   Line 272: Line 272:  
table.insert(build_info, self._remodel_to_label .. format{self._remodel_template, link = Formatting:fragment_link(tostring(remodel_to:api_id() or mw.ustring.lower(mw.ustring.gsub(remodel_to:name(), "%s+", self._dash))), self._fragment_prefix, remodel_to:name()), level = remodel_level})
 
table.insert(build_info, self._remodel_to_label .. format{self._remodel_template, link = Formatting:fragment_link(tostring(remodel_to:api_id() or mw.ustring.lower(mw.ustring.gsub(remodel_to:name(), "%s+", self._dash))), self._fragment_prefix, remodel_to:name()), level = remodel_level})
 
end
 
end
return {value = table.concat(build_info, "<br />"), text_align = "text-align: " + self._start_align}
+
return {value = table.concat(build_info, "<br />"), text_align = "text-align: " .. self._start_align}
 
end
 
end
   Line 278: Line 278:  
local note = self._notes[ship]
 
local note = self._notes[ship]
 
if note then
 
if note then
return {value = note.note or "", text_align = "text-align: " + self._start_align}
+
return {value = note.note or "", text_align = "text-align: " .. self._start_align}
 
end
 
end
return {value = "", text_align = "text-align: " + self._start_align}
+
return {value = "", text_align = "text-align: " .. self._start_align}
 
end
 
end
  
1,031

edits