- 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
Line 6:
Line 6:
− +
− +
− +
− '''${icon} ${eq_type}'''+
− +
− +
−
Line 24:
Line 23:
+
+
+
+
+
+
+
+
− +
Line 32:
Line 39:
+
+
Line 39:
Line 48:
+
+
Line 64:
Line 75:
+
Line 227:
Line 239:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Line 242:
Line 272:
− +
Prep for tabber prototyping
local EquipmentInfoKai = BaseData{
local EquipmentInfoKai = BaseData{
_template = [[{|class="${table_class}" id="${table_id}" style="border: 1px solid darkgray; width: 400px; background-color: #fafafa; float: ${float};"
_template = [[{|class="${table_class}" id="${table_id}" style="border: 1px solid darkgray; width: 350px; 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: 25px">'''${name}'''</p>${localized_name}
<p style="font-size: 20px;">'''${name}'''</p>${localized_name}
<p style="font-size: 20px">'''No.${id} ${japanese_name}'''</p>
<p>'''No.${id} ${japanese_name}'''</p>
|-
|-
| colspan="2" style="text-align: center; background-color: whitesmoke;" |
| colspan="2" style="text-align: center; background-color: whitesmoke;" |
<div>${icon} <b>${eq_type}</b></div>
<div><b>Effects: ${effects}</b></div>
<b>Effects: ${effects}</b>
<div>${buildable}</div>
'''Scrap value: ${scrap}'''${alternative_names}
'''Scrap value: ${scrap}'''${alternative_names}
|-
|-
${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: 200px; text-align: center; background-color: ${bg_color};" | ${label}]],
_compatibility_cell = [[| style="width: 175px; 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 = [[
${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",
_edit_link_text = "Edit",
_edit_link_text = "Edit",
_empty_card = "Empty equipment card slot.png",
_empty_card = "Empty equipment card slot.png",
_buildable = "'''Buildable'''",
_unbuildable = "''Unbuildable''",
_shown_ship_types = {
_shown_ship_types = {
2, 3,
2, 3,
"scrap",
"scrap",
"image",
"image",
"crafting",
"compatibility_details",
"compatibility_details",
},
},
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()
function EquipmentInfoKai:create_infobox_prep()
function EquipmentInfoKai:create_infobox_prep()
self._vars = {}
self._vars = {}
local table_classes = {"typography-xl-optout", "infobox"}
local table_classes = {"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)