• 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"

From Kancolle Wiki
Jump to navigation Jump to search
com>Ckwng
com>Ckwng
Line 1: Line 1:
 
local EquipmentList = {}
 
local EquipmentList = {}
 +
local EquipmentCardListKai = require('Module:EquipmentCardListKai')
 +
local EquipmentComparisonKai = require('Module:EquipmentComparisonKai')
 
local EquipmentListKai = require('Module:EquipmentListKai')
 
local EquipmentListKai = require('Module:EquipmentListKai')
local EquipmentComparisonKai = require('Module:EquipmentComparisonKai')
 
 
local getArgs = require('Module:GetArgs')
 
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)
 
function EquipmentList.Table(frame)
 
local args = getArgs{frame = frame:getParent()}
 
local args = getArgs{frame = frame:getParent()}
 +
_prepareEquipmentListKai()
 
return EquipmentListKai:Table(args)
 
return EquipmentListKai:Table(args)
 +
end
 +
 +
function _prepareEquipmentListKai()
 +
if not EquipmentListKai then
 +
EquipmentListKai = require('Module:EquipmentListKai')
 +
end
 
end
 
end
  
 
function EquipmentList.ComparisonTable(frame)
 
function EquipmentList.ComparisonTable(frame)
 
local args = getArgs{frame = frame:getParent()}
 
local args = getArgs{frame = frame:getParent()}
 +
_prepareEquipmentComparisonKai()
 
return EquipmentComparisonKai:Table(args)
 
return EquipmentComparisonKai:Table(args)
 
end
 
end
 +
 +
function _prepareEquipmentComparisonKai()
 +
if not EquipmentComparisonKai then
 +
EquipmentComparisonKai = require('Module:EquipmentComparisonKai')
 +
end
 +
end
  
 
return EquipmentList
 
return EquipmentList

Revision as of 21:35, 12 April 2015

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

local EquipmentList = {}
local EquipmentCardListKai = require('Module:EquipmentCardListKai')
local EquipmentComparisonKai = require('Module:EquipmentComparisonKai')
local EquipmentListKai = require('Module:EquipmentListKai')
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.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

return EquipmentList