Difference between revisions of "Template:Infobox/Part/deployed science"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Use dict, add more params, sort table)
m (Experiment is optional)
Line 1: Line 1:
<noinclude>{{Infobox/Part/preview|</noinclude>
+
<noinclude>{{Infobox/Part/preview|</noinclude>{{#if: {{{experiment|}}}|
 
{{Infobox/Line|{{Dict/science|Experiment}}|{{#switch: {{lc:{{{experiment<noinclude>|mgo</noinclude>}}}}}
 
{{Infobox/Line|{{Dict/science|Experiment}}|{{#switch: {{lc:{{{experiment<noinclude>|mgo</noinclude>}}}}}
 
|mgo={{if lang link|Surface Deployed Mystery Goo Observations|{{Dict/science|bg-goo}}}}
 
|mgo={{if lang link|Surface Deployed Mystery Goo Observations|{{Dict/science|bg-goo}}}}
Line 5: Line 5:
 
|ic={{if lang link|Surface Deployed Ion Collector|{{Dict/science|bg-ion}}}}
 
|ic={{if lang link|Surface Deployed Ion Collector|{{Dict/science|bg-ion}}}}
 
|ss={{if lang link|Surface Deployed Seismic Sensor|{{Dict/science|bg-sei}}}}
 
|ss={{if lang link|Surface Deployed Seismic Sensor|{{Dict/science|bg-sei}}}}
|#default={{{experiment}}}<sup>[''unknown'']</sup>[[Category:Unknown science experiment]]}}}}
+
|#default={{{experiment}}}<sup>[''unknown'']</sup>[[Category:Unknown science experiment]]}}}}}}
 
{{Infobox/Line|{{Infobox/Part/Dict|Volume}}|{{#ifeq: {{{volume|}}}|-1|{{Dict|none}}|{{{volume<noinclude>|50</noinclude>}}}&nbsp;{{Dict|l}}}}}}{{if||{{{generate|}}}|
 
{{Infobox/Line|{{Infobox/Part/Dict|Volume}}|{{#ifeq: {{{volume|}}}|-1|{{Dict|none}}|{{{volume<noinclude>|50</noinclude>}}}&nbsp;{{Dict|l}}}}}}{{if||{{{generate|}}}|
 
{{Infobox/Line|{{Infobox/Part/Dict|pow-gen}}|{{{generate<noinclude>|1</noinclude>}}}&nbsp;{{Dict|unit}}}}}}{{if||{{{usage|}}}|
 
{{Infobox/Line|{{Infobox/Part/Dict|pow-gen}}|{{{generate<noinclude>|1</noinclude>}}}&nbsp;{{Dict|unit}}}}}}{{if||{{{usage|}}}|
Line 19: Line 19:
 
* <tt>ss</tt>: [[Seismic Sensor]]
 
* <tt>ss</tt>: [[Seismic Sensor]]
 
* <tt>wo</tt>: [[Weather Observations]]
 
* <tt>wo</tt>: [[Weather Observations]]
If the value is not known, it adds the page to [[:Category:Unknown science experiment]].}}
+
If the value is not known, it adds the page to [[:Category:Unknown science experiment]].|Not set}}
 
 
 
{{Parameter row|volume|Volume of the part for cargo storage, which is usually given in the part.cfg in the ModuleCargoPart module. If the volume is -1, it is considered as a construction part which cannot be stored ("None").}}
 
{{Parameter row|volume|Volume of the part for cargo storage, which is usually given in the part.cfg in the ModuleCargoPart module. If the volume is -1, it is considered as a construction part which cannot be stored ("None").}}
 
{{Parameter row|generate|The amount of power the part is generating.|Not set}}
 
{{Parameter row|generate|The amount of power the part is generating.|Not set}}

Revision as of 14:25, 1 September 2024

Volume 50 l

{{Infobox/Part}} module for deployed science experiments.

Name Optional Description Default
experiment Yes The experiment done by the instrument. The following values are supported (not case sensitive):

If the value is not known, it adds the page to Category:Unknown science experiment.

Not set
volume No Volume of the part for cargo storage, which is usually given in the part.cfg in the ModuleCargoPart module. If the volume is -1, it is considered as a construction part which cannot be stored ("None").
generate Yes The amount of power the part is generating. Not set
usage Yes The amount ow power the part is consuming. Not set