Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox part: Difference between revisions

Template page
Updated params to use pagename
Tag: visualeditor-wikitext
implemented new module based box approach from /doc
Tag: visualeditor-wikitext
Line 7: Line 7:
| image    = [[File:{{#invoke:Data|getData|{{PAGENAME}}|file}}|200px|center]]
| image    = [[File:{{#invoke:Data|getData|{{PAGENAME}}|file}}|200px|center]]
| caption = {{#invoke:Data|getData|{{PAGENAME}}|subtitle}}
| caption = {{#invoke:Data|getData|{{PAGENAME}}|subtitle}}
| below    = {{#invoke:Data|getData|{{PAGENAME}}|manufacturer}}


| labelstyle  = width: 60%; text-align: left;
| labelstyle  = width: 60%; text-align: left;
Line 22: Line 23:
     width: 20em;
     width: 20em;
| 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;
| autoheaders = y
| captionstyle = text-align: center; font-style: italic;
| captionstyle = text-align: center; font-style: italic;


| header10  = Statistics
| header10  = Statistics
| label11  = Mass (t)
| label11  = Mass (t)
|  data11  = {{#invoke:Data|getData|{{PAGENAME}}|mass}}
|  data11  = {{#invoke:Data|getData|{{PAGENAME}}|mass}}
| label12  = Size
| label12  = Size
|  data12  = {{Size|Size={{#invoke:Data|getData|{{PAGENAME}}|size}}}}
|  data12  = {{Size|Size={{#invoke:Data|getData|{{PAGENAME}}|size}}}}
| label13  = Max Temp (K)
| label13  = Max Temp (K)
|  data13  = {{#invoke:Data|getData|{{PAGENAME}}|max_temp}}
|  data13  = {{#invoke:Data|getData|{{PAGENAME}}|max_temp}}
| label14  = Impact Tolerance (m/s)
| label14  = Impact Tolerance (m/s)
|  data14  = {{#invoke:Data|getData|{{PAGENAME}}|imp_tol}}
|  data14  = {{#invoke:Data|getData|{{PAGENAME}}|imp_tol}}


| below    = {{#invoke:Data|getData|{{PAGENAME}}|manufacturer}}
| label20  = Methalox (t)
|  data20  = {{#invoke:Data|getData|{{PAGENAME}}|resources|methalox}}
 
| label21  = Methane (t)
|  data21  = {{#invoke:Data|getData|{{PAGENAME}}|resources|methane}}
 
| label22  = Monopropellant (t)
|  data22  = {{#invoke:Data|getData|{{PAGENAME}}|resources|monopropellant}}
 
| label23  = Solid Fuel (t)
|  data23  = {{#invoke:Data|getData|{{PAGENAME}}|resources|solid_fuel}}
 
| label24  = Hydrogen (t)
|  data24  = {{#invoke:Data|getData|{{PAGENAME}}|resources|hydrogen}}
 
| label25  = Xenon (t)
|  data25  = {{#invoke:Data|getData|{{PAGENAME}}|resources|xenon}}
 
| label26  = Electric Charge (U)
|  data26  = {{#invoke:Data|getData|{{PAGENAME}}|resources|electric_charge}}
 
| label29  = Stores Research
|  data29  = {{#ifeq: {{#invoke:Data|getData|{{PAGENAME}}|stores_research}} | true | ✔ |}}
 
| header30 = Engine
| data31 = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine}} | {{Infobox engines}} |}}
 
| header32 = Engine Gimbal
| data33 = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|engine_gimbal}} | {{Infobox engine gimbal}} |}}
 
| header34 = Generator
| data35 = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|generator}} | {{Infobox generator}} |}}
 
| header36 = Converter
| data37  = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|converter}} | {{Infobox converter}} |}}
 
| header80 = Parachute
| data81 = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|parachute}} | {{Infobox parachute}} |}}
 
| header120 = Science Experiment
| data121 = {{#if: {{#invoke:Data|getData|{{PAGENAME}}|modules|science_experiment}} | {{Infobox science experiment}} |}}
 
 
}}</includeonly>
}}</includeonly>

Revision as of 05:10, 25 December 2024