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

Template:Infobox engines/doc: Difference between revisions

Template page
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 part/doc
{{Infobox | subbox = yes
| auxHeader = Engine
  | headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 14px; text-align: left;
| auxData = {{Infobox | subbox = yes
  | headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 18px; text-align: left;
  | 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. (kN)
  | 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. (kN)
  | 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. (s)
  | 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. (s)
  | 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>
  }}
  }}
  }}
{{#if: {{#invoke:Data|getData|Example/engine|modules|engine|alt_mode}} | {{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|Example/engine|modules|engine|alt_mode|mode_name}}
| label21  = {{#invoke:Data|getFuelLabels|Example/engine|alt}}
|  data21  = {{#invoke:Data|getFuelValues|Example/engine|alt}}
| label22  = Thrust: 1 atm. (kN)
|  data22  = {{#invoke:Data|getData|Example/engine|modules|engine|max_thrust|atm}}
| label23  = Thrust: Vac. (kN)
|  data23  = {{#invoke:Data|getData|Example/engine|modules|engine|max_thrust|vac}}
| label24  = I<sub>sp</sub>: 1 atm. (s)
|  data24  = {{#invoke:Data|getData|Example/engine|modules|engine|isp|atm}}
| label25  = I<sub>sp</sub>: Vac. (s)
|  data25  = {{#invoke:Data|getData|Example/engine|modules|engine|isp|vac}}
}}|}}
| below    = {{#invoke:Data|getData|Example/engine|manufacturer}}
}}

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 = }}

}}