Template:Infobox engines: Difference between revisions

From Kerbal Space Program 2 Wiki
Jump to navigation Jump to search
Starting some work on an engines infobox
Tag: 2017 source edit
 
simplified formatting
 
(61 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<templatedata>
{{Documentation}}
{
</noinclude><includeonly>
"params": {
{{Infobox | subbox = yes
"image": {},
| headerstyle  = font-weight: bold; font-size: 18px; text-align: left;
"caption": {},
| labelstyle  = width: 50%; text-align: left;
"size": {
| header20 = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode}} | {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|mode_name}} |}}
"label": "Size",
| label21  = {{#invoke:Data infobox|getFuelLabels|{{PAGENAME}}}}
"description": "Size of part (using {{Size}})",
|  data21  = {{#invoke:Data infobox|getFuelValues|{{PAGENAME}}}}
"type": "wiki-template-name",
| label22  = Thrust: 1 atm. (kN)
"required": true
|  data22  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|atm}} <small>kN</small>
},
| label23  = Thrust: Vac. (kN)
"max temp (K)": {
|  data23  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|vac}} <small>kN</small>
"label": "Max Temperature (K)",
| label24  = I<sub>sp</sub>: 1 atm. (s)
"description": "Maximum withstandable engine temperature",
|  data24  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|atm}} <small>s</small>
"type": "number",
| label25  = I<sub>sp</sub>: Vac. (s)
"required": true
|  data25  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|vac}} <small>s</small>
},
}}
"impact tol (m/s)": {
{{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode}}
"label": "Impact Tolerance (m/s)",
| {{Infobox | subbox = yes
"description": "Impact Tolerance (m/s)",
  | headerstyle  = font-weight: bold; font-size: 18px; text-align: left;
"type": "number"
  | labelstyle  = width: 50%; text-align: left;
}
  | header20 = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|mode_name}}
},
  | label21  = {{#invoke:Data infobox|getFuelLabels|{{PAGENAME}}|alt}}
"description": "Generate an infobox for an engine."
  | data21  = {{#invoke:Data infobox|getFuelValues|{{PAGENAME}}|alt}}
}
  | label22  = Thrust: 1 atm.
</templatedata>
   |  data22   = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|atm}} <small>kN</small>
</noinclude>
  | label23   = Thrust: Vac.
{{Infobox
  data23   = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|vac}} <small>kN</small>
| name    = {{{name|{{PAGENAME}}}}}
  | label24   = I<sub>sp</sub>: 1 atm.
| image    = {{{image|}}}
  data24  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|atm}} <small>s</small>
| caption1 = {{{caption|}}}
  | label25   = I<sub>sp</sub>: Vac.
 
  data25  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|vac}} <small>s</small>
| header1  = Statistics
  }}
 
}}
| label1   = Mass (t)
</includeonly>
data1   = {{{mass (t)|}}}
| label2   = Size
data2   = {{{size|}}}
| label3   = Max Temp (K)
data3  = {{{max temp (K)|}}}
| label4   = Impact Tolerance (m/s)
data4  = {{{impact tol (m/s)|}}}
}}

Latest revision as of 23:45, 28 January 2025