• 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
WIP
Line 1: Line 1:  
local BaseData = require('Module:BaseData')
 
local BaseData = require('Module:BaseData')
local Equipment = require('Module:Equipment')
+
local Ship = require('Module:Ship')
local EquipmentCardKai = require('Module:EquipmentCardKai')
  −
local EquipmentGraphicKai = require('Module:EquipmentGraphicKai')
   
local Formatting = require('Module:Formatting')
 
local Formatting = require('Module:Formatting')
local Tabber = require('Module:Tabber')
      
local format = require('Module:StringInterpolation').format
 
local format = require('Module:StringInterpolation').format
Line 30: Line 27:  
     _voice_actor_header = "[[Glossary#List of Vessels by Japanese Voice Actresses|Seiyuu]]",
 
     _voice_actor_header = "[[Glossary#List of Vessels by Japanese Voice Actresses|Seiyuu]]",
 
     _artist_header = "[[Glossary#List of Vessels by Artist|Artist]]",
 
     _artist_header = "[[Glossary#List of Vessels by Artist|Artist]]",
 +
    _class_template = "[[:Category:${ship_class}|]]",
 
_fields = {
 
_fields = {
 
    "name",
 
    "name",
Line 44: Line 42:  
_args = args,
 
_args = args,
 
}:create_infobox()
 
}:create_infobox()
 +
end
 +
 +
function ShipMetaKai:name()
 +
    self._vars.name = Formatting:format_stat(self._ship:name())
 +
    self._vars.japanese_name = tostring(Formatting:japanese_text(Formatting:format_stat(self._ship:japanese_name())))
 +
end
 +
 +
function ShipMetaKai:class()
 +
    local ship_class = self._ship:class()
 +
    if ship_class then
 +
        self._vars.class = format{self._class_template, ship_class = self._ship}
 +
    end
 +
end
 +
 +
function ShipMetaKai:voice_actor()
 +
    self._vars.voice_actor = Formatting:format_stat(self._ship:voice_actor())
 +
end
 +
 +
function ShipMetaKai:artist()
 +
    self._vars.artist = Formatting:format_stat(self._ship:artist())
 +
end
 +
 +
function ShipMetaKai:availability()
 +
    return
 +
end
 +
 +
function ShipMetaKai:implementation_date()
 +
    return
 
end
 
end
  
Anonymous user

Navigation menu