- 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:EquipmentList"
Jump to navigation
Jump to search
com>Ckwng (Add ImprovementTableKai) |
com>Battlecruiser (add EnemyEquipmentListKai and EnemyTable) |
||
Line 3: | Line 3: | ||
local EquipmentComparisonKai = false | local EquipmentComparisonKai = false | ||
local EquipmentListKai = false | local EquipmentListKai = false | ||
+ | local EnemyEquipmentListKai = false | ||
local ImprovementTableKai = false | local ImprovementTableKai = false | ||
local getArgs = require('Module:GetArgs') | local getArgs = require('Module:GetArgs') | ||
Line 27: | Line 28: | ||
if not EquipmentListKai then | if not EquipmentListKai then | ||
EquipmentListKai = require('Module:EquipmentListKai') | EquipmentListKai = require('Module:EquipmentListKai') | ||
+ | end | ||
+ | end | ||
+ | |||
+ | function EquipmentList.EnemyTable(frame) | ||
+ | local args = getArgs{frame = frame:getParent()} | ||
+ | _prepareEnemyEquipmentListKai() | ||
+ | return EnemyEquipmentListKai:Table(args) | ||
+ | end | ||
+ | |||
+ | function _prepareEnemyEquipmentListKai() | ||
+ | if not EnemyEquipmentListKai then | ||
+ | EnemyEquipmentListKai = require('Module:EnemyEquipmentListKai') | ||
end | end | ||
end | end |
Revision as of 13:52, 17 July 2018
Documentation for this module may be created at Module:EquipmentList/doc
local EquipmentList = {}
local EquipmentCardListKai = false
local EquipmentComparisonKai = false
local EquipmentListKai = false
local EnemyEquipmentListKai = false
local ImprovementTableKai = false
local getArgs = require('Module:GetArgs')
function EquipmentList.CardList(frame)
local args = getArgs{frame = frame:getParent()}
_prepareEquipmentCardListKai()
return EquipmentCardListKai:Table(args)
end
function _prepareEquipmentCardListKai()
if not EquipmentCardListKai then
EquipmentCardListKai = require('Module:EquipmentCardListKai')
end
end
function EquipmentList.Table(frame)
local args = getArgs{frame = frame:getParent()}
_prepareEquipmentListKai()
return EquipmentListKai:Table(args)
end
function _prepareEquipmentListKai()
if not EquipmentListKai then
EquipmentListKai = require('Module:EquipmentListKai')
end
end
function EquipmentList.EnemyTable(frame)
local args = getArgs{frame = frame:getParent()}
_prepareEnemyEquipmentListKai()
return EnemyEquipmentListKai:Table(args)
end
function _prepareEnemyEquipmentListKai()
if not EnemyEquipmentListKai then
EnemyEquipmentListKai = require('Module:EnemyEquipmentListKai')
end
end
function EquipmentList.ComparisonTable(frame)
local args = getArgs{frame = frame:getParent()}
_prepareEquipmentComparisonKai()
return EquipmentComparisonKai:Table(args)
end
function _prepareEquipmentComparisonKai()
if not EquipmentComparisonKai then
EquipmentComparisonKai = require('Module:EquipmentComparisonKai')
end
end
function EquipmentList.ImprovementTable(frame)
local args = getArgs{frame = frame:getParent()}
_prepareImprovementTableKai()
return ImprovementTableKai:Table(args)
end
function _prepareImprovementTableKai()
if not ImprovementTableKai then
ImprovementTableKai = require('Module:ImprovementTableKai')
end
end
return EquipmentList