• 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
(Entry point for EquipmentListKai)
 
com>Ckwng
Line 1: Line 1:
 
local EquipmentList = {}
 
local EquipmentList = {}
 
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')
  
Line 10: Line 11:
 
function EquipmentList.ComparisonTable(frame)
 
function EquipmentList.ComparisonTable(frame)
 
local args = getArgs{frame = frame:getParent()}
 
local args = getArgs{frame = frame:getParent()}
args.comparison = true
+
return EquipmentComparisonKai:Table(args)
return EquipmentListKai:Table(args)
 
 
end
 
end
  
 
return EquipmentList
 
return EquipmentList

Revision as of 10:44, 25 March 2015

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

local EquipmentList = {}
local EquipmentListKai = require('Module:EquipmentListKai')
local EquipmentComparisonKai = require('Module:EquipmentComparisonKai')
local getArgs = require('Module:GetArgs')

function EquipmentList.Table(frame)
	local args = getArgs{frame = frame:getParent()}
	return EquipmentListKai:Table(args)
end

function EquipmentList.ComparisonTable(frame)
	local args = getArgs{frame = frame:getParent()}
	return EquipmentComparisonKai:Table(args)
end	

return EquipmentList