- 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:
− +
Line 25:
Line 25:
+
+
Line 54:
Line 56:
+
+
+
+
Line 150:
Line 156:
+
+
no edit summary
_template = [[{|style="border: 1px solid darkgray; width: 400px;"
_template = [[{|style="border: 1px solid darkgray; width: 400px;"
|-
|-
| colspan="2" style="text-align: center; font-size:25px; background-color: ${back};${extra_style};"|
| colspan="2" style="position: relative; text-align: center; font-size:25px; background-color: ${back};${extra_style};"|<div style="position: absolute; right: 5px;">${edit_link}</div>
'''${name}'''
'''${name}'''
_row_starter = "|-",
_row_starter = "|-",
_compatibility_cell = [[| style="width: 200px; text-align: center; background-color: ${bg_color};" | ${label}]],
_compatibility_cell = [[| style="width: 200px; text-align: center; background-color: ${bg_color};" | ${label}]],
_equipment_data_documentation = "Template:EquipmentDataDocumentation/EditIntro",
_edit_link_text = "Edit",
_shown_ship_types = {
_shown_ship_types = {
2,
2,
}
}
}
}
function EquipmentInfoKai:edit_link(equipment_data_module)
return Formatting:format_edit_link(equipment_data_module, self._edit_link_text, self._equipment_data_documentation)
end
function EquipmentInfoKai:back(equipment)
function EquipmentInfoKai:back(equipment)
function EquipmentInfoKai:Infobox(name)
function EquipmentInfoKai:Infobox(name)
local equipment = Equipment(name)
local equipment = Equipment(name)
local equipment_data_module = Equipment:get_module(name)
return format{self._template,
return format{self._template,
edit_link = self:edit_link(equipment_data_module),
back = self:back(equipment),
back = self:back(equipment),
extra_style = self:extra_style(equipment),
extra_style = self:extra_style(equipment),