More actions
(implement data table invoke) Tag: 2017 source edit |
(change to buildPartsTable) Tag: 2017 source edit |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 31: | Line 29: | ||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata> | ||
<includeonly>{{#invoke:Data tables| | {{#invoke:Data tables|getTable|{{{Data source}}}|{{{Table name}}}}} | ||
[[Category:Templates]] | |||
</noinclude> | |||
<includeonly>{{#invoke:Data tables|buildPartsTable|{{{Data source}}}|{{{Table name}}}}}</includeonly> |
Latest revision as of 17:17, 25 November 2024
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
This template adds a pre-made table from Template:Data tables subpages. These data in these tables must be edited on their respective subpages.
{{Template:Data tables|Data source|Table name}}
<Data source>[edit source]
This parameter defines the source pool for the table name lookup and is divided into broader categories:
<Table name>[edit source]
This parameter defines the name of the table on its respective data tables subpage:
- Data tables/parts
- command-pods
- command-probes
- command-cockpits
- command-rovers
- tanks-methalox
- tanks-methane
- tanks-monopropellant
- tanks-xenon
- tanks-hydrogen
- engines-methalox
- engines-solid-fuel
- engines-methane
- engines-monopropellant
- engines-xenon
- engines-hydrogen
- structures-struts
- structures-clamps
- structures-engine-mounts
- structures-adapters
- structures-beams
- structures-bodies
- structures-panels
- structures-hubs
- structures-trusses
- structures-truss-adapters
- structures-truss-resizers
- structures-tubes
- coupling-stack-decouplers
- coupling-stack-separators
- coupling-radial-decouplers
- coupling-docking-ports
- payloads-fairings
- payloads-cargo-bays
- payloads-crew-cabins
- payloads-trusses
- aero-nose-cones
- aero-air-intakes
- aero-wings
- aero-stabilizers
- aero-control-surfaces
- aero-tails
- ground-landing-legs
- ground-landing-gear
- ground-wheels
- thermal-heat-shields
- electrical-batteries
- electrical-solar-panels
- electrical-generators
- communication-antennae
- utility-parachutes
- utility-rcs
- utility-stabilizers
- utility-lights
- utility-ladders
- science-experiments
- Data tables/tech tree
- tier1
- tier2
- tier3
- tier4
Include a table from the [[PartTables/Tables]] page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Data source | Data source | Data table source to pull from.
| String | required |
Table name | Table name | The table from the data source to pull.
| String | required |
Lua error in Module:Data_tables at line 142: attempt to index a nil value.