- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Module:EquipmentGraphicKai"
Jump to navigation
Jump to search
com>Ckwng (Pass all args onto Formatting:format_image()) |
m (5 revisions imported) |
Latest revision as of 12:34, 12 May 2021
Documentation for this module may be created at Module:EquipmentGraphicKai/doc
local EquipmentAsset = require('Module:EquipmentAsset')
local Formatting = require('Module:Formatting')
local EquipmentGraphicKai = EquipmentAsset()
function EquipmentGraphicKai:get_source(equip, args)
return args.fairy and (args.fairy == "only" and equip:fairy() or equip:cg_fairy()) or (args.flying and equip:cg_flying() or equip:cg())
end
function EquipmentGraphicKai:get(equip, args, link)
if not args then
args = equip
equip = args.equip
link = args.link
end
args[1] = self:get_source(equip, args)
args.link = link
return Formatting:format_image(args)
end
return EquipmentGraphicKai