• 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 70: Line 70:  
end
 
end
 
return {value = value, bg_color = bg_color or self._none, text_align = self._center_align}
 
return {value = value, bg_color = bg_color or self._none, text_align = self._center_align}
end
  −
  −
function EnemyShipListKai:type(ship)
  −
return {value = Formatting:format_ship_code(ship:type()), bg_color = self._transparent, text_align = self._start_align}
   
end
 
end
   Line 159: Line 155:     
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 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