- 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:ShipInfo"
Jump to navigation
Jump to search
com>Ckwng (add entry point for EnemyShipInfoKai) |
com>Ckwng |
||
Line 3: | Line 3: | ||
local EnemyShipInfoKai = false | local EnemyShipInfoKai = false | ||
local ShipCardKai = false | local ShipCardKai = false | ||
+ | local ShipCategoriesKai = false | ||
local ShipInfoKai = false | local ShipInfoKai = false | ||
local getArgs = require('Module:GetArgs') | local getArgs = require('Module:GetArgs') | ||
Line 45: | Line 46: | ||
if not EnemyShipInfoKai then | if not EnemyShipInfoKai then | ||
EnemyShipInfoKai = require('Module:EnemyShipInfoKai') | EnemyShipInfoKai = require('Module:EnemyShipInfoKai') | ||
+ | end | ||
+ | end | ||
+ | |||
+ | function ShipInfo.Categories(frame) | ||
+ | local args = getArgs{frame = frame:getParent()} | ||
+ | _prepareShipCategoriesKai() | ||
+ | return ShipCategoriesKai:Categories(args) | ||
+ | end | ||
+ | |||
+ | function _prepareShipCategoriesKai() | ||
+ | if not ShipCategoriesKai then | ||
+ | ShipCategoriesKai = require('Module:ShipCategoriesKai') | ||
end | end | ||
end | end | ||
return ShipInfo | return ShipInfo |
Revision as of 22:29, 30 May 2015
Documentation for this module may be created at Module:ShipInfo/doc
local ShipInfo = {}
local EnemyShipInfoKai = false
local ShipCardKai = false
local ShipCategoriesKai = false
local ShipInfoKai = false
local getArgs = require('Module:GetArgs')
function ShipInfo.Infobox(frame)
local args = getArgs{frame = frame:getParent()}
_prepareShipInfoKai()
return ShipInfoKai:Infobox(args)
end
function _prepareShipInfoKai()
if not ShipInfoKai then
ShipInfoKai = require('Module:ShipInfoKai')
end
end
function ShipInfo.Card(frame)
local args = getArgs{frame = frame:getParent()}
_prepareShipCardKai()
return ShipCardKai:Card(args)
end
function ShipInfo.BattleCard(frame)
local args = getArgs{frame = frame:getParent()}
_prepareShipCardKai()
return ShipCardKai:BattleCard(args)
end
function _prepareShipCardKai()
if not ShipCardKai then
ShipCardKai = require('Module:ShipCardKai')
end
end
function ShipInfo.EnemyInfobox(frame)
local args = getArgs{frame = frame:getParent()}
_prepareEnemyShipInfoKai()
return EnemyShipInfoKai:Infobox(args)
end
function _prepareEnemyShipInfoKai()
if not EnemyShipInfoKai then
EnemyShipInfoKai = require('Module:EnemyShipInfoKai')
end
end
function ShipInfo.Categories(frame)
local args = getArgs{frame = frame:getParent()}
_prepareShipCategoriesKai()
return ShipCategoriesKai:Categories(args)
end
function _prepareShipCategoriesKai()
if not ShipCategoriesKai then
ShipCategoriesKai = require('Module:ShipCategoriesKai')
end
end
return ShipInfo