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