- 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 16:
Line 16:
+
+
Line 25:
Line 27:
− +
+
Line 78:
Line 81:
+
+
+
+
Line 235:
Line 242:
+
Line 258:
Line 266:
+
no edit summary
_normal_construction = "Normal",
_normal_construction = "Normal",
_large_ship_construction = "LSC",
_large_ship_construction = "LSC",
_ship_data_documentation = "Template:ShipDataDocumentation",
_edit_link_text = "Edit",
_kekkon_max_template = "Maximum after marriage: ${value}",
_kekkon_max_template = "Maximum after marriage: ${value}",
_slot_template = [[|- align=center style="background-color: whitesmoke; line-height: 1.1;"
_slot_template = [[|- align=center style="background-color: whitesmoke; line-height: 1.1;"
_template = [[{|class="${table_class}" id="${table_id}" style="border: 1px solid darkgray; width: 320px;"
_template = [[{|class="${table_class}" id="${table_id}" style="border: 1px solid darkgray; width: 320px;"
|-
|-
|colspan="6" style="text-align: center; background-color: ${top_bg_color};${top_extra_style}" title="${rarity}"|<p style="font-size:20px">'''${name}'''</p>
|colspan="6" style="position: relative; text-align: center; background-color: ${top_bg_color};${top_extra_style}" title="${rarity}"|<div style="position: absolute; right: 5px;">${edit_link}</div>
<p style="font-size:20px">'''${name}'''</p>
<p style="font-size:15px">'''No.${id} ${japanese_name}'''</p>
<p style="font-size:15px">'''No.${id} ${japanese_name}'''</p>
<p>'''${class} ${type}'''</p>
<p>'''${class} ${type}'''</p>
|}]],
|}]],
}
}
function ShipInfoKai:edit_link(ship_data_module)
return Formatting:format_edit_link(ship_data_module, self._edit_link_text, self._ship_data_documentation)
end
function ShipInfoKai:bg_color(ship)
function ShipInfoKai:bg_color(ship)
function ShipInfoKai:Infobox(args)
function ShipInfoKai:Infobox(args)
local ship = Ship(args.name, args.model)
local ship = Ship(args.name, args.model)
local ship_data_module = Ship:get_module(args.name)
local collapsible = args.collapsible
local collapsible = args.collapsible
local vars = {}
local vars = {}
vars.table_class = collapsible and "mw-collapsible mw-collapsed" or ""
vars.table_class = collapsible and "mw-collapsible mw-collapsed" or ""
vars.table_id = collapsible and collapsible ~= "true" and ("mw-customcollapsible-" .. collapsible) or ""
vars.table_id = collapsible and collapsible ~= "true" and ("mw-customcollapsible-" .. collapsible) or ""
vars.edit_link = self:edit_link(ship_data_module)
vars.rarity = self:rarity(ship)
vars.rarity = self:rarity(ship)
vars.icons = icons
vars.icons = icons