Changes

Revert
Line 6: Line 6:     
local EquipmentInfoKai = BaseData{
 
local EquipmentInfoKai = BaseData{
_template = [[{|class="${table_class}" id="${table_id}" style="border: 1px solid darkgray; width: 350px; background-color: #fafafa; float: ${float};"
+
_template = [[{|class="${table_class}" id="${table_id}" style="border: 1px solid darkgray; width: 400px; background-color: #fafafa; float: ${float};"
 
|-
 
|-
 
| colspan="2" style="position: relative; padding: 1px 40px; text-align: center; background-color: ${back};${extra_style};" title="${rarity}" | <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};" title="${rarity}" | <div style="position: absolute; right: 5px;">${edit_link}</div>
<p style="font-size: 20px;">'''${name}'''</p>${localized_name}
+
<p style="font-size: 25px">'''${name}'''</p>${localized_name}
<p>'''No.${id} ${japanese_name}'''</p>
+
<p style="font-size: 20px">'''No.${id} ${japanese_name}'''</p>
 
|-
 
|-
 
| colspan="2" style="text-align: center; background-color: whitesmoke;" |
 
| colspan="2" style="text-align: center; background-color: whitesmoke;" |
<div style="display: inline; height: 30px;">${icon}</div> ${eq_type}'''
+
'''${icon} ${eq_type}'''
<div>Effects: ${effects}</b></div>
+
 
<div>${buildable}</div>
+
<b>Effects: ${effects}</b>
 +
 
 
'''Scrap value: ${scrap}'''${alternative_names}
 
'''Scrap value: ${scrap}'''${alternative_names}
 
|-  
 
|-  
| colspan="2" style="text-align: center;" | <tabber>
+
| colspan="2" style="text-align: center;" | ${card}
Card=${card}
  −
|-|Fairy=${fairy}
  −
|-|Equipment=${cg}
  −
|-|Eq + Fairy=${cg_fairy}
  −
</tabber>
   
|-
 
|-
 
| colspan="2" style="text-align: center; background-color: LightSkyBlue;" | '''Refittable Class'''
 
| colspan="2" style="text-align: center; background-color: LightSkyBlue;" | '''Refittable Class'''
 
${compatibility_details}
 
${compatibility_details}
 
|}]],
 
|}]],
--|-
  −
--| colspan="2" style="text-align: center; padding: 0px;" | <div class="mw-collapsible mw-collapsed">
  −
--<div style="background-color: lightskyblue; text-align: center; margin: 0px;">'''Improvement'''</div>
  −
--<div class="mw-collapsible-content" style="margin-bottom: -2px;">
  −
--${improvement}
  −
--</div>
  −
--</div>
  −
--|}]],
   
_row_starter = "|-",
 
_row_starter = "|-",
_compatibility_cell = [[| style="width: 175px; 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>",
 
_localized_name_template = "<p>''${localized_name}''</p>",
 
_alternative_names_template = [[  
 
_alternative_names_template = [[  
Line 44: Line 32:  
${names}
 
${names}
 
</div></div>]],
 
</div></div>]],
-- _collapsed_content_header = [[<div style="text-align: center; background-color: lightgrey; margin:2px 0px 2px;">'''${content}'''</div>]],
  −
-- _collapsed_content_row = [[<div style="text-align: center; background-color: whitesmoke; margin:2px 0px 2px;">${content}</div>]],
   
_alternative_name_template = [[<div style="display: inline-block; vertical-align: middle;"><small>''${label}:''</small></div> <div style="display: inline-block; vertical-align: middle;"><small>''${name}<br />${japanese_name}''</small></div>]],
 
_alternative_name_template = [[<div style="display: inline-block; vertical-align: middle;"><small>''${label}:''</small></div> <div style="display: inline-block; vertical-align: middle;"><small>''${name}<br />${japanese_name}''</small></div>]],
 
_library_name_label = "Library name",
 
_library_name_label = "Library name",
Line 78: Line 64:  
"scrap",
 
"scrap",
 
"image",
 
"image",
"crafting",
   
"compatibility_details",
 
"compatibility_details",
 
},
 
},
Line 225: Line 210:  
end
 
end
 
self._vars.card = EquipmentCardKai:card{equipment = self._equipment, caption = caption}
 
self._vars.card = EquipmentCardKai:card{equipment = self._equipment, caption = caption}
self._vars.fairy = Formatting:format_image{self._equipment:fairy()}
  −
self._vars.cg = Formatting:format_image{self._equipment:cg()}
  −
self._vars.cg_fairy = Formatting:format_image{self._equipment:cg_fairy()}
   
end
 
end
   Line 245: Line 227:  
self._vars.compatibility_details = table.concat(result, "\n")
 
self._vars.compatibility_details = table.concat(result, "\n")
 
end
 
end
  −
function EquipmentInfoKai:crafting()
  −
local craft_methods
  −
if self._equipment:buildable() then
  −
self._vars.buildable = self._buildable
  −
else
  −
self._vars.buildable = self._unbuildable
  −
end
  −
end
  −
  −
--function EquipmentInfoKai:improvement()
  −
-- local cells = {}
  −
-- local improvement = self._equipment:improvement()
  −
-- if improvement then
  −
-- Formatting:format_resources(improvement:resources())
  −
-- for ship, ship_info in pairs(improvement:ships()) do
  −
-- format{self._}
  −
--end
      
function EquipmentInfoKai:create_item()
 
function EquipmentInfoKai:create_item()
Line 278: Line 242:  
function EquipmentInfoKai:create_infobox_prep()
 
function EquipmentInfoKai:create_infobox_prep()
 
self._vars = {}
 
self._vars = {}
local table_classes = {"infobox"}
+
local table_classes = {"typography-xl-optout", "infobox"}
 
if self._args.classes then
 
if self._args.classes then
 
table.insert(table_classes, self._args.classes)
 
table.insert(table_classes, self._args.classes)
Anonymous user