Changes

no edit summary
Line 31: Line 31:  
end
 
end
   −
-- The ship infobox stuff...
+
-- The ship infobox stuff, legacy
    
local function renderStats(ship)
 
local function renderStats(ship)
Line 422: Line 422:  
   return categories
 
   return categories
 
end
 
end
 +
 +
-- Converting to legacy data format
    
local ShipData = require("Module:Data/Ship")
 
local ShipData = require("Module:Data/Ship")
 
local shipsByNo = require("Module:Collection/ShipsByNo")
 
local shipsByNo = require("Module:Collection/ShipsByNo")
 
local shipsById = require("Module:Collection/ShipsByApiId")
 
local shipsById = require("Module:Collection/ShipsByApiId")
   
local Ship = require("Module:Ship")
 
local Ship = require("Module:Ship")
   Line 451: Line 452:  
   data.equip = {}
 
   data.equip = {}
 
   for _, v in ipairs(ship._equipment) do
 
   for _, v in ipairs(ship._equipment) do
     table.insert(data.equip, v.name or "")
+
     table.insert(data.equip, v.equipment or "")
 
     table.insert(data.aircraft, v.size or "")
 
     table.insert(data.aircraft, v.size or "")
 
   end
 
   end
cssedit, gkautomate
7,064

edits