• 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
no edit summary
Line 23: Line 23:  
]],
 
]],
 
_image_template = "[[File:%s]]",
 
_image_template = "[[File:%s]]",
_template = [[{|style="border: 1px solid darkgray; width: 320px;"
+
_template = [[{|class="${table_class}" 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}"|<p style="font-size:20px">'''${name}'''</p>
Line 229: Line 229:  
end
 
end
   −
function ShipInfoKai:Infobox(name, model)
+
function ShipInfoKai:Infobox(args)
local ship = Ship(name, model)
+
local ship = Ship(args.name, args.model)
 +
local collapsible = args.collapsible
 
local vars = {}
 
local vars = {}
 
local icons = {
 
local icons = {
Line 251: Line 252:  
labels[k] = Formatting:format_stat_name(k)
 
labels[k] = Formatting:format_stat_name(k)
 
end
 
end
 +
vars.classes = collapsible and "mw-collapsible" or ""
 
vars.icons = icons
 
vars.icons = icons
 
vars.labels = labels
 
vars.labels = labels
Anonymous user

Navigation menu