- 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 1:
Line 1:
+
Line 36:
Line 37:
+
+
+
Line 59:
Line 63:
− +
Line 65:
Line 69:
− +
no edit summary
local BaseTable = require('Module:BaseTable')
local BaseTable = require('Module:BaseTable')
local EnemyColors = require('Module:EnemyColors')
local EnemyShip = require('Module:EnemyShip')
local EnemyShip = require('Module:EnemyShip')
local Formatting = require('Module:Formatting')
local Formatting = require('Module:Formatting')
},
},
_cell = [[| style="text-align: ${text_align}; padding:5px 5px 5px 5px; background-color: ${bg_color};" |${value}]],
_cell = [[| style="text-align: ${text_align}; padding:5px 5px 5px 5px; background-color: ${bg_color};" |${value}]],
_column_cell_templates = {
card = [[| style="text-align: ${text_align}; padding:5px 5px 5px 5px; background-color: ${bg_color}; ${extra_style}" |${value}]],
},
_item_class = function(item_key) return EnemyShip(item_key) end,
_item_class = function(item_key) return EnemyShip(item_key) end,
_fragment_prefix = "enemyshiplistkai",
_fragment_prefix = "enemyshiplistkai",
function EnemyShipListKai:card(ship)
function EnemyShipListKai:card(ship)
local value
local value
local bg_color = Formatting:format_ship_back(ship:back())
local bg_color, extra_style = EnemyColors:rarity_colors(ship)
if ship == false then
if ship == false then
value = Formatting:format_image{self._blank, size = self._size}
value = Formatting:format_image{self._blank, size = self._size}
value = ShipBattleCardKai:get{ship = ship, size = self._size, link = ship:link(), caption = ship:name()}
value = ShipBattleCardKai:get{ship = ship, size = self._size, link = ship:link(), caption = ship:name()}
end
end
return {value = value, bg_color = bg_color, text_align = self._center_align}
return {value = value, bg_color = bg_color, extra_style = extra_style, text_align = self._center_align}
end
end