• 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
Moving CVE category declaration to function renderCategories. This LQ implementation unfortunately means it has to figure out if the ship is a CVE in two places.
Line 108: Line 108:  
     ship.type == "Light Carrier" and type(ship.asw) == "table" and type(ship.asw[1]) == "number" and ship.asw[1] > 0
 
     ship.type == "Light Carrier" and type(ship.asw) == "table" and type(ship.asw[1]) == "number" and ship.asw[1] > 0
 
   local shipType =
 
   local shipType =
     isCVE and string.format('<span class="explain" title="CVE">%s[[Category:Escort Carriers]]</span>', ship.type) or
+
     isCVE and string.format('<span class="explain" title="CVE"></span>', ship.type) or
 
     ship.type
 
     ship.type
 
   local row2 = '<tr><th colspan="2">' .. JaName .. '</th><th colspan="2">' .. ship.name[3] .. "</th></tr>"
 
   local row2 = '<tr><th colspan="2">' .. JaName .. '</th><th colspan="2">' .. ship.name[3] .. "</th></tr>"
Line 432: Line 432:  
   if ship["seiyuu"] ~= "Unknown" and ship["seiyuu"] ~= "" then
 
   if ship["seiyuu"] ~= "Unknown" and ship["seiyuu"] ~= "" then
 
     categories = categories .. "[[Category:" .. ship["seiyuu"] .. "]]"
 
     categories = categories .. "[[Category:" .. ship["seiyuu"] .. "]]"
 +
  end
 +
  if ship.type == "Light Carrier" and type(ship.asw) == "table" and type(ship.asw[1]) == "number" and ship.asw[1] > 0 then
 +
categories = categories .. "[[Category:Escort Carriers]]"
 
   end
 
   end
 
   return categories
 
   return categories
advmod, cssedit, Interface administrators, janitor, Moderators, prechecked, Widget editors
7,932

edits

Navigation menu