• 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
m
no edit summary
Line 3: Line 3:  
local Formatting = require('Module:Formatting')
 
local Formatting = require('Module:Formatting')
   −
local format = require('Module:StringInterpolation').format
+
local format = require('Module:StringOperations').format
    
local ShipMetaKai = BaseData{
 
local ShipMetaKai = BaseData{
_template = [[{|class="wikitable" style="float: right;"  
+
_template = [[{|class="${table_class}" style="float: right;"  
 
|-
 
|-
 
!colspan=2|${name} ${japanese_name}
 
!colspan=2|${name} ${japanese_name}
Line 52: Line 52:  
     local ship_class = self._ship:class()
 
     local ship_class = self._ship:class()
 
     if ship_class then
 
     if ship_class then
         self._vars.class = format{self._class_template, ship_class = self._ship}
+
         self._vars.class = format{self._class_template, ship_class = ship_class:name()}
 
     end
 
     end
 
end
 
end
Line 86: Line 86:  
function ShipMetaKai:create_infobox_prep()
 
function ShipMetaKai:create_infobox_prep()
 
self._vars = {}
 
self._vars = {}
local table_classes = {"infobox"}
+
local table_classes = {"wikitable"}
 
if self._args.classes then
 
if self._args.classes then
 
table.insert(table_classes, self._args.classes)
 
table.insert(table_classes, self._args.classes)
Line 96: Line 96:  
end
 
end
 
self._vars.table_class = table.concat(table_classes, " ")
 
self._vars.table_class = table.concat(table_classes, " ")
self._vars.table_id = collapsible and collapsible ~= "true" and ("mw-customcollapsible-" .. collapsible) or ""
+
--self._vars.table_id = collapsible and collapsible ~= "true" and ("mw-customcollapsible-" .. collapsible) or ""
self._vars.float = self._args.float and format{self._float_style_template, float = self._args.float} or ""
+
--self._vars.float = self._args.float and format{self._float_style_template, float = self._args.float} or ""
 +
self._vars.voice_actor_header = self._voice_actor_header
 +
self._vars.artist_header = self._artist_header
 
end
 
end
  
Anonymous user

Navigation menu