| Line 1: |
Line 1: |
| | local ShipInfo = {} | | local ShipInfo = {} |
| | | | |
| | + | local EnemyShipCategoriesKai = false |
| | local EnemyShipInfoKai = false | | local EnemyShipInfoKai = false |
| | + | local ShipBattleCardKai = false |
| | local ShipCardKai = false | | local ShipCardKai = false |
| | + | local ShipCardComboKai = false |
| | local ShipCategoriesKai = false | | local ShipCategoriesKai = false |
| | local ShipGraphicKai = false | | local ShipGraphicKai = false |
| | local ShipInfoKai = false | | local ShipInfoKai = false |
| | + | local ShipMetaKai = false |
| | local getArgs = require('Module:GetArgs') | | local getArgs = require('Module:GetArgs') |
| | | | |
| Line 17: |
Line 21: |
| | if not ShipInfoKai then | | if not ShipInfoKai then |
| | ShipInfoKai = require('Module:ShipInfoKai') | | ShipInfoKai = require('Module:ShipInfoKai') |
| | + | end |
| | + | end |
| | + | |
| | + | function ShipInfo.Meta(frame) |
| | + | local args = getArgs{frame = frame, wrappers = {"Template:ShipMetaKai"}} |
| | + | _prepareShipMetaKai() |
| | + | return ShipMetaKai:Infobox(args) |
| | + | end |
| | + | |
| | + | function _prepareShipMetaKai() |
| | + | if not ShipMetaKai then |
| | + | ShipMetaKai = require('Module:ShipMetaKai') |
| | end | | end |
| | end | | end |
| Line 23: |
Line 39: |
| | local args = getArgs{frame = frame:getParent()} | | local args = getArgs{frame = frame:getParent()} |
| | _prepareShipCardKai() | | _prepareShipCardKai() |
| − | return ShipCardKai:Card(args) | + | return ShipCardKai:Asset(args) |
| | + | end |
| | + | |
| | + | function _prepareShipCardKai() |
| | + | if not ShipCardKai then |
| | + | ShipCardKai = require('Module:ShipCardKai') |
| | + | end |
| | end | | end |
| | | | |
| | function ShipInfo.BattleCard(frame) | | function ShipInfo.BattleCard(frame) |
| | local args = getArgs{frame = frame:getParent()} | | local args = getArgs{frame = frame:getParent()} |
| − | _prepareShipCardKai() | + | _prepareShipBattleCardKai() |
| − | return ShipCardKai:BattleCard(args) | + | return ShipBattleCardKai:Asset(args) |
| | + | end |
| | + | |
| | + | function _prepareShipBattleCardKai() |
| | + | if not ShipBattleCardKai then |
| | + | ShipBattleCardKai = require('Module:ShipBattleCardKai') |
| | + | end |
| | + | end |
| | + | |
| | + | function ShipInfo.CardCombo(frame) |
| | + | local args = getArgs{frame = frame:getParent()} |
| | + | _prepareShipCardComboKai() |
| | + | return ShipCardComboKai:Asset(args) |
| | end | | end |
| | | | |
| − | function _prepareShipCardKai() | + | function _prepareShipCardComboKai() |
| − | if not ShipCardKai then | + | if not ShipCardComboKai then |
| − | ShipCardKai = require('Module:ShipCardKai') | + | ShipCardComboKai = require('Module:ShipCardComboKai') |
| | end | | end |
| | end | | end |
| Line 41: |
Line 75: |
| | local args = getArgs{frame = frame:getParent()} | | local args = getArgs{frame = frame:getParent()} |
| | _prepareShipGraphicKai() | | _prepareShipGraphicKai() |
| − | return ShipGraphicKai:Graphic(args) | + | return ShipGraphicKai:Asset(args) |
| | end | | end |
| | | | |
| Line 71: |
Line 105: |
| | if not ShipCategoriesKai then | | if not ShipCategoriesKai then |
| | ShipCategoriesKai = require('Module:ShipCategoriesKai') | | ShipCategoriesKai = require('Module:ShipCategoriesKai') |
| | + | end |
| | + | end |
| | + | |
| | + | function ShipInfo.EnemyCategories(frame) |
| | + | local args = getArgs{frame = frame:getParent()} |
| | + | _prepareEnemyShipCategoriesKai() |
| | + | return EnemyShipCategoriesKai:Categories(args) |
| | + | end |
| | + | |
| | + | function _prepareEnemyShipCategoriesKai() |
| | + | if not EnemyShipCategoriesKai then |
| | + | EnemyShipCategoriesKai = require('Module:EnemyShipCategoriesKai') |
| | end | | end |
| | end | | end |
| | | | |
| | return ShipInfo | | return ShipInfo |