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

From Kancolle Wiki
Jump to navigation Jump to search
com>Ckwng
(Created page with "local ShipList = {} local ShipCardListKai = require('Module:ShipCardListKai') local getArgs = require('Module:GetArgs') function ShipList.CardList(frame) local args = getArg...")
 
com>Ckwng
Line 1: Line 1:
 
local ShipList = {}
 
local ShipList = {}
 
local ShipCardListKai = require('Module:ShipCardListKai')
 
local ShipCardListKai = require('Module:ShipCardListKai')
 +
local ShipBattleCardListKai = require('Module:ShipBattleCardListKai')
 
local getArgs = require('Module:GetArgs')
 
local getArgs = require('Module:GetArgs')
  
Line 6: Line 7:
 
local args = getArgs{frame = frame:getParent()}
 
local args = getArgs{frame = frame:getParent()}
 
return ShipCardListKai:Table(args)
 
return ShipCardListKai:Table(args)
 +
end
 +
 +
function ShipList.BattleCardList(frame)
 +
local args = getArgs{frame = frame:getParent()}
 +
return ShipBattleCardListKai:Table(args)
 
end
 
end
  
 
return ShipList
 
return ShipList

Revision as of 18:47, 7 April 2015

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

local ShipList = {}
local ShipCardListKai = require('Module:ShipCardListKai')
local ShipBattleCardListKai = require('Module:ShipBattleCardListKai')
local getArgs = require('Module:GetArgs')

function ShipList.CardList(frame)
	local args = getArgs{frame = frame:getParent()}
	return ShipCardListKai:Table(args)
end

function ShipList.BattleCardList(frame)
	local args = getArgs{frame = frame:getParent()}
	return ShipBattleCardListKai:Table(args)
end

return ShipList