- 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
Line 7:
Line 7:
− +
Line 38:
Line 38:
− +
Line 50:
Line 50:
− +
− local value+
− if ship == false then+
− value = Formatting:format_image{self._blank, size = self._size}+
− else+
− value = ShipBattleCardKai:get{ship = ship, size = self._size, link = ship:link(), caption = ship:name()}+
− end+
− return {values = value, bg_color = self._transparent, text_align = self._center_align}+
− +
Line 100:
Line 100:
− +
− +
Line 118:
Line 118:
+
+
+
+
+
no edit summary
local format = require('Module:StringInterpolation').format
local format = require('Module:StringInterpolation').format
local EnemyShipListKai = BaseTable({
local EnemyShipListKai = BaseTable{
_header_template = [[! style="width: 100px;" | Card
_header_template = [[! style="width: 100px;" | Card
! style="width: 75px;" | Name
! style="width: 75px;" | Name
_item_class = EnemyShip,
_item_class = EnemyShip,
_fragment_prefix = "enemyshiplistkai",
_fragment_prefix = "enemyshiplistkai",
})
}
function EnemyShipListKai:name(ship)
function EnemyShipListKai:name(ship)
end
end
function EnemyShipListKai:card(ship)
--function EnemyShipListKai:card(ship)
-- local value
-- if ship == false then
-- value = Formatting:format_image{self._blank, size = self._size}
-- else
-- value = ShipBattleCardKai:get{ship = ship, size = self._size, link = ship:link(), caption = ship:name()}
-- end
-- return {values = value, bg_color = self._transparent, text_align = self._center_align}
end
--end
function EnemyShipListKai:type(ship)
function EnemyShipListKai:type(ship)
end
end
EnemyShipListKai.process_item_key = EnemyShip.process_item_key
--EnemyShipListKai.process_item_key = EnemyShip.process_item_key
EnemyShipListKai.build_rows = EnemyShipListKai.build_rows_breaks_as_empty_rows
--EnemyShipListKai.build_rows = EnemyShipListKai.build_rows_breaks_as_empty_rows
function EnemyShipListKai:create_header()
function EnemyShipListKai:create_header()
end
end
self._header = format(self._header_template, header_icons)
self._header = format(self._header_template, header_icons)
end
function EnemyShipListKai.Invoke()
local args = getArgs{frame = frame:getParent()}
return EnemyShipListKai:Table(args)
end
end
return EnemyShipListKai
return EnemyShipListKai