- 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 (Add subst-able entry point) |
com>Ckwng |
||
Line 1: | Line 1: | ||
+ | local EquipmentCardKai = false | ||
+ | local EquipmentInfoKai = false | ||
+ | local getArgs = require('Module:GetArgs') | ||
+ | |||
local EquipmentInfo = {} | local EquipmentInfo = {} | ||
− | |||
− | |||
function EquipmentInfo.Infobox(frame) | function EquipmentInfo.Infobox(frame) | ||
local args = getArgs{frame = frame:getParent()} | local args = getArgs{frame = frame:getParent()} | ||
+ | _prepareEquipmentInfoKai() | ||
return EquipmentInfoKai:Infobox(args["name"]) | return EquipmentInfoKai:Infobox(args["name"]) | ||
end | end | ||
Line 10: | Line 13: | ||
function EquipmentInfo._Infobox(frame) | function EquipmentInfo._Infobox(frame) | ||
local args = getArgs{frame = frame} | local args = getArgs{frame = frame} | ||
+ | _prepareEquipmentInfoKai() | ||
return EquipmentInfoKai:Infobox(args["name"]) | return EquipmentInfoKai:Infobox(args["name"]) | ||
+ | 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 | end | ||
return EquipmentInfo | return EquipmentInfo |
Revision as of 21:27, 12 April 2015
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["name"])
end
function EquipmentInfo._Infobox(frame)
local args = getArgs{frame = frame}
_prepareEquipmentInfoKai()
return EquipmentInfoKai:Infobox(args["name"])
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