Difference between revisions of "Template:Infobox/Part/sensor"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Use dict, add experiments, add more params, sort table)
m (Update logic)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Infobox/Part/preview|</noinclude>{{Infobox/Line|{{Dict/science|experiment}}|{{#switch: {{lc:{{{experiment<noinclude>|sf</noinclude>}}}}}
+
<noinclude>{{Infobox/Part/preview|
 +
</noinclude>{{Infobox/Line|{{Dict/science|exp}}|{{#switch: {{lc:{{{experiment<noinclude>|sf</noinclude>}}}}}
 
|mgo={{if lang link|Mystery Goo Observation|{{Dict/science|goo}}}}
 
|mgo={{if lang link|Mystery Goo Observation|{{Dict/science|goo}}}}
 
|ms={{if lang link|Materials Study|{{Dict/science|mat}}}}
 
|ms={{if lang link|Materials Study|{{Dict/science|mat}}}}
Line 12: Line 13:
 
|sf={{if lang link|Surface Feature Report|{{Dict/science|bg-feat}}}}
 
|sf={{if lang link|Surface Feature Report|{{Dict/science|bg-feat}}}}
 
|#default={{{experiment}}}<sup>[''unknown'']</sup>[[Category:Unknown sensor experiment]]}}}}
 
|#default={{{experiment}}}<sup>[''unknown'']</sup>[[Category:Unknown sensor experiment]]}}}}
{{Infobox/Line|{{Infobox/Part/Dict|Collectable}}|{{#ifeq: {{lc:{{{collectable|}}}}}|n|{{No}}|{{Yes}}}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|Collectable}}|{{Boolean|{{{collectable}}}|{{No}}}}}}
{{Infobox/Line|{{Infobox/Part/Dict|Rerunnable}}|{{#ifeq: {{lc:{{{rerunnable|}}}}}|n|{{No}}|{{Yes}}}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|Rerunnable}}|{{Boolean|{{{rerunnable}}}|{{No}}}}}}
{{Infobox/Line|{{Infobox/Part/Dict|Resettable}}|{{#ifeq: {{lc:{{{resettable|}}}}}|n|{{No}}|{{Yes}}}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|Resettable}}|{{Boolean|{{{resettable}}}|{{Yes}}}}}}
{{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|{{#ifeq: {{{electricity|<noinclude>n/a</noinclude>}}}|n/a|{{Dict|None}}|{{{electricity}}}&nbsp;{{mark|echu}}/{{dict|s}}}}}}<noinclude>}}
+
{{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|{{#ifeq: {{{electricity|<noinclude>n/a</noinclude>}}}|n/a|{{Dict|None}}|{{{electricity}}}&nbsp;{{mark|echu}}/{{dict|s}}}}}}<noinclude>
 +
}}
  
 
{{Tl|Infobox/Part}} module for [[environmental sensor]]s.
 
{{Tl|Infobox/Part}} module for [[environmental sensor]]s.
Line 33: Line 35:
 
* <tt>ts</tt>: [[Temperature Scan]]
 
* <tt>ts</tt>: [[Temperature Scan]]
 
If the value is not known, it adds the page to [[:Category:Unknown sensor experiment]].}}
 
If the value is not known, it adds the page to [[:Category:Unknown sensor experiment]].}}
{{Parameter row|collectable|Is the experiment data collectable.}}
+
{{Parameter row|collectable|Is the experiment data collectable.|{{No}}}}
{{Parameter row|rerunnable|Is the experiment rerunnable if there is experiment data in the instrument already.}}
+
{{Parameter row|rerunnable|Is the experiment rerunnable if there is experiment data in the instrument already.|{{No}}}}
{{Parameter row|resettable|Is the instrument resettable after removing the experiment data from it.}}
+
{{Parameter row|resettable|Is the instrument resettable after removing the experiment data from it.|{{Yes}}}}
 
{{Parameter row|electricity|Electricity consumption in {{mark|echu}}/s for sensors with continuous measurement. If set to <tt>n/a</tt> shows “None”.}}
 
{{Parameter row|electricity|Electricity consumption in {{mark|echu}}/s for sensors with continuous measurement. If set to <tt>n/a</tt> shows “None”.}}
 
}}
 
}}
 
{{Subcategory|modules}}</noinclude>
 
{{Subcategory|modules}}</noinclude>

Latest revision as of 07:54, 17 September 2024

Experiment Surface Feature Report
Collectable No
Rerunnable No
Resettable Yes
Electricity required None

{{Infobox/Part}} module for environmental sensors.

Name Optional Description Default
experiment No 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 sensor experiment.

collectable Yes Is the experiment data collectable. No
rerunnable Yes Is the experiment rerunnable if there is experiment data in the instrument already. No
resettable Yes Is the instrument resettable after removing the experiment data from it. Yes
electricity No Electricity consumption in ⚡/s for sensors with continuous measurement. If set to n/a shows “None”.