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
-- commonHeaders are used by all parts tables so they're called from here for
-- cleaner code per category/family table
local commonHeaders = "{| class=\"wikitable\"\n" ..
"!Image\n" ..
"!Name\n" ..
"!Size\n" ..
"!Mass (t)\n" ..
"!Max Temperature (K)\n" ..
"!Impact Tolerance (m/s)\n"
-- commonCells pair to commonHeaders, so they are independent from the
-- individual tables for the same reason (cleaner code)
function p._commonCells(partJson)
local commonCells = "|-\n" ..
"|".."IMG HERE\n" ..
"|"..partJson["name"].."\n" ..
"|".."{{Size|Size="..partJson["size"].."}}\n" ..
"|"..partJson["mass"].."\n" ..
"|"..partJson["max_temp"].."\n" ..
000
1:0
Template used on this page:
Return to Module:Data tables.