• 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
Elite ships table generator entry point
local EliteShips = {}
local EliteShipsKai = require('Module:EliteShipsKai')
local Ship = require('Module:Ship')
local getArgs = require('Module:GetArgs')

function EliteShips.Table(frame)
local args = getArgs{frame = frame}
local ships = {}
for index, ship_name in ipairs(args) do
local split = mw.ustring.find(ship_name, '/')
if split == nil then
ships[index] = Ship:create(ship_name)
else
ships[index] = Ship:create(mw.ustring.sub(ship_name, 1, split - 1),mw.ustring.sub(ship_name, split + 1, -1))
end
end
return EliteShipsKai:Table(ships)
end

return EliteShips
Anonymous user

Navigation menu