• 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
Merge EquipmentInfoKaiTabber
Line 3: Line 3:  
local EquipmentCardKai = require('Module:EquipmentCardKai')
 
local EquipmentCardKai = require('Module:EquipmentCardKai')
 
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 206: Line 208:     
function EquipmentInfoKai:image()
 
function EquipmentInfoKai:image()
 +
local tabber = Tabber()
 
local caption = nil
 
local caption = nil
 
local card_name = self._equipment:card_name()
 
local card_name = self._equipment:card_name()
Line 221: Line 224:  
caption = table.concat(card_caption)
 
caption = table.concat(card_caption)
 
end
 
end
self._vars.card = EquipmentCardKai:card{equipment = self._equipment, caption = caption}
+
tabber:add_tab("Card", EquipmentCardKai:card{equipment = self._equipment, caption = caption})
 +
tabber:add_tab("Fairy", Formatting:format_image{self._equipment:fairy()})
 +
tabber:add_tab("Equipment", Formatting:format_image{self._equipment:cg()})
 +
tabber:add_tab("Combination", Formatting:format_image{self._equipment:cg_fairy()})
 +
self._vars.card = tostring(tabber)
 
end
 
end
  
Anonymous user

Navigation menu