• 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:EquipmentInfo"

From Kancolle Wiki
Jump to navigation Jump to search
com>Ckwng
(Entry point for EquipmentInfoKai)
 
com>Ckwng
Line 4: Line 4:
  
 
function EquipmentInfo.Infobox(frame)
 
function EquipmentInfo.Infobox(frame)
local args = getArgs{frame = frame}
+
local args = getArgs{frame = frame:getParent()}
 
return EquipmentInfoKai:Infobox(args["name"])
 
return EquipmentInfoKai:Infobox(args["name"])
 
end
 
end
  
 
return EquipmentInfo
 
return EquipmentInfo

Revision as of 19:51, 2 March 2015

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

local EquipmentInfo = {}
local EquipmentInfoKai = require('Module:EquipmentInfoKai')
local getArgs = require('Module:GetArgs')

function EquipmentInfo.Infobox(frame)
	local args = getArgs{frame = frame:getParent()}
	return EquipmentInfoKai:Infobox(args["name"])
end

return EquipmentInfo