• 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
com>Ckwng
(Add subst-able entry point)
Line 5: Line 5:
 
function EquipmentInfo.Infobox(frame)
 
function EquipmentInfo.Infobox(frame)
 
local args = getArgs{frame = frame:getParent()}
 
local args = getArgs{frame = frame:getParent()}
 +
return EquipmentInfoKai:Infobox(args["name"])
 +
end
 +
 +
function EquipmentInfo._Infobox(frame)
 +
local args = getArgs{frame = frame}
 
return EquipmentInfoKai:Infobox(args["name"])
 
return EquipmentInfoKai:Infobox(args["name"])
 
end
 
end
  
 
return EquipmentInfo
 
return EquipmentInfo

Revision as of 10:06, 3 April 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

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

return EquipmentInfo