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
(leading pipe to data22)
Tag: 2017 source edit
(Removed example box, now transcluded from /doc)
Tag: 2017 source edit
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation}}
{{Infobox
</noinclude><includeonly>
| name    = Test
| title    = {{#invoke:Data|getData|Example/engine|name}}
| image    = [[File:LV-SW_SWERV.png|200px|center]]
| caption = {{#invoke:Data|getData|Example/engine|subtitle}}
 
| labelstyle  = width: 33%; text-align: left;
| titlestyle = background-color: #f7aa33;
padding: 0.2em 0em 0.2em;
color: black;
font-size: 22px;
font-weight: bold;
| bodystyle  = width: 20em; border: 1px solid #a2a9b1; border-spacing: 3px; margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    float: right;
    clear: right;
    font-size: 88%;
    line-height: 1.5em;
    width: 20em;
| headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 18px; text-align: left;
| captionstyle = text-align: center; font-style: italic;
 
| header10  = Statistics
| label11  = Mass (t)
|  data11  = {{#invoke:Data|getData|Example/engine|mass}}
| label12  = Size
|  data12  = {{Size|Size={{#invoke:Data|getData|Example/engine|size}}}}
| label13  = Max Temp (K)
|  data13  = {{#invoke:Data|getData|Example/engine|max_temp}}
| label14  = Impact Tolerance (m/s)
|  data14  = {{#invoke:Data|getData|Example/engine|imp_tol}}
 
| header20  = Engine Info
| data21 = {{Infobox | subbox = yes
| headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 18px; 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|alt_mode|mode_name}} |}}
| label21  = Fuel
|  data21  = {{#invoke:Data|getEngineFuel|Example/engine}}
| 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}}
}}
{{#if: {{#invoke:Data|getData|Example/engine|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|Example/engine|modules|engine|alt_mode|mode_name}}
| label21  = Fuel
|  data21  = {{#invoke:Data|getEngineFuel|Example/engine}}
| 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}}
}}
</noinclude>
<includeonly>
{{Infobox
{{Infobox
| name    = {{PAGENAME}}
| name    = {{PAGENAME}}
Line 74: Line 8:
| caption = {{#invoke:Data|getData|{{PAGENAME}}|subtitle}}
| caption = {{#invoke:Data|getData|{{PAGENAME}}|subtitle}}


| labelstyle  = width: 33%; text-align: left;
| labelstyle  = width: 60%; text-align: left;
| titlestyle = background-color: #f7aa33;
| titlestyle = background-color: #f7aa33;
padding: 0.2em 0em 0.2em;
padding: 0.2em 0em 0.2em;
Line 104: Line 38:
  | headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 18px; text-align: left;
  | 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|{{PAGENAME}}|modules|engine|alt_mode}} | {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|mode_name}} |}}
  | header20 = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode}} | {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|mode_name}} |}}
  | label21  = Fuel
  | label21  = {{#invoke:Data|getFuelLabels|{{PAGENAME}}}}
  |  data21  = {{#invoke:Data|getEngineFuel|{{PAGENAME}}}}
  |  data21  = {{#invoke:Data|getFuelValues|{{PAGENAME}}}}
  | label22  = Thrust: 1 atm. (kN)
  | label22  = Thrust: 1 atm. (kN)
  |  data22  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|atm}}
  |  data22  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|atm}}
Line 119: Line 53:
  | headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 18px; text-align: left;
  | 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 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|mode_name}}
  | header20 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|mode_name}}
  | label21  = Fuel
  | label21  = {{#invoke:Data|getFuelLabels|{{PAGENAME}}|alt}}
  |  data21  = {{#invoke:Data|getEngineFuel|{{PAGENAME}}}}
  |  data21  = {{#invoke:Data|getFuelValues|{{PAGENAME}}|alt}}
  | label22  = Thrust: 1 atm. (kN)
  | label22  = Thrust: 1 atm. (kN)
  |  data22  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|max_thrust|atm}}
  |  data22  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|max_thrust|atm}}

Latest revision as of 19:53, 6 December 2024

MediaWiki Appliance - Powered by TurnKey Linux