- 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:ShipCardComboKai"
Jump to navigation
Jump to search
com>Ckwng (Created page with "local Formatting = require('Module:Formatting') local ShipAsset = require('Module:ShipAsset') local ShipBattleCardKai = require('Module:ShipBattleCardKai') local ShipCardKai =...") |
m (4 revisions imported) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
local ShipBattleCardKai = require('Module:ShipBattleCardKai') | local ShipBattleCardKai = require('Module:ShipBattleCardKai') | ||
local ShipCardKai = require('Module:ShipCardKai') | local ShipCardKai = require('Module:ShipCardKai') | ||
− | local | + | local U = require("Module:Core") |
− | local format = | + | local format = U.format |
− | local split = | + | local split = U.split |
local ShipCardComboKai = ShipAsset{ | local ShipCardComboKai = ShipAsset{ | ||
Line 22: | Line 22: | ||
link = args.link | link = args.link | ||
end | end | ||
− | return format{self._template, battle_card = ShipBattleCardKai:get(ship, args, link), card = ShipCardKai:get(ship, args)} | + | return format{self._template, battle_card = ShipBattleCardKai:get(ship, {unpack(args)}, link), card = ShipCardKai:get(ship, args)} |
end | end | ||
return ShipCardComboKai | return ShipCardComboKai |
Latest revision as of 12:43, 12 May 2021
Documentation for this module may be created at Module:ShipCardComboKai/doc
local Formatting = require('Module:Formatting')
local ShipAsset = require('Module:ShipAsset')
local ShipBattleCardKai = require('Module:ShipBattleCardKai')
local ShipCardKai = require('Module:ShipCardKai')
local U = require("Module:Core")
local format = U.format
local split = U.split
local ShipCardComboKai = ShipAsset{
_template = [[<span class="advanced-tooltip">${battle_card}<div class="tooltip-contents">${card}</div></span>]]
}
function ShipCardComboKai:get_source(ship, args)
return ShipBattleCardKai:get_source(ship, args) .. "|" .. ShipCardKai:get_source(ship, args)
end
function ShipCardComboKai:get(ship, args, link)
if not args then
args = ship
ship = args.ship
link = args.link
end
return format{self._template, battle_card = ShipBattleCardKai:get(ship, {unpack(args)}, link), card = ShipCardKai:get(ship, args)}
end
return ShipCardComboKai