• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Module:ShipInfo"

From Kancolle Wiki
Jump to navigation Jump to search
com>Ckwng
(Entry point for ship infoboxes.)
 
com>Ckwng
(Convert into invokable entry point)
Line 1: Line 1:
 
local ShipInfo = {}
 
local ShipInfo = {}
 
local ShipInfoKai = require('Module:ShipInfoKai')
 
local ShipInfoKai = require('Module:ShipInfoKai')
 +
local getArgs = require('Module:GetArgs')
  
function ShipInfo.Infobox(name, model)
+
function ShipInfo.Infobox(frame)
return ShipInfoKai:Infobox(name, model)
+
return ShipInfoKai:Infobox(unpack(getArgs(frame)))
 
end
 
end
  
 
return ShipInfo
 
return ShipInfo

Revision as of 07:09, 14 December 2014

Documentation for this module may be created at Module:ShipInfo/doc

local ShipInfo = {}
local ShipInfoKai = require('Module:ShipInfoKai')
local getArgs = require('Module:GetArgs')

function ShipInfo.Infobox(frame)
	return ShipInfoKai:Infobox(unpack(getArgs(frame)))
end

return ShipInfo