Difference between revisions of "Template:Infobox/Experiment"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (ArnePeirs moved page Template:Infobox/Part/experiment to Template:Infobox/Experiment without leaving a redirect: Is more a separate infobox then a submodule of Infobox/Part)
(Make a proper infobox)
 
Line 1: Line 1:
<noinclude>{{Box|type=warning|Although this appears to be a infobox part module, it shouldn't be used for sensors and experiments because the data given here depend on the scientific experiment and not on the part (the part simply chooses which scientific experiment it can conduct).
+
<includeonly>{{Infobox
 
+
|name={{Dict/science|{{{name|{{BASEPAGENAME}}}}}}}
Don't delete this, because it might be used as a infobox for the experiments themselves.}}{{Infobox/Part/preview|</noinclude>{{Infobox/Line|Value|{{{base value<noinclude>|10</noinclude>}}}|{{#ifeq: {{{base value}}}|{{#if: {{{maximum value|<noinclude>12</noinclude>}}}|{{{maximum value}}}|{{{base value}}}}}||{{{maximum value<noinclude>|12</noinclude>}}}}}|type1=base|type2=maximum}}
+
|file=none
{{Infobox/Line|Data scale|{{{data scale<noinclude>|1</noinclude>}}}}}
+
|lines=
{{Infobox/Line|Transmission efficiency|{{#expr: {{{efficiency<noinclude>|0.3</noinclude>}}}*100 round 1}}&nbsp;%}}
+
{{Infobox/Line|Value|{{{base value}}}|{{#ifeq: {{{base value}}}|{{#if: {{{maximum value|}}}|{{{maximum value}}}|{{{base value}}}}}||{{{maximum value}}}}}|type1=base|type2=maximum}}
{{Infobox/Line|{{Infobox/Kerbal/bar|{{{efficiency<noinclude>|0.3</noinclude>}}}}}}}<noinclude>}}
+
{{Infobox/Line|Data scale|{{{data scale}}}}}
 
+
{{Infobox/Line|Transmission efficiency|{{#expr: {{{efficiency}}} * 100 round 1}}&nbsp;%}}
{{Tl|Infobox/Part}} module for experiments like [[environmental sensor]]s. This template does not support the enhancements generated by [[lab]]s because those are specific for a lab.
+
{{Infobox/Line|{{Infobox/Kerbal/bar|{{{efficiency}}}}}}}
 
+
}}</includeonly><noinclude>
{{Parameter table|name=text|parameters=
+
{{Documentation}}
{{Parameter row|base value|Base value of the experiment.}}
+
</noinclude>
{{Parameter row|maximum value|Maximum value of the experiment. Doesn't need to be set if the same as the base value.|Not set/Hidden}}
 
{{Parameter row|data scale|Data scale of the experiment.}}
 
{{Parameter row|efficiency|2=Transmission efficiency value of the experiment given as a value between 0 and 1 (= 100%).}}
 
}}
 
{{Subcategory|subtemplates}}</noinclude>
 

Latest revision as of 17:10, 21 September 2024

Documentation icon Template documentation[view] [edit] [history] [purge]Pages that link to Template:Infobox/Experiment
Crew Report
Value (base) 10
(maximum) 12
Data scale 1
Transmission efficiency 30 %

Infobox for science experiments like environmental sensors. This template does not support the enhancements generated by labs because those are specific for a lab.

Parameters

Name Optional Description Default
name Yes Name of the experiment. Uses {{Dict/science}} for translating the science experiment. {{BASEPAGENAME}}
base value No Base value of the experiment.
maximum value Yes Maximum value of the experiment. Doesn't need to be set if the same as the base value. Not set/Hidden
data scale No Data scale of the experiment.
efficiency No Transmission efficiency value of the experiment given as a value between 0 and 1.