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

From Kerbal Space Program Wiki
Jump to: navigation, search
(Localization)
m (Show pluralization of mode correctly, only show other modes when the paramater is given)
Line 1: Line 1:
<noinclude>
+
<noinclude>{{Infobox/Part/preview|
{{Infobox/Part/preview|</noinclude>
+
</noinclude>{{Infobox/Line|{{Infobox/Part/Dict|fov}}|{{{min-fov<noinclude>|5</noinclude>}}}&nbsp;°|{{{max-fov|<noinclude>10</noinclude>}}}&nbsp;°|type1=min|type2=max}}
{{Infobox/Line|{{Infobox/Part/Dict|fov}}|{{{min-FoV<noinclude>|5</noinclude>}}}&nbsp;°|{{{max-FoV|<noinclude>10</noinclude>}}}&nbsp;°|type1=min|type2=max}}
+
{{Infobox/Line|{{Infobox/Part/Dict|detection}}|{{#expr: {{{detect<noinclude>|0.3</noinclude>}}} * 100 round 0}}&nbsp;%}}
{{Infobox/Line|{{Infobox/Part/Dict|detection}}|{{#expr: {{{detect<noinclude>|0.3</noinclude>}}} * 100 round 0}}&nbsp;%|}}
 
 
{{Infobox/Line|{{Infobox/Part/Dict|enhancable}}|{{#ifeq: {{lc:{{{enhance<noinclude>|y</noinclude>}}}}}|y|{{Yes}}|{{No}}}}}}
 
{{Infobox/Line|{{Infobox/Part/Dict|enhancable}}|{{#ifeq: {{lc:{{{enhance<noinclude>|y</noinclude>}}}}}|y|{{Yes}}|{{No}}}}}}
{{Infobox/Line|{{#if: {{{mode2}}}|{{Infobox/Part/Dict|modes}}|{{Infobox/Part/Dict|mode}}}}|{{#switch: {{lc:{{{mode1<noinclude>|b</noinclude>}}}}}|b={{Dict|biome}}|t={{Dict|terrain}}|r={{Dict|resources}}|#default=N/A}}}}
+
{{Infobox/Line|{{#if: {{{mode2|<noinclude>t</noinclude>}}}|{{Infobox/Part/Dict|modes}}|{{Infobox/Part/Dict|mode}}}}|{{#switch: {{lc:{{{mode<noinclude>|b</noinclude>}}}}}|b={{Dict|biome}}|t={{Dict|terrain}}|r={{Dict|resources}}|#default=N/A}}}}{{if||{{{mode2|<noinclude>t</noinclude>}}}|
{{Infobox/Line||{{#switch: {{lc:{{{mode2<noinclude>|t</noinclude>}}}}}|b={{Dict|biome}}|t={{Dict|terrain}}|r={{Dict|resources}}|#default=}}}}
+
{{Infobox/Line||{{#switch: {{lc:{{{mode2<noinclude>|t</noinclude>}}}}}|b={{Dict|biome}}|t={{Dict|terrain}}|r={{Dict|resources}}|#default=}}}}{{if||{{{mode3|<noinclude>r</noinclude>}}}|
{{Infobox/Line||{{#switch: {{lc:{{{mode3<noinclude>|r</noinclude>}}}}}|b={{Dict|biome}}|t={{Dict|terrain}}|r={{Dict|resources}}|#default=}}}}
+
{{Infobox/Line||{{#switch: {{lc:{{{mode3<noinclude>|r</noinclude>}}}}}|b={{Dict|biome}}|t={{Dict|terrain}}|r={{Dict|resources}}|#default=}}}}}}}}<noinclude>
<noinclude>}}
+
}}
  
 
{{Tl|Infobox/Part}} module for [[KerbNet]] access.
 
{{Tl|Infobox/Part}} module for [[KerbNet]] access.
  
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
{{Parameter row|min-FoV|Minimum Field of View.}}
+
{{Parameter row|min-fov|Minimum Field of View.}}
{{Parameter row|max-FoV|Maximum Field of View.}}
+
{{Parameter row|max-fov|Maximum Field of View.}}
 
{{Parameter row|detect|Percentage to detect anomalies, expressed in a decimal.}}
 
{{Parameter row|detect|Percentage to detect anomalies, expressed in a decimal.}}
{{Parameter row|enhance|Wether the scanning can be enhanced or not.|Not set/Hidden}}
+
{{Parameter row|enhance|Whether the scanning can be enhanced or not.|No}}
{{Parameter row|mode1|In which modes can be scanned ('''b'''iome, '''t'''errain, '''r'''esources).}}
+
{{Parameter row|mode|In which modes can be scanned ('''b'''iome, '''t'''errain, '''r'''esources).}}
 
{{Parameter row|mode2|In which modes can be scanned ('''b'''iome, '''t'''errain, '''r'''esources).|Not set/Hidden}}
 
{{Parameter row|mode2|In which modes can be scanned ('''b'''iome, '''t'''errain, '''r'''esources).|Not set/Hidden}}
 
{{Parameter row|mode3|In which modes can be scanned ('''b'''iome, '''t'''errain, '''r'''esources).|Not set/Hidden}}
 
{{Parameter row|mode3|In which modes can be scanned ('''b'''iome, '''t'''errain, '''r'''esources).|Not set/Hidden}}

Revision as of 20:10, 9 September 2024

Field of View (min) 5 °
(max) 10 °
Anomaly detection 30 %
enhancable Yes
Modes Biome
Terrain
Resources

{{Infobox/Part}} module for KerbNet access.

Name Optional Description Default
min-fov No Minimum Field of View.
max-fov No Maximum Field of View.
detect No Percentage to detect anomalies, expressed in a decimal.
enhance Yes Whether the scanning can be enhanced or not. No
mode No In which modes can be scanned (biome, terrain, resources).
mode2 Yes In which modes can be scanned (biome, terrain, resources). Not set/Hidden
mode3 Yes In which modes can be scanned (biome, terrain, resources). Not set/Hidden