View source for Module:Data tables
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
local getArgs = require('Module:Arguments').getArgs
_commonCells = require("Module:Data tables/common cells").commonCells
_commonHeaders = require("Module:Data tables/common cells").commonHeaders
local podTable = require('Module:Data tables/pods').podTable
local engineTable = require('Module:Data tables/engines').engineTable
local tankTable = require('Module:Data tables/tanks').tankTable
local parachuteTable = require('Module:Data tables/parachutes').parachuteTable
-- Accepts <category> and <family> parameters to build the relevant part table
function p.buildPartsTable(frame)
local args = getArgs(frame)
local category = args[1]
local family = args[2]
local newTable = ""
-- iterate to decide which table format needs to be used for the table build
if category == "pods" and family == "pod" then
newTable = podTable(args)
elseif category == "engines" then
newTable = engineTable(args)
elseif category == "fueltank" then
000
1:0
Template used on this page:
Return to Module:Data tables.