Difference between revisions of "Template:Infobox/Part/command module"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (remove blank line)
(Remove torque and monopropellant because not all modules have them. Use the appropriate templates)
Line 1: Line 1:
<noinclude>{{Infobox/Part/preview|</noinclude>{{Infobox/Part/torque|{{{torque<noinclude>|12</noinclude>}}}|{{{torque drain|}}}|{{{pitch torque|}}}|{{{yaw torque|}}}|{{{roll torque|}}}|type=Module}}
+
<noinclude>{{Infobox/Part/preview|</noinclude>
{{#if: {{{power consumption|}}}|
+
{{#ifexpr: {{{crew|0<noinclude>3</noinclude>}}}>0|{{Infobox/Part/crew|{{{crew<noinclude>|3</noinclude>}}}|{{{crew req|1}}}}}}}
{{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|{{Formatnum|{{#expr: ({{{power consumption}}} * 60)}}|2}}&nbsp;{{mark|echu}}/{{dict|min}}}}}}{{if|expr|{{{crew|0<noinclude>3</noinclude>}}}>0|
+
{{#if: {{{power consumption|<noinclude>0.05</noinclude>}}}|
{{Infobox/Part/crew|{{{crew<noinclude>|3</noinclude>}}}|{{{crew req|1}}}}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|{{Formatnum|{{#expr: {{{power consumption<noinclude>|0.05</noinclude>}}}*60}}|2}}&nbsp;{{mark|echu}}/{{dict|min}}}}}}<noinclude>}}
{{Infobox/Part/tank|mp={{{mp|<noinclude>30</noinclude>}}}}}<noinclude>}}
 
  
 
{{Tl|Infobox/Part}} module for [[command module]]s. Either <code>power consumption</code> or <code>crew</code> must be set.
 
{{Tl|Infobox/Part}} module for [[command module]]s. Either <code>power consumption</code> or <code>crew</code> must be set.
  
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
{{Parameter row|torque|Maximum SAS torque}}
+
{{Parameter row|crew|Crew capacity. Not required if <tt>{{{power consumption}}}</tt> is set.|<tt>0</tt>}}
{{Parameter row|pitch torque|Maximum pitch torque.|<tt>{{{torque}}}</tt>|1}}
+
{{Parameter row|crew req|Required crew to be operable. Not required if <tt>{{{power consumption}}}</tt> is set.|<tt>1</tt>}}
{{Parameter row|yaw torque|Maximum yaw torque.|<tt>{{{torque}}}</tt>|1}}
 
{{Parameter row|roll torque|Maximum roll torque.|<tt>{{{torque}}}</tt>|1}}
 
{{Parameter row|torque drain|The amount of power drained by the reaction wheels. Automatically calculated with <tt>type</tt> set to <tt>Module</tt> of {{Tl|Infobox/Part/torque}}.|Not set|1}}
 
 
{{Parameter row|power consumption|Electric power required to run the probe in {{mark|echu}}/s.|Not set/Hidden}}
 
{{Parameter row|power consumption|Electric power required to run the probe in {{mark|echu}}/s.|Not set/Hidden}}
{{Parameter row|crew|Crew capacity. Not required if <tt>{{{power consumption}}}</tt> is set.}}
 
{{Parameter row|crew req|Required crew to be operable. Not required if <tt>{{{power consumption}}}</tt> is set.|<tt>1</tt>}}
 
{{Parameter row|mp|Monopropellant storage for EVA. Must be given also in the main template. Not required if <tt>{{{power consumption}}}</tt> is set.|Not set/Hidden}}
 
 
}}
 
}}
 
{{Subcategory|modules}}</noinclude>
 
{{Subcategory|modules}}</noinclude>

Revision as of 23:11, 3 September 2024

Crew capacity (max) {{{capacity}}} Crew
Electricity required 3.00 ⚡/min

{{Infobox/Part}} module for command modules. Either power consumption or crew must be set.

Name Optional Description Default
crew Yes Crew capacity. Not required if {{{power consumption}}} is set. 0
crew req Yes Required crew to be operable. Not required if {{{power consumption}}} is set. 1
power consumption Yes Electric power required to run the probe in ⚡/s. Not set/Hidden