- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Module:EquipmentCardKai
Revision as of 21:27, 12 April 2015 by com>Ckwng (Created page with "local Equipment = require('Module:Equipment') local Formatting = require('Module:Formatting') local EquipmentCardKai = { _card_size = "260x260px", } function EquipmentCardK...")
Documentation for this module may be created at Module:EquipmentCardKai/doc
local Equipment = require('Module:Equipment')
local Formatting = require('Module:Formatting')
local EquipmentCardKai = {
_card_size = "260x260px",
}
function EquipmentCardKai:card(equipment, args)
if not args then
args = equipment
equipment = args.equipment
end
return Formatting:format_image{equipment:card(), size = args.size or self._card_size, link = args.link, caption = args.caption}
end
function EquipmentCardKai:Card(args)
local equipment = self:create_equipment(args)
return self:card(equipment, args)
end
function EquipmentCardKai:create_equipment(args)
return Equipment(args[1])
end
return EquipmentCardKai