Difference between revisions of "Template:Infobox/Part/solar panel"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Simplify refs, formatting)
m (Update logic)
 
Line 1: Line 1:
 
<noinclude>{{Infobox/Part/preview|
 
<noinclude>{{Infobox/Part/preview|
 
</noinclude>{{Infobox/Line|{{Infobox/Part/Dict|ele-gen}}|{{{electricity<noinclude>|2</noinclude>}}}&nbsp;{{mark|echu}}/{{dict|s}}&nbsp;{{#tag:ref|{{Infobox/Part/Dict|energy output note}}}}}}
 
</noinclude>{{Infobox/Line|{{Infobox/Part/Dict|ele-gen}}|{{{electricity<noinclude>|2</noinclude>}}}&nbsp;{{mark|echu}}/{{dict|s}}&nbsp;{{#tag:ref|{{Infobox/Part/Dict|energy output note}}}}}}
{{Infobox/Line|{{Infobox/Part/Dict|retractable}}|{{#ifeq: {{lc:{{{retractable|y}}}}}|y|{{Yes}}|{{No}}}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|retractable}}|{{Boolean|{{{retractable}}}|{{Yes}}}}}}
{{Infobox/Line|{{Infobox/Part/Dict|tracking}}|{{#ifeq: {{lc:{{{tracking|y}}}}}|y|{{Yes}}|{{No}}}}}}{{if||{{{layout|<noinclude>2×3</noinclude>}}}|
+
{{Infobox/Line|{{Infobox/Part/Dict|tracking}}|{{Boolean|{{{tracking}}}|{{Yes}}}}}}{{if||{{{layout|<noinclude>2×3</noinclude>}}}|
 
{{Infobox/Line|{{Infobox/Part/Dict|layout}}|{{{layout<noinclude>|2×3</noinclude>}}}}}}}<noinclude>
 
{{Infobox/Line|{{Infobox/Part/Dict|layout}}|{{{layout<noinclude>|2×3</noinclude>}}}}}}}<noinclude>
 
{{Infobox/Line|<hr>{{#tag:references}}}}}}
 
{{Infobox/Line|<hr>{{#tag:references}}}}}}
Line 10: Line 10:
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
 
{{Parameter row|electricity|Electricity generation in {{mark|echu}}/s}}
 
{{Parameter row|electricity|Electricity generation in {{mark|echu}}/s}}
{{Parameter row|retractable|Whether the solar panels are retractable. Must be ''y'' in that case, any other is interpreted as ''not retractable''.|<tt>y</tt>}}
+
{{Parameter row|retractable|Whether the solar panels are retractable.|{{Yes}}}}
{{Parameter row|tracking|Whether the solar panels are tracking the sun. Must be ''y'' in that case, any other is interpreted as ''not tracking''.|<tt>y</tt>}}
+
{{Parameter row|tracking|Whether the solar panels are tracking the sun.|{{Yes}}}}
 
{{Parameter row|layout|Layout with [[Terminology#zenith|zenith]] axis first.|Not set/hidden}}
 
{{Parameter row|layout|Layout with [[Terminology#zenith|zenith]] axis first.|Not set/hidden}}
 
}}
 
}}
 
{{Subcategory|modules}}</noinclude>
 
{{Subcategory|modules}}</noinclude>

Latest revision as of 08:38, 17 September 2024

Electricity generated 2 ⚡/s [1]
Retractable Yes
Tracking Yes
Layout 2×3

  1. Energy output depends on the distance and angle to the Sun. The value is achieved at Kerbin's distance, with the panel pointed directly at the Sun.

{{Infobox/Part}} module for solar panels.

Name Optional Description Default
electricity No Electricity generation in ⚡/s
retractable Yes Whether the solar panels are retractable. Yes
tracking Yes Whether the solar panels are tracking the sun. Yes
layout Yes Layout with zenith axis first. Not set/hidden