Line 1: |
Line 1: |
| local EquipmentCardKai = false | | local EquipmentCardKai = false |
| + | local EquipmentCategoriesKai = false |
| local EquipmentGraphicKai = false | | local EquipmentGraphicKai = false |
| local EquipmentInfoKai = false | | local EquipmentInfoKai = false |
| + | local EnemyEquipmentInfoKai = false |
| local getArgs = require('Module:GetArgs') | | local getArgs = require('Module:GetArgs') |
| | | |
Line 7: |
Line 9: |
| | | |
| function EquipmentInfo.Infobox(frame) | | function EquipmentInfo.Infobox(frame) |
− | local args = getArgs{frame = frame:getParent()} | + | EquipmentInfoKai = EquipmentInfoKai or require('Module:EquipmentInfoKai') |
− | _prepareEquipmentInfoKai()
| + | return EquipmentInfoKai:Infobox(frame.args.pagename and {frame.args.pagename} or getArgs{frame = frame:getParent()}) |
− | return EquipmentInfoKai:Infobox(args) | |
− | end
| |
− | | |
− | function _prepareEquipmentInfoKai()
| |
− | if not EquipmentInfoKai then
| |
− | EquipmentInfoKai = require('Module:EquipmentInfoKai')
| |
− | end
| |
| end | | end |
| | | |
Line 39: |
Line 34: |
| if not EquipmentGraphicKai then | | if not EquipmentGraphicKai then |
| EquipmentGraphicKai = require('Module:EquipmentGraphicKai') | | EquipmentGraphicKai = require('Module:EquipmentGraphicKai') |
| + | end |
| + | end |
| + | |
| + | function EquipmentInfo.Categories(frame) |
| + | local args = getArgs{frame = frame:getParent()} |
| + | _prepareEquipmentCategoriesKai() |
| + | return EquipmentCategoriesKai:Categories(args) |
| + | end |
| + | |
| + | function _prepareEquipmentCategoriesKai() |
| + | if not EquipmentCategoriesKai then |
| + | EquipmentCategoriesKai = require('Module:EquipmentCategoriesKai') |
| + | end |
| + | end |
| + | |
| + | function EquipmentInfo.EnemyInfobox(frame) |
| + | local args = getArgs{frame = frame:getParent()} |
| + | _prepareEnemyEquipmentInfoKai() |
| + | return EnemyEquipmentInfoKai:Infobox(args) |
| + | end |
| + | |
| + | function _prepareEnemyEquipmentInfoKai() |
| + | if not EnemyEquipmentInfoKai then |
| + | EnemyEquipmentInfoKai = require('Module:EnemyEquipmentInfoKai') |
| end | | end |
| end | | end |
| | | |
| return EquipmentInfo | | return EquipmentInfo |