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
(Added more engine params)
Tag: 2017 source edit
(Removed example box, now transcluded from /doc)
Tag: 2017 source edit
 
(35 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<templatedata>
{{Documentation}}
{
</noinclude><includeonly>
"params": {
"image": {
"aliases": [
"picture",
"thumbnail"
],
"label": "Part Image",
"description": "The filename of the part, including the file extension",
"example": "LV-3000_Tuba.png",
"type": "wiki-file-name",
"required": true
},
"caption": {
"aliases": [
"subtitle"
],
"label": "Caption",
"description": "The part's classification per the in-game description.",
"example": "Deep Space Hydrogen Engine",
"type": "string",
"required": true
},
"size": {
"label": "Size",
"description": "Size of part (using {{Size}})",
"type": "string",
"required": true,
"suggestedvalues": [
"XS",
"SM",
"MD",
"LG",
"XL",
"2X"
]
},
"max temp": {
"label": "Max Temperature (K)",
"description": "Maximum withstandable engine temperature",
"type": "string",
"required": true
},
"impact tol": {
"label": "Impact Tolerance (m/s)",
"description": "The velocity at which a collision will destroy this part.",
"type": "string",
"required": true
},
"mass": {
"label": "Mass (t)",
"description": "Mass (t)",
"type": "string",
"required": true
},
"fuel type": {
"aliases": [
"fuel"
],
"label": "Fuel Type",
"description": "The fuel this engine burns.",
"type": "string",
"suggestedvalues": [
"Methalox",
"Methane",
"Monopropellant",
"Solid Fuel",
"Hydrogen",
"Xenon"
],
"required": true
},
"vacuum thrust": {
"aliases": [
"vac thrust",
"thrust vac"
],
"label": "Thrust (Vacuum)",
"description": "The max thrust this engine creates in vacuum.",
"type": "string",
"required": true
},
"vacuum isp": {
"aliases": [
"vac isp",
"isp vac"
],
"label": "Isp (Vac.)",
"description": "The specific impulse of this engine in vacuum.",
"type": "string",
"required": true
},
"manufacturer": {
"aliases": [
"maker",
"brand"
],
"label": "Manufacturer",
"description": "The in-game manufacturer of the part.",
"example": "Jebediah's Junkyard",
"type": "string",
"required": true
},
"atm thrust": {
"label": "Thrust (1 atm)",
"description": "The max thrust this engine creates at 1 atmosphere of pressure.",
"type": "string",
"required": true
},
"atm isp": {
"label": "Isp (1 atm)",
"description": "The specific impulse of this engine at 1 atmosphere of pressure.",
"type": "string",
"required": true
}
},
"description": "Generate an infobox for an engine.",
"paramOrder": [
"image",
"caption",
"mass",
"size",
"max temp",
"impact tol",
"manufacturer",
"fuel type",
"vacuum thrust",
"atm thrust",
"vacuum isp",
"atm isp"
]
}
</templatedata>
 
{{Infobox
| name    = Test
| title    = Test box
| image    = [[File:SWERV.png|200px]]
| caption = Test caption
 
| labelstyle  = width: 33%
| bodystyle  = width: 20em
| headerstyle  = font-weight: bold; color: black; background: #f7aa33;
 
| header1  = Statistics
| label2  = Mass (t)
|  data2  = #
| label3  = Size
|  data3  = #
| label4  = Max Temp (K)
|  data4  = {{{max temp|#}}}
| label5  = Impact Tolerance (m/s)
|  data5  = {{{impact tol|#}}}
 
| header6  = Engine Info
| label7  = Fuel
|  data7  = #
| label8  = Thrust: Vac. (kN)
|  data8  = #
| label9  = Thrust: 1 atm. (kN)
|  data9  = #
| label10  = I<sub>sp</sub>: Vac. (s)
|  data10  = #
| label11  = I<sub>sp</sub>: 1 atm. (s)
|  data11  = #
 
| below    = Jedediah's Junk Yard
 
}}
</noinclude>
 
<includeonly>
{{Infobox
{{Infobox
| name    = {{PAGENAME}}
| name    = {{PAGENAME}}
| title    = {{PAGENAME}}
| title    = {{PAGENAME}}
| image    = [[File:{{{image|}}}|200px]]
| image    = [[File:{{{image|}}}|200px|center]]
| caption = {{{caption|}}}
| caption = {{#invoke:Data|getData|{{PAGENAME}}|subtitle}}
 
| labelstyle  = width: 33%
| bodystyle  = width: 20em
| headerstyle  = font-weight: bold; color: black; background: #f7aa33;
 
| header1  = Statistics
 
| label2  = Mass (t)
|  data2  = {{{mass|}}}
| label3  = Size
|  data3  = {{Size|Size={{{size|}}}|Add Category=1}}
| label4  = Max Temp (K)
| data4  = {{{max temp|}}}
| label5  = Impact Tolerance (m/s)
|  data5  = {{{impact tol|}}}
 


| header6 = Engine Info
| labelstyle = width: 60%; text-align: left;
| label7  = Fuel
| titlestyle = background-color: #f7aa33;
|  data7  = {{{fuel type|}}}
padding: 0.2em 0em 0.2em;
| label8   = Thrust: Vac. (kN)
color: black;
|  data8  = {{{vacuum thrust|}}}
font-size: 22px;
| label9  = Thrust: 1 atm. (kN)
font-weight: bold;
|  data9  = {{{atm thrust|}}}
| bodystyle   = width: 20em; border: 1px solid #a2a9b1; border-spacing: 3px; margin: 0.5em 0 0.5em 1em;
| label10  = I<sub>sp</sub>: Vac. (s)
    padding: 0.2em;
|  data10  = {{{vacuum isp|}}}
    float: right;
| label11  = I<sub>sp</sub>: 1 atm. (s)
    clear: right;
| data11 = {{{atm isp|}}}
    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;


below   = {{{manufacturer|}}}
| header10 = Statistics
| label11  = Mass (t)
|  data11  = {{#invoke:Data|getData|{{PAGENAME}}|mass}}
| label12  = Size
|  data12  = {{Size|Size={{#invoke:Data|getData|{{PAGENAME}}|size}}}}
| label13  = Max Temp (K)
|  data13   = {{#invoke:Data|getData|{{PAGENAME}}|max_temp}}
| 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>
</includeonly>

Latest revision as of 19:53, 6 December 2024

MediaWiki Appliance - Powered by TurnKey Linux