- 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 25:
Line 25:
− +
Line 80:
Line 80:
− +
− +
+
+
+
+
Line 254:
Line 258:
+
no edit summary
_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}"|<p style="font-size:20px">'''${name}'''</p>
|colspan="6" style="text-align: center; background-color: ${top_bg_color};${top_extra_style}" title="${rarity}"|<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:bg_color(ship)
function ShipInfoKai:bg_color(ship)
local rarity = ship:rarity()
local back = ship:back()
return Formatting:format_ship_back(rarity), Formatting:extra_style_background_image(rarity and rarity > 7, rarity and rarity > 6) or ""
return Formatting:format_ship_back(back), Formatting:extra_style_background_image(back and back > 7, back and back > 6) or ""
end
function ShipInfoKai:rarity(ship)
return Formatting:format_stat(ship:rarity())
end
end
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.rarity = self:rarity()
vars.icons = icons
vars.icons = icons
vars.labels = labels
vars.labels = labels