- 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 2:
Line 2:
+
Line 272:
Line 273:
− +
no edit summary
local EquipmentListKai = require('Module:EquipmentListKai')
local EquipmentListKai = require('Module:EquipmentListKai')
local Formatting = require('Module:Formatting')
local Formatting = require('Module:Formatting')
local ResourceIcons = require('Module:ResourceIcons')
local StatIcons = require('Module:StatIcons')
local StatIcons = require('Module:StatIcons')
for _, column in ipairs(self._stat_columns) do
for _, column in ipairs(self._stat_columns) do
if self._shown_stats[column] then
if self._shown_stats[column] then
table.insert(stat_columns, format{self._column_header_cell_template, value = Formatting:format_image{StatIcons[column], caption = Formatting:format_stat_name(column)}, bg_color = self._stat_colors[column]})
table.insert(stat_columns, format{self._column_header_cell_template, value = Formatting:format_image{StatIcons[column] or (column == "deployment_cost" and ResourceIcons.bauxite or nil), caption = Formatting:format_stat_name(column)}, bg_color = self._stat_colors[column]})
else
else
for _, row_values in ipairs(self._data_rows) do
for _, row_values in ipairs(self._data_rows) do