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
(changed name to title)
Tag: 2017 source edit
(Removed example box, now transcluded from /doc)
Tag: 2017 source edit
 
(51 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<templatedata>
{{Documentation}}
{
</noinclude><includeonly>
"params": {
"image": {},
"caption": {},
"size": {
"label": "Size",
"description": "Size of part (using {{Size}})",
"type": "string",
"required": true,
"suggestedvalues": [
"XS",
"SM",
"MD",
"LG",
"XL",
"2X"
]
},
"max temp (K)": {
"label": "Max Temperature (K)",
"description": "Maximum withstandable engine temperature",
"type": "number",
"required": true
},
"impact tol (m/s)": {
"label": "Impact Tolerance (m/s)",
"description": "Impact Tolerance (m/s)",
"type": "number",
"required": true
}
},
"description": "Generate an infobox for an engine."
}
</templatedata>
</noinclude>
{{Infobox
{{Infobox
| name    = {{PAGENAME}}
| title    = {{PAGENAME}}
| title    = {{PAGENAME}}
| image    = {{{image|}}}
| image    = [[File:{{{image|}}}|200px|center]]
| caption1 = {{{caption|}}}
| caption = {{#invoke:Data|getData|{{PAGENAME}}|subtitle}}


| header1 = Statistics
| labelstyle = width: 60%; 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;


| label1   = Mass (t)
| header10  = Statistics
data1   = {{{mass (t)|}}}
| label11   = Mass (t)
| label2   = Size
data11   = {{#invoke:Data|getData|{{PAGENAME}}|mass}}
data2   = {{Size|{{{size|}}}}}
| label12  = Size
| label3   = Max Temp (K)
|  data12  = {{Size|Size={{#invoke:Data|getData|{{PAGENAME}}|size}}}}
data3   = {{{max temp (K)|}}}
| label13  = Max Temp (K)
| label4   = Impact Tolerance (m/s)
|  data13  = {{#invoke:Data|getData|{{PAGENAME}}|max_temp}}
data4   = {{{impact tol (m/s)|}}}
| label14   = Impact Tolerance (m/s)
data14   = {{#invoke:Data|getData|{{PAGENAME}}|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|{{PAGENAME}}|modules|engine|alt_mode}} | {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|mode_name}} |}}
| label21  = {{#invoke:Data|getFuelLabels|{{PAGENAME}}}}
|  data21  = {{#invoke:Data|getFuelValues|{{PAGENAME}}}}
| label22   = Thrust: 1 atm. (kN)
data22   = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|atm}}
| label23  = Thrust: Vac. (kN)
| data23  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|max_thrust|vac}}
| label24   = I<sub>sp</sub>: 1 atm. (s)
|  data24  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|atm}}
| label25  = I<sub>sp</sub>: Vac. (s)
|  data25  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|isp|vac}}
}}
| data22 = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|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|{{PAGENAME}}|modules|engine|alt_mode|mode_name}}
| label21  = {{#invoke:Data|getFuelLabels|{{PAGENAME}}|alt}}
data21   = {{#invoke:Data|getFuelValues|{{PAGENAME}}|alt}}
| label22  = Thrust: 1 atm. (kN)
|  data22  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|max_thrust|atm}}
| label23  = Thrust: Vac. (kN)
|  data23  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|max_thrust|vac}}
| label24  = I<sub>sp</sub>: 1 atm. (s)
|  data24  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|isp|atm}}
| label25  = I<sub>sp</sub>: Vac. (s)
|  data25  = {{#invoke:Data|getData|{{PAGENAME}}|modules|engine|alt_mode|isp|vac}}
}}|}}
| below    = {{#invoke:Data|getData|{{PAGENAME}}|manufacturer}}
}}
}}
</includeonly>

Latest revision as of 19:53, 6 December 2024

MediaWiki Appliance - Powered by TurnKey Linux