More actions
implemented base part infobox with args Tag: 2017 source edit |
changed label width to 50% Tags: Manual revert 2017 source edit |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | subbox = yes | |||
| headerstyle = font-weight: bold; color: black; background: #f7aa33; font-size: 14px; text-align: left; | |||
| headerstyle = font-weight: bold; color: black; background: #f7aa33; font-size: | |||
| labelstyle = width: 50%; text-align: left; | | labelstyle = width: 50%; text-align: left; | ||
| header20 = {{#if: {{#invoke:Data|getData|Example/engine|modules|engine|alt_mode}} | {{#invoke:Data|getData|Example/engine|modules|engine|mode_name}} |}} | | header20 = {{#if: {{#invoke:Data|getData|Example/engine|modules|engine|alt_mode}} | {{#invoke:Data|getData|Example/engine|modules|engine|mode_name}} |}} | ||
| label21 = {{#invoke:Data|getFuelLabels|Example/engine}} | | label21 = {{#invoke:Data infobox|getFuelLabels|Example/engine}} | ||
| data21 = {{#invoke:Data|getFuelValues|Example/engine}} | | data21 = {{#invoke:Data infobox|getFuelValues|Example/engine}} | ||
| label22 = Thrust: 1 atm. | | label22 = Thrust: 1 atm. | ||
| data22 = {{#invoke:Data|getData|Example/engine|modules|engine|max_thrust|atm}} | | data22 = {{#invoke:Data|getData|Example/engine|modules|engine|max_thrust|atm}} <small>kN</small> | ||
| label23 = Thrust: Vac. | | label23 = Thrust: Vac. | ||
| data23 = {{#invoke:Data|getData|Example/engine|modules|engine|max_thrust|vac}} | | data23 = {{#invoke:Data|getData|Example/engine|modules|engine|max_thrust|vac}} <small>kN</small> | ||
| label24 = I<sub>sp</sub>: 1 atm. | | label24 = I<sub>sp</sub>: 1 atm. | ||
| data24 = {{#invoke:Data|getData|Example/engine|modules|engine|isp|atm}} | | data24 = {{#invoke:Data|getData|Example/engine|modules|engine|isp|atm}} <small>s</small> | ||
| label25 = I<sub>sp</sub>: Vac. | | label25 = I<sub>sp</sub>: Vac. | ||
| data25 = {{#invoke:Data|getData|Example/engine|modules|engine|isp|vac}} | | data25 = {{#invoke:Data|getData|Example/engine|modules|engine|isp|vac}} <small>s</small> | ||
}} | |||
{{#if: {{#invoke:Data|getData|Example/engine|modules|engine|alt_mode}} | |||
| {{Infobox | subbox = yes | |||
| headerstyle = font-weight: bold; color: black; background: #f7aa33; font-size: 14px; text-align: left; | |||
| labelstyle = width: 50%; text-align: left; | |||
| header20 = {{#invoke:Data|getData|Example/engine|modules|engine|alt_mode|mode_name}} | |||
| label21 = {{#invoke:Data infobox|getFuelLabels|Example/engine|alt}} | |||
| data21 = {{#invoke:Data infobox|getFuelValues|Example/engine|alt}} | |||
| label22 = Thrust: 1 atm. | |||
| data22 = {{#invoke:Data|getData|Example/engine|modules|engine|max_thrust|atm}} <small>kN</small> | |||
| label23 = Thrust: Vac. | |||
| data23 = {{#invoke:Data|getData|Example/engine|modules|engine|max_thrust|vac}} <small>kN</small> | |||
| label24 = I<sub>sp</sub>: 1 atm. | |||
| data24 = {{#invoke:Data|getData|Example/engine|modules|engine|isp|atm}} <small>s</small> | |||
| label25 = I<sub>sp</sub>: Vac. | |||
| data25 = {{#invoke:Data|getData|Example/engine|modules|engine|isp|vac}} <small>s</small> | |||
}} | |||
}} | }} | ||
Latest revision as of 17:25, 31 December 2024
{{#invoke:Infobox|infobox}}{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#ifeq:Infobox engines/doc|Infobox||{{#ifeq:Template:Str left|Infobox|[[Category:Infobox templates|Template:Remove first word]]}}}} | other | #default = }} {{#if: {{#invoke:Data|getData|Example/engine|modules|engine|alt_mode}}
| {{#invoke:Infobox|infobox}}{{#switch: {{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#ifeq:Infobox engines/doc|Infobox||{{#ifeq:Template:Str left|Infobox|[[Category:Infobox templates|Template:Remove first word]]}}}} | other | #default = }}
}}