- 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:EquipmentCardKai"
Jump to navigation
Jump to search
com>Ckwng (Pass all args onto Formatting:format_image()) |
|||
Line 14: | Line 14: | ||
link = args.link | link = args.link | ||
end | end | ||
− | + | args[1] = args.icon and equip:icon() or self:get_source(equip) | |
args.link = link | args.link = link | ||
return Formatting:format_image(args) | return Formatting:format_image(args) |
Revision as of 12:14, 19 October 2017
Documentation for this module may be created at Module:EquipmentCardKai/doc
local EquipmentAsset = require('Module:EquipmentAsset')
local Formatting = require('Module:Formatting')
local EquipmentCardKai = EquipmentAsset()
function EquipmentCardKai:get_source(equip)
return equip:card()
end
function EquipmentCardKai:get(equip, args, link)
if not args then
args = equip
equip = args.equipment or args.equip
link = args.link
end
args[1] = args.icon and equip:icon() or self:get_source(equip)
args.link = link
return Formatting:format_image(args)
end
return EquipmentCardKai