View source for Module:Data tables/pods
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 _commonCells = require("Module:Data tables/common").commonCells
local _commonHeaders = require("Module:Data tables/common").commonHeaders
-- Builds table formatted for command pods
function p.podTable(args)
local category = args[1]
local family = args[2]
local json = mw.loadJsonData("GameData:Collections/parts")
local cells = ''
-- adds command module values
local headers = _commonHeaders() ..
"!Crew\n" ..
"!Electric Charge (U)\n" ..
"!Monopropellant (t)\n" ..
"!Torque (kN)\n"
for k, v in pairs(json[category][family]) do
local partJson = mw.loadJsonData("GameData:"..k)
local tempCell = _commonCells(partJson) ..
"|"..partJson["modules"]["command_module"]["crew_capacity"].."\n" ..
000
1:0
Template used on this page:
Return to Module:Data tables/pods.