Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox engines: Difference between revisions

Template page
(Sample table now supports alt mode info display. Parser #if: function uses presence of an alt_mode in the JSON)
Tag: 2017 source edit
(Implement alt mode support)
Tag: 2017 source edit
Line 101: Line 101:


| header20  = Engine Info
| header20  = Engine Info
| label21  = Fuel
| data21  = {{Infobox | subbox = yes
|  data21  = {{#invoke:Data|getEngineFuel|{{PAGENAME}}}}
| headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 18px; text-align: left;
| label22  = Thrust: 1 atm. (kN)
| labelstyle  = width: 50%; text-align: left;
|  data22  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|atm}}
|header20 = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode}} | {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|mode_name}} |}}
| label23  = Thrust: Vac. (kN)
| label21  = Fuel
|  data23  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|vac}}
|  data21  = {{#invoke:Data|getEngineFuel|{{PAGENAME}}}}
| label24  = I<sub>sp</sub>: 1 atm. (s)
| label22  = Thrust: 1 atm. (kN)
|  data24  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|atm}}
|  data22  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|atm}}
| label25  = I<sub>sp</sub>: Vac. (s)
| label23  = Thrust: Vac. (kN)
|  data25  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|vac}}
|  data23  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|vac}}
 
| label24  = I<sub>sp</sub>: 1 atm. (s)
|  data24  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|atm}}
| label25  = I<sub>sp</sub>: Vac. (s)
|  data25  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|vac}}
}}
{{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode}} | data22 = {{Infobox | subbox = yes
| headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 18px; text-align: left;
| labelstyle  = width: 50%; text-align: left;
|header20 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|mode_name}}
| label21  = Fuel
|  data21  = {{#invoke:Data|getEngineFuel|{{PAGENAME}}}}
| label22  = Thrust: 1 atm. (kN)
|  data22  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|max_thrust|atm}}
| label23  = Thrust: Vac. (kN)
|  data23  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|max_thrust|vac}}
| label24  = I<sub>sp</sub>: 1 atm. (s)
|  data24  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|isp|atm}}
| label25  = I<sub>sp</sub>: Vac. (s)
|  data25  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|isp|vac}}
}}|}}
| below    = {{#invoke:Data|getData|{{PAGENAME}}|manufacturer}}
| below    = {{#invoke:Data|getData|{{PAGENAME}}|manufacturer}}
}}
}}
</includeonly>
</includeonly>

Revision as of 16:13, 27 November 2024

T3-ST "Default"
Example Methalox Engine
Statistics
Mass (t)0.500
SizeSM
Max Temp (K)1000
Impact Tolerance (m/s)10
Engine Info
Mode 2
FuelScript error: The function "getEngineFuel" does not exist.
Thrust: 1 atm. (kN)42.0
Thrust: Vac. (kN)88.0
Isp: 1 atm. (s)223
Isp: Vac. (s)628
data22 =
Mode 2
FuelScript error: The function "getEngineFuel" does not exist.
Thrust: 1 atm. (kN)42.0
Thrust: Vac. (kN)88.0
Isp: 1 atm. (s)223
Isp: Vac. (s)628
Community Conglomerate


MediaWiki Appliance - Powered by TurnKey Linux