Module:EquipmentInfo

Revision as of 23:43, 14 June 2015 by com>Ckwng (Change infobox call)

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

local EquipmentCardKai = false
local EquipmentInfoKai = false
local getArgs = require('Module:GetArgs')

local EquipmentInfo = {}

function EquipmentInfo.Infobox(frame)
	local args = getArgs{frame = frame:getParent()}
	_prepareEquipmentInfoKai()
	return EquipmentInfoKai:Infobox(args)
end

function _prepareEquipmentInfoKai()
	if not EquipmentInfoKai then
		EquipmentInfoKai = require('Module:EquipmentInfoKai')
	end
end

function EquipmentInfo.Card(frame)
	local args = getArgs{frame = frame:getParent()}
	_prepareEquipmentCardKai()
	return EquipmentCardKai:Card(args)
end

function _prepareEquipmentCardKai()
	if not EquipmentCardKai then
		EquipmentCardKai = require('Module:EquipmentCardKai')
	end
end

return EquipmentInfo