• 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 20: Line 20:  
! style="width: 30px; text-align: center; vertical-align: middle; background-color: #F2E279;" | ${armor}
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: #F2E279;" | ${armor}
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: violet;" | ${evasion}
 
! style="width: 30px; text-align: center; vertical-align: middle; background-color: violet;" | ${evasion}
! style="text-align: center; vertical-align: middle;" | Armament
+
! style="text-align: center; vertical-align: middle;" | Armament]],
! style="text-align:left;" | Notes]],
   
_columns = {
 
_columns = {
 
"card",
 
"card",
Line 34: Line 33:  
"evasion",
 
"evasion",
 
"armament",
 
"armament",
"notes",
   
},
 
},
 
_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}]],
Line 164: Line 162:     
return {value = table.concat(icons) .. '<br/>' .. table.concat(roles, ", "), bg_color = self._transparent, text_align = self._start_align}
 
return {value = table.concat(icons) .. '<br/>' .. table.concat(roles, ", "), bg_color = self._transparent, text_align = self._start_align}
end
  −
  −
function EnemyShipListKai:notes(ship)
  −
local note = self._notes[ship]
  −
local back = ship:back()
  −
local value = {}
  −
if back < -1 then
  −
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
  −
if note then
  −
table.insert(value, note.note or "")
  −
end
  −
return {value = table.concat(value, "<br/>"), bg_color = self._transparent, text_align = self._start_align}
   
end
 
end
  
cssedit, prechecked
1,656

edits

Navigation menu