- 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 55:
Line 55:
+
Line 125:
Line 126:
− +
Line 136:
Line 137:
− +
−
− +
+
+
+
+
Line 449:
Line 453:
+
+
+
+
no edit summary
"slot_details",
"slot_details",
"gun_fit_properties",
"gun_fit_properties",
"improvement",
},
},
_slot_template = [[|- align=center style="background-color: whitesmoke; line-height: 1.1;"
_slot_template = [[|- align=center style="background-color: whitesmoke; line-height: 1.1;"
<div style="text-align: center; background-color: lightgrey; margin:2px 0px 2px;">'''Scrap Value'''</div>
<div style="text-align: center; background-color: lightgrey; margin:2px 0px 2px;">'''Scrap Value'''</div>
<div style="text-align: center; background-color: whitesmoke; margin:2px 0px 0px;">${scrap}</div>
<div style="text-align: center; background-color: whitesmoke; margin:2px 0px 0px;">${scrap}</div>
${gun_fit_properties}</div>
${gun_fit_properties}${improvement}</div>
</div>
</div>
|}]],
|}]],
_gun_fit_properties_template = format{[[<div style="text-align: center; background-color: lightgrey; margin:2px 0px 2px;"><b>${subtitle}</b></div>
_gun_fit_properties_template = format{[[<div style="text-align: center; background-color: lightgrey; margin:2px 0px 2px;"><b>${subtitle}</b></div>
${gun_fit_groups}]], subtitle = Formatting:tooltip("Large Caliber Fit Gun Properties", "Based on experimental findings")},
${gun_fit_groups}]], subtitle = Formatting:tooltip("Large Caliber Fit Gun Properties", "Based on experimental findings")},
_gun_fit_group_template = [[
_gun_fit_group_template = [[<div style="text-align: left; display: flex; margin: 2px 0px;">
<div style="text-align: left; display: flex; margin: 2px 0px;">
<div style="margin-right: 1px; flex-shrink: 0; flex-basis: 140px; background-color: whitesmoke; display: flex; align-items: center;"><span>${fit_group}</span></div>
<div style="margin-right: 1px; flex-shrink: 0; flex-basis: 140px; background-color: whitesmoke; display: flex; align-items: center;"><span>${fit_group}</span></div>
<div style="margin-left: 1px; flex-grow: 1; background-color: whitesmoke; display: flex; align-items: center;"><b>${fit}</b></div>
<div style="margin-left: 1px; flex-grow: 1; background-color: whitesmoke; display: flex; align-items: center;"><b>${fit}</b></div>
</div>
</div>
]]
]],
_improvement_template = [[<div style="text-align: center; background-color: lightgrey; margin:2px 0px 2px;">'''Improvement'''</div>
<div style="text-align: center; background-color: whitesmoke; margin:2px 0px 2px;">${category_tree}</div>
]],
_improvement_category_template = "Equipment that can be improved with ${ship_name} as helper ship",
}
}
self._vars.gun_fit_properties = ""
self._vars.gun_fit_properties = ""
end
end
end
function ShipInfoKai:improvement()
self._vars.improvement = format{self._improvement_template, category_tree = tostring(require('Module:CategoryTree'){category = format{self._improvement_category_template, ship_name = self._ship:name()}, depth = 1})}
end
end