Changes

no edit summary
Line 18: Line 18:  
_stat_2 = "%d (%d)",
 
_stat_2 = "%d (%d)",
 
_normal_construction = "Normal",
 
_normal_construction = "Normal",
 +
_normal_construction_category = "Category:Ships buildable in Normal Construction",
 
_large_ship_construction = "LSC",
 
_large_ship_construction = "LSC",
 +
_large_ship_construction_category = "Category:Ships buildable in Large Ship Construction",
 
_ship_data_documentation = "Template:ShipDataDocumentation/EditIntro",
 
_ship_data_documentation = "Template:ShipDataDocumentation/EditIntro",
 
_edit_link_text = "Edit",
 
_edit_link_text = "Edit",
Line 329: Line 331:  
local buildable_methods = {}
 
local buildable_methods = {}
 
if buildable then
 
if buildable then
table.insert(buildable_methods, self._normal_construction)
+
table.insert(buildable_methods, Formatting:format_link(self._normal_construction_category, self._normal_construction))
 
end
 
end
 
if buildable_lsc then
 
if buildable_lsc then
table.insert(buildable_methods, self._large_ship_construction)
+
table.insert(buildable_methods, Formatting:format_link(self._large_ship_construction_category, self._large_ship_construction))
 
end
 
end
 
self._vars.build_remodel_info =  Formatting:format_stat_with_max(Formatting:seconds_to_hms(self._ship:build_time() * 60), table.concat(buildable_methods, ", "))
 
self._vars.build_remodel_info =  Formatting:format_stat_with_max(Formatting:seconds_to_hms(self._ship:build_time() * 60), table.concat(buildable_methods, ", "))
Anonymous user