- 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"
Jump to navigation
Jump to search
com>Ckwng (Change infobox call) |
com>Ckwng (Add EquipmentGraphicKai) |
||
Line 1: | Line 1: | ||
local EquipmentCardKai = false | local EquipmentCardKai = false | ||
+ | local EquipmentGraphicKai = false | ||
local EquipmentInfoKai = false | local EquipmentInfoKai = false | ||
local getArgs = require('Module:GetArgs') | local getArgs = require('Module:GetArgs') | ||
Line 26: | Line 27: | ||
if not EquipmentCardKai then | if not EquipmentCardKai then | ||
EquipmentCardKai = require('Module:EquipmentCardKai') | EquipmentCardKai = require('Module:EquipmentCardKai') | ||
+ | end | ||
+ | end | ||
+ | |||
+ | function EquipmentInfo.Graphic(frame) | ||
+ | local args = getArgs{frame = frame:getParent()} | ||
+ | _prepareEquipmentGraphicKai() | ||
+ | return EquipmentGraphicKai:Graphic(args) | ||
+ | end | ||
+ | |||
+ | function _prepareEquipmentGraphicKai() | ||
+ | if not EquipmentGraphicKai then | ||
+ | EquipmentGraphicKai = require('Module:EquipmentGraphicKai') | ||
end | end | ||
end | end | ||
return EquipmentInfo | return EquipmentInfo |
Revision as of 21:54, 14 September 2015
Documentation for this module may be created at Module:EquipmentInfo/doc
local EquipmentCardKai = false
local EquipmentGraphicKai = 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
function EquipmentInfo.Graphic(frame)
local args = getArgs{frame = frame:getParent()}
_prepareEquipmentGraphicKai()
return EquipmentGraphicKai:Graphic(args)
end
function _prepareEquipmentGraphicKai()
if not EquipmentGraphicKai then
EquipmentGraphicKai = require('Module:EquipmentGraphicKai')
end
end
return EquipmentInfo