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)
Line 1: Line 1:
<noinclude>{{Infobox/Part/preview|</noinclude>{{Infobox/Line|{{lang|en=Experiment|pl=Eksperyment|ru=Эксперимент|hu=Kísérlet|tr=Deney}}|{{#switch: {{lc:{{{experiment<noinclude>|mgo</noinclude>}}}}}
+
<noinclude>{{Infobox/Part/preview|</noinclude>{{Infobox/Line|{{Dict/science|experiment}}|{{#switch: {{lc:{{{experiment<noinclude>|sf</noinclude>}}}}}
|mgo={{if lang link|Mystery Goo Observation|ru=Наблюдение за таинственной липкой субстанцией|hu=Mystery Goo Megfigyelés}}
+
|mgo={{if lang link|Mystery Goo Observation|{{Dict/science|goo}}}}
|ms={{if lang link|Materials Study|ru=Изучение вещества|hu=Anyagtanulmány}}
+
|ms={{if lang link|Materials Study|{{Dict/science|mat}}}}
|ts={{if lang link|Temperature Scan|ru=Измерение температуры|hu=Hőmérséklet&shy;mérés}}
+
|ts={{if lang link|Temperature Scan|{{Dict/science|temp}}}}
|aps={{if lang link|Atmospheric Pressure Scan|ru=Измерение атмосферного давления|hu=Légköri Nyomásvizsgálat}}
+
|aps={{if lang link|Atmospheric Pressure Scan|{{Dict/science|pres}}}}
|ss={{if lang link|Seismic Scan|ru=Измерение сейсмоактивности|hu=Szeizmikus Megfigyelés}}
+
|ss={{if lang link|Seismic Scan|{{Dict/science|sei}}}}
|gs={{if lang link|Gravity Scan|ru=Измерение гравитации|hu=Gravitáció Letapogatás}}
+
|gs={{if lang link|Gravity Scan|{{Dict/science|grav}}}}
|aa={{if lang link|Atmosphere Analysis|ru=Анализ атмосферы|hu=Légkörelemzés}}
+
|aa={{if lang link|Atmosphere Analysis|{{Dict/science|atm}}}}
|it={{if lang link|Infrared Telescope}}
+
|it={{if lang link|Infrared Telescope|{{Dict/science|tele}}}}
|mr={{if lang link|Magnetometer Report}}
+
|mr={{if lang link|Magnetometer Report|{{Dict/science|mag}}}}
 +
|cr={{if lang link|Crew Report|{{Dict/science|crew}}}}
 +
|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|ele-req}}|{{#ifeq: {{{electricity|<noinclude>n/a</noinclude>}}}|n/a|{{lang|en=None|de=Keiner|ru=Не требуется|hu=Nincs|tr=Yok}}|{{{electricity}}}&nbsp;{{mark|echu}}/{{dict|s}}}}}}<noinclude>}}
+
{{Infobox/Line|{{Infobox/Part/Dict|Collectable}}|{{#ifeq: {{lc:{{{collectable|}}}}}|n|{{No}}|{{Yes}}}}}}
 +
{{Infobox/Line|{{Infobox/Part/Dict|Rerunnable}}|{{#ifeq: {{lc:{{{rerunnable|}}}}}|n|{{No}}|{{Yes}}}}}}
 +
{{Infobox/Line|{{Infobox/Part/Dict|Resettable}}|{{#ifeq: {{lc:{{{resettable|}}}}}|n|{{No}}|{{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>}}
  
 
{{Tl|Infobox/Part}} module for [[environmental sensor]]s.
 
{{Tl|Infobox/Part}} module for [[environmental sensor]]s.
Line 16: Line 21:
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
 
{{Parameter row|experiment|The experiment done by the instrument. The following values are supported (not case sensitive):
 
{{Parameter row|experiment|The experiment done by the instrument. The following values are supported (not case sensitive):
* <tt>mgo</tt>: [[Mystery Goo Observation]]
+
* <tt>aa</tt>: [[Atmosphere Analysis]]
* <tt>ms</tt>: [[Materials Study]]
 
* <tt>ts</tt>: [[Temperature Scan]]
 
 
* <tt>aps</tt>: [[Atmospheric Pressure Scan]]
 
* <tt>aps</tt>: [[Atmospheric Pressure Scan]]
* <tt>ss</tt>: [[Seismic Scan]]
+
* <tt>cr</tt>: [[Crew Report]]
 
* <tt>gs</tt>: [[Gravity Scan]]
 
* <tt>gs</tt>: [[Gravity Scan]]
* <tt>aa</tt>: [[Atmosphere Analysis]]
 
 
* <tt>it</tt>: [[Infrared Telescope]]
 
* <tt>it</tt>: [[Infrared Telescope]]
 +
* <tt>mgo</tt>: [[Mystery Goo Observation]]
 
* <tt>mr</tt>: [[Magnetometer Report]]
 
* <tt>mr</tt>: [[Magnetometer Report]]
 +
* <tt>ms</tt>: [[Materials Study]]
 +
* <tt>sf</tt>: [[Surface Feature Report]]
 +
* <tt>ss</tt>: [[Seismic 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|electricity|Electricity consumption in {{mark|echu}}/s for sensors with continuous measurement. If set to <tt>n/a</tt> shows “None”}}
+
{{Parameter row|collectable|Is the experiment data collectable.}}
 +
{{Parameter row|rerunnable|Is the experiment rerunnable if there is experiment data in the instrument already.}}
 +
{{Parameter row|resettable|Is the instrument resettable after removing the experiment data from it.}}
 +
{{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>

Revision as of 12:50, 1 September 2024

experiment Surface Feature Report
Collectable Yes
Rerunnable Yes
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 No Is the experiment data collectable.
rerunnable No Is the experiment rerunnable if there is experiment data in the instrument already.
resettable No Is the instrument resettable after removing the experiment data from it.
electricity No Electricity consumption in ⚡/s for sensors with continuous measurement. If set to n/a shows “None”.