• 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
(Fixed)
com>Ckwng
Line 4: Line 4:
  
 
function ShipInfo.Infobox(frame)
 
function ShipInfo.Infobox(frame)
local args = getArgs{frame = frame}
+
local args = getArgs{frame = frame:getParent()}
 
return ShipInfoKai:Infobox(args["name"], args["model"])
 
return ShipInfoKai:Infobox(args["name"], args["model"])
 
end
 
end
  
 
return ShipInfo
 
return ShipInfo

Revision as of 13:27, 21 February 2015

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)
	local args = getArgs{frame = frame:getParent()}
	return ShipInfoKai:Infobox(args["name"], args["model"])
end

return ShipInfo