Template:Infobox engines: Difference between revisions

From Kerbal Space Program 2 Wiki
Jump to navigation Jump to search
Removed template data (no longer necessary), added doc call
Tag: 2017 source edit
simplified formatting
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
{{Documentation}}
{{Documentation}}
<noinclude>
</noinclude><includeonly>
{{Infobox  
{{Infobox | subbox = yes
| name    = Test
  | headerstyle  = font-weight: bold; font-size: 18px; text-align: left;
| title    = {{#invoke:Data|getData|Example/engine|name}}
| labelstyle  = width: 50%; text-align: left;
| image    = [[File:LV-SW_SWERV.png|200px|center]]
  | header20 = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode}} | {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|mode_name}} |}}
| caption = {{#invoke:Data|getData|Example/engine|subtitle}}
| label21   = {{#invoke:Data infobox|getFuelLabels|{{PAGENAME}}}}
 
  |  data21   = {{#invoke:Data infobox|getFuelValues|{{PAGENAME}}}}
| labelstyle = width: 33%; text-align: left;
| label22   = Thrust: 1 atm. (kN)
| titlestyle = background-color: #f7aa33;
data22   = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|atm}} <small>kN</small>
padding: 0.2em 0em 0.2em;
| label23   = Thrust: Vac. (kN)
color: black;
data23   = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|vac}} <small>kN</small>
font-size: 22px;
| label24   = I<sub>sp</sub>: 1 atm. (s)
font-weight: bold;
data24 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|atm}} <small>s</small>
| bodystyle  = width: 20em; border: 1px solid #a2a9b1; border-spacing: 3px; margin: 0.5em 0 0.5em 1em;
| label25   = I<sub>sp</sub>: Vac. (s)
    padding: 0.2em;
data25 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|vac}} <small>s</small>
    float: right;
}}
    clear: right;
{{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode}}  
    font-size: 88%;
| {{Infobox | subbox = yes
    line-height: 1.5em;
   | headerstyle  = font-weight: bold; font-size: 18px; text-align: left;
    width: 20em;
  | labelstyle  = width: 50%; text-align: left;
| headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 18px; text-align: left;
   | header20 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|mode_name}}
| captionstyle = text-align: center; font-style: italic;
   | label21   = {{#invoke:Data infobox|getFuelLabels|{{PAGENAME}}|alt}}
 
   |  data21   = {{#invoke:Data infobox|getFuelValues|{{PAGENAME}}|alt}}
| header1 = Statistics
   | label22   = Thrust: 1 atm.
| label2  = Mass (t)
  data22   = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|atm}} <small>kN</small>
|  data2  = {{#invoke:Data|getData|Example/engine|mass}}
  | label23   = Thrust: Vac.
| label3  = Size
  data23   = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|vac}} <small>kN</small>
|  data3  = {{Size|Size={{#invoke:Data|getData|Example/engine|size}}}}
  | label24   = I<sub>sp</sub>: 1 atm.
| label4  = Max Temp (K)
  data24 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|atm}} <small>s</small>
|  data4  = {{#invoke:Data|getData|Example/engine|max_temp}}
  | label25   = I<sub>sp</sub>: Vac.
| label5  = Impact Tolerance (m/s)
  data25 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|vac}} <small>s</small>
| data5   = {{#invoke:Data|getData|Example/engine|imp_tol}}
  }}
 
}}
| header6 = Engine Info
| label7  = Fuel
data7   = {{#invoke:Data|getEngineFuel|Example/engine}}
| label8   = Thrust: 1 atm. (kN)
data8   = {{#invoke:Data|getData|Example/engine|modules|engine|max_thrust|atm}}
| label9   = Thrust: Vac. (kN)
data9   = {{#invoke:Data|getData|Example/engine|modules|engine|max_thrust|vac}}
| label10   = I<sub>sp</sub>: 1 atm. (s)
data10 = {{#invoke:Data|getData|Example/engine|modules|engine|isp|atm}}
| label11   = I<sub>sp</sub>: Vac. (s)
data11 = {{#invoke:Data|getData|Example/engine|modules|engine|isp|vac}}
 
| below    = {{#invoke:Data|getData|Example/engine|manufacturer}}
 
}}
</noinclude>
<includeonly>
{{Infobox
| name    = {{PAGENAME}}
| title    = {{PAGENAME}}
| image    = [[File:{{{image|}}}|200px|center]]
| caption = {{#invoke:Data|getData|{{PAGENAME}}|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;
 
| header1  = Statistics
| label2   = Mass (t)
| data2  = {{#invoke:Data|getData|{{PAGENAME}}|mass}}
| label3  = Size
|  data3  = {{Size|Size={{#invoke:Data|getData|{{PAGENAME}}|size}}}}
| label4   = Max Temp (K)
| data4   = {{#invoke:Data|getData|{{PAGENAME}}|max_temp}}
| label5   = Impact Tolerance (m/s)
data5   = {{#invoke:Data|getData|{{PAGENAME}}|imp_tol}}
 
| header6  = Engine Info
| label7   = Fuel
|  data7  = {{#invoke:Data|getEngineFuel|{{PAGENAME}}}}
| label8   = Thrust: 1 atm. (kN)
data8   = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|atm}}
| label9   = Thrust: Vac. (kN)
data9   = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|vac}}
| label10   = I<sub>sp</sub>: 1 atm. (s)
data10 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|atm}}
| label11   = I<sub>sp</sub>: Vac. (s)
data11 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|vac}}
 
| below    = {{#invoke:Data|getData|{{PAGENAME}}|manufacturer}}
 
}}
</includeonly>
</includeonly>

Latest revision as of 23:45, 28 January 2025