- 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"
Jump to navigation
Jump to search
com>Ckwng |
com>Ckwng |
||
Line 1: | Line 1: | ||
+ | local EliteShipsKai = false | ||
+ | local ShipBattleCardListKai = false | ||
+ | local ShipCardListKai = false | ||
+ | local ShipListKai = false | ||
+ | |||
+ | local getArgs = require('Module:GetArgs') | ||
+ | |||
local ShipList = {} | local ShipList = {} | ||
− | |||
− | |||
− | |||
function ShipList.CardList(frame) | function ShipList.CardList(frame) | ||
local args = getArgs{frame = frame:getParent()} | local args = getArgs{frame = frame:getParent()} | ||
+ | _prepareShipCardListKai() | ||
return ShipCardListKai:Table(args) | return ShipCardListKai:Table(args) | ||
+ | end | ||
+ | |||
+ | function _prepareShipCardListKai() | ||
+ | if not ShipCardListKai then | ||
+ | ShipCardListKai = require('Module:ShipCardListKai') | ||
+ | end | ||
end | end | ||
function ShipList.BattleCardList(frame) | function ShipList.BattleCardList(frame) | ||
local args = getArgs{frame = frame:getParent()} | local args = getArgs{frame = frame:getParent()} | ||
+ | _prepareShipBattleCardListKai() | ||
return ShipBattleCardListKai:Table(args) | return ShipBattleCardListKai:Table(args) | ||
+ | end | ||
+ | |||
+ | function _prepareShipBattleCardListKai() | ||
+ | if not ShipBattleCardListKai then | ||
+ | ShipBattleCardListKai = require('Module:ShipBattleCardListKai') | ||
+ | end | ||
+ | end | ||
+ | |||
+ | function ShipList.ShipList(frame) | ||
+ | local args = getArgs{frame = frame:getParent()} | ||
+ | _prepareShipListKai() | ||
+ | return ShipListKai:Table(args) | ||
+ | end | ||
+ | |||
+ | function _prepareShipListKai() | ||
+ | if not ShipListKai then | ||
+ | ShipListKai = require('Module:ShipListKai') | ||
+ | end | ||
+ | end | ||
+ | |||
+ | function ShipList.EliteShips(frame) | ||
+ | local args = getArgs{frame = frame:getParent()} | ||
+ | _prepareEliteShipsKai() | ||
+ | return EliteShipsKai:Table(args) | ||
+ | end | ||
+ | |||
+ | function _prepareEliteShipsKai() | ||
+ | if not EliteShipsKai then | ||
+ | EliteShipsKai = require('Module:EliteShipsKai') | ||
+ | end | ||
end | end | ||
return ShipList | return ShipList |
Revision as of 03:11, 24 April 2015
Documentation for this module may be created at Module:ShipList/doc
local EliteShipsKai = false
local ShipBattleCardListKai = false
local ShipCardListKai = false
local ShipListKai = false
local getArgs = require('Module:GetArgs')
local ShipList = {}
function ShipList.CardList(frame)
local args = getArgs{frame = frame:getParent()}
_prepareShipCardListKai()
return ShipCardListKai:Table(args)
end
function _prepareShipCardListKai()
if not ShipCardListKai then
ShipCardListKai = require('Module:ShipCardListKai')
end
end
function ShipList.BattleCardList(frame)
local args = getArgs{frame = frame:getParent()}
_prepareShipBattleCardListKai()
return ShipBattleCardListKai:Table(args)
end
function _prepareShipBattleCardListKai()
if not ShipBattleCardListKai then
ShipBattleCardListKai = require('Module:ShipBattleCardListKai')
end
end
function ShipList.ShipList(frame)
local args = getArgs{frame = frame:getParent()}
_prepareShipListKai()
return ShipListKai:Table(args)
end
function _prepareShipListKai()
if not ShipListKai then
ShipListKai = require('Module:ShipListKai')
end
end
function ShipList.EliteShips(frame)
local args = getArgs{frame = frame:getParent()}
_prepareEliteShipsKai()
return EliteShipsKai:Table(args)
end
function _prepareEliteShipsKai()
if not EliteShipsKai then
EliteShipsKai = require('Module:EliteShipsKai')
end
end
return ShipList