• 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
no edit summary
Line 34: Line 34:  
"notes",
 
"notes",
 
},
 
},
_column_cell_templates = {
+
_cell = [[| style="text-align: ${text_align}; padding:5px 5px 5px 5px; background-color: ${bg_color};" |${value}]],
card = [[| 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;" |${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",
 
_icon_caption_template = "${equipment} ${equipment_type}",
 
_icon_caption_template = "${equipment} ${equipment_type}",
 +
_installation_label = "Installation",
 
}
 
}
   Line 50: Line 48:  
table.insert(value, Formatting:format_stat(japanese_name))
 
table.insert(value, Formatting:format_stat(japanese_name))
 
end
 
end
return {value = Formatting:id_span(tostring(ship:api_id() or mw.ustring.lower(mw.ustring.gsub(ship:name(), "%s+"))), self._fragment_prefix, table.concat(value, "<br />")), text_align = self._start_align}
+
return {value = Formatting:id_span(tostring(ship:api_id() or mw.ustring.lower(mw.ustring.gsub(ship:name(), "%s+"))), self._fragment_prefix, table.concat(value, "<br />")), bg_color = self._transparent, text_align = self._start_align}
 
end
 
end
   Line 65: Line 63:     
function EnemyShipListKai:type(ship)
 
function EnemyShipListKai:type(ship)
return {value = Formatting:format_ship_code(ship:type()), text_align = self._start_align}
+
return {value = Formatting:format_ship_code(ship:type()), bg_color = self._transparent, text_align = self._start_align}
 
end
 
end
    
function EnemyShipListKai:firepower(ship)
 
function EnemyShipListKai:firepower(ship)
return {value = Formatting:format_stat(ship:firepower()), text_align = self._center_align}
+
return {value = Formatting:format_stat(ship:firepower()), bg_color = "#e6cfcf", text_align = self._center_align}
 
end
 
end
    
function EnemyShipListKai:torpedo(ship)
 
function EnemyShipListKai:torpedo(ship)
return {value = Formatting:format_stat(ship:torpedo()), text_align = self._center_align}
+
return {value = Formatting:format_stat(ship:torpedo()), bg_color = "#cfdde6", text_align = self._center_align}
 
end
 
end
    
function EnemyShipListKai:aa(ship)
 
function EnemyShipListKai:aa(ship)
return {value = Formatting:format_stat(ship:aa()), text_align = self._center_align}
+
return {value = Formatting:format_stat(ship:aa()), bg_color = "#e6d9cf", text_align = self._center_align}
 
end
 
end
    
function EnemyShipListKai:asw(ship)
 
function EnemyShipListKai:asw(ship)
return {value = Formatting:format_stat(ship:asw()), text_align = self._center_align}
+
return {value = Formatting:format_stat(ship:asw()), bg_color = "#d2cee6", text_align = self._center_align}
 
end
 
end
    
function EnemyShipListKai:hp(ship)
 
function EnemyShipListKai:hp(ship)
return {value = Formatting:format_stat(ship:hp()), text_align = self._center_align}
+
return {value = Formatting:format_stat(ship:hp()), bg_color = "#e6cfd3", text_align = self._center_align}
 
end
 
end
    
function EnemyShipListKai:armor(ship)
 
function EnemyShipListKai:armor(ship)
return {value = Formatting:format_stat(ship:armor()), text_align = self._center_align}
+
return {value = Formatting:format_stat(ship:armor()), bg_color = "#e6e3cf", text_align = self._center_align}
 
end
 
end
    
function EnemyShipListKai:evasion(ship)
 
function EnemyShipListKai:evasion(ship)
return {value = Formatting:format_stat(ship:evasion()), text_align = self._center_align}
+
return {value = Formatting:format_stat(ship:evasion()), bg_color = "#e6cee6", text_align = self._center_align}
 
end
 
end
   Line 116: Line 114:  
table.insert(icons, icon)
 
table.insert(icons, icon)
 
end
 
end
return {value = table.concat(icons), text_align = self._start_align}
+
return {value = table.concat(icons), bg_color = self._transparent, text_align = self._start_align}
 
end
 
end
   Line 124: Line 122:  
local value = {}
 
local value = {}
 
if back < -1 then
 
if back < -1 then
table.insert(value, tostring(mw.html.create('span'):css({color = Formatting:format_ship_back(back)}):wikitext(Formatting:format_ship_rarity(back))))
+
table.insert(value, tostring(mw.html.create('span'):css({color = Formatting:format_ship_back(back)}):tag('b'):wikitext(Formatting:format_ship_rarity(back)):allDone()))
 +
end
 +
if ship:is_installation() then
 +
table.insert(value, tostring(mw.html.create('b'):wikitext(self._installation_label)))
 
end
 
end
 
if note then
 
if note then
 
table.insert(value, note.note or "")
 
table.insert(value, note.note or "")
 
end
 
end
return {value = table.concat(value, "<br/>"), text_align = self._start_align}
+
return {value = table.concat(value, "<br/>"), bg_color = self._transparent, text_align = self._start_align}
 
end
 
end
  
Anonymous user

Navigation menu