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 dataTables = require('Module:Data tables')
local commonHeaders = dataTables._commonHeaders
local commonCells = dataTables._commonCells
-- Builds table formatted for command pods
function p.podTable(args)
local category = args[1]
local family = args[2]
-- adds command module values
local header = commonHeaders() ..
"!Crew\n" ..
"!Electric Charge (U)\n" ..
"!Monopropellant (t)\n" ..
"!Torque (kN)\n"
local cells = ""
-- load the full parts list to iterate per given category and family
json = mw.loadJsonData("Data:Collections/parts")
-- each applicable part's data is appended to the table cells
000
1:0
Template used on this page:
Return to Module:Data tables/pods.