- 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:EliteShips"
Jump to navigation
Jump to search
com>Ckwng (parse highlight thresholds) |
m (7 revisions imported) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
local EliteShips = {} | local EliteShips = {} | ||
− | local EliteShipsKai = | + | local EliteShipsKai = false |
− | local | + | local EliteShipsKaiSortable = false |
local getArgs = require('Module:GetArgs') | local getArgs = require('Module:GetArgs') | ||
function EliteShips.Table(frame) | function EliteShips.Table(frame) | ||
− | local args = getArgs{frame = 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 | ||
− | local | + | end |
− | + | ||
− | + | function EliteShips.SortableTable(frame) | |
− | + | local args = getArgs{frame = frame:getParent()} | |
− | + | _prepareEliteShipsKaiSortable() | |
− | + | return EliteShipsKaiSortable:Table(args) | |
− | + | end | |
− | + | ||
− | + | function _prepareEliteShipsKaiSortable() | |
− | + | if not EliteShipsKaiSortable then | |
− | + | EliteShipsKaiSortable = require('Module:EliteShipsKaiSortable') | |
end | end | ||
− | |||
end | end | ||
return EliteShips | return EliteShips |
Latest revision as of 12:26, 12 May 2021
Documentation for this module may be created at Module:EliteShips/doc
local EliteShips = {}
local EliteShipsKai = false
local EliteShipsKaiSortable = false
local getArgs = require('Module:GetArgs')
function EliteShips.Table(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
function EliteShips.SortableTable(frame)
local args = getArgs{frame = frame:getParent()}
_prepareEliteShipsKaiSortable()
return EliteShipsKaiSortable:Table(args)
end
function _prepareEliteShipsKaiSortable()
if not EliteShipsKaiSortable then
EliteShipsKaiSortable = require('Module:EliteShipsKaiSortable')
end
end
return EliteShips