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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (translations has been moved to a separate dictionary)
m (Update logic)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>{{Infobox/Part/preview|</noinclude>
+
<noinclude>{{Infobox/Part/preview|
{{Infobox/Line|{{Infobox/Part/Dict|ele-gen}}|2={{{electricity<noinclude>|2</noinclude>}}}&nbsp;{{mark|echu}}/{{dict|s}}&nbsp;{{#tag:ref|{{Infobox/Part/Dict|energy output note}}|group="{{{nref|N}}}"}}}}
+
</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}}}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|tracking}}|{{Boolean|{{{tracking}}}|{{Yes}}}}}}{{if||{{{layout|<noinclude>2×3</noinclude>}}}|
{{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>}}}}}
+
{{Infobox/Line|<hr>{{#tag:references}}}}}}
}}<noinclude>
 
{{Infobox/Line|1=
 
<hr>
 
{{#tag:references||group="N"}}}}}}
 
  
 
{{Tl|Infobox/Part}} module for [[Electric_charge#Solar_panels|solar panels]].
 
{{Tl|Infobox/Part}} module for [[Electric_charge#Solar_panels|solar panels]].
Line 14: 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}}
{{Parameter row|nref|Reference group for the note about the distance.|<tt>N</tt>}}
 
 
}}
 
}}
 
{{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