• 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
m
game order
Line 26: Line 26:  
| colspan="2" id="kc-eq-pictures" style="text-align: center;" | ${card}
 
| colspan="2" id="kc-eq-pictures" style="text-align: center;" | ${card}
 
|-
 
|-
| colspan="2" id="kc-eq-fits" style="text-align: center; background-color: LightSkyBlue;" | '''Refittable Class'''
+
| colspan="2" id="kc-eq-fits" style="text-align: center; background-color: LightSkyBlue;" | '''Refittable Ship Types'''
 
${compatibility_details}${bonus_details}
 
${compatibility_details}${bonus_details}
 
|}]],
 
|}]],
Line 44: Line 44:  
_row_starter = "|-",
 
_row_starter = "|-",
 
_compatibility_cell = [[| style="width: 190px; text-align: center; background-color: ${bg_color};" | ${label}]],
 
_compatibility_cell = [[| style="width: 190px; text-align: center; background-color: ${bg_color};" | ${label}]],
 +
_lbas_compatibility_row = [=[|-
 +
| colspan="2" style="text-align: center; background-color: LightSkyBlue;" | '''[[LBAS]] Plane''']=],
 
_localized_name_template = [[<div id="kc-eq-local-name" style="margin:4px 0;">${localized_name}</div>]],
 
_localized_name_template = [[<div id="kc-eq-local-name" style="margin:4px 0;">${localized_name}</div>]],
 
_flight_stats_template = [[<div id="kc-eq-flights"><b>Combat Radius: ${combat_radius}</b> (Deployment Cost: ${deployment_cost})</div>]],
 
_flight_stats_template = [[<div id="kc-eq-flights"><b>Combat Radius: ${combat_radius}</b> (Deployment Cost: ${deployment_cost})</div>]],
Line 64: Line 66:  
_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 71: Line 71:  
_buildable = "'''Buildable'''",
 
_buildable = "'''Buildable'''",
 
_unbuildable = "''Unbuildable''",
 
_unbuildable = "''Unbuildable''",
_float_style_template =  "float: ${float};",
+
_float_style_template =  " float: left; margin: 0 1.5em 1em 0;",
 
_shown_ship_types = {
 
_shown_ship_types = {
1, 2,
+
8, 9,
 +
10, 11,
 +
18, 7,
 +
5, 6,
 
3, 4,
 
3, 4,
5, 21,
+
21, 2,
6, 8,
+
1, 13,
9, 10,
+
14, 16,
7, 11,
+
22, 20,
18, 16,
  −
13, 14,
  −
20, 22,
   
19, 17
 
19, 17
 
},
 
},
Line 151: 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 208: Line 206:  
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 223: Line 211:  
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
   Line 341: Line 329:  
table.insert(result, format{self._compatibility_cell, bg_color = Formatting:format_equipment_compatibility(compatibility), label = ship_label})
 
table.insert(result, format{self._compatibility_cell, bg_color = Formatting:format_equipment_compatibility(compatibility), label = ship_label})
 
--table.insert(result, format{self._compatibility_cell, bg_color = Formatting:format_equipment_compatibility_color(compatibility), label = ship_label})
 
--table.insert(result, format{self._compatibility_cell, bg_color = Formatting:format_equipment_compatibility_color(compatibility), label = ship_label})
 +
end
 +
if self._equipment:is_lbas_plane() then
 +
table.insert(result, self._lbas_compatibility_row)
 
end
 
end
 
self._vars.compatibility_details = table.concat(result, "\n")
 
self._vars.compatibility_details = table.concat(result, "\n")
Line 470: Line 461:  
self._vars.table_class = table.concat(table_classes, " ")
 
self._vars.table_class = table.concat(table_classes, " ")
 
self._vars.table_id = collapsible and collapsible ~= "true" and ("mw-customcollapsible-" .. collapsible) or ""
 
self._vars.table_id = collapsible and collapsible ~= "true" and ("mw-customcollapsible-" .. collapsible) or ""
self._vars.float = self._args.float and format{self._float_style_template, float = self._args.float} or ""
+
self._vars.float = self._args.float and "" or self._float_style_template
 
end
 
end
  
35,391

edits

Navigation menu