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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Update crew template)
 
(25 intermediate revisions by 6 users not shown)
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|
{{#if: {{{power consumption|}}}|
+
</noinclude>{{#ifexpr: {{{crew|0<noinclude>3</noinclude>}}}>0|{{Infobox/Part/crew|capacity={{{crew<noinclude>|3</noinclude>}}}|required={{{crew req|1}}}}}}}
{{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|2=<abbr title="{{#expr: {{{electricity-stored|1}}}/({{{power consumption}}} * 60) round 1}}&nbsp;m">{{Formatnum|{{{electricity|{{#expr: ({{{power consumption}}} * 60)}}}}}|2}}</abbr>&nbsp;E/m}}|
+
{{#if: {{{power consumption|<noinclude>0.05</noinclude>}}}|
{{Infobox/Part/crew|{{{crew<noinclude>|3</noinclude>}}}|{{{crew req|<noinclude>1</noinclude>}}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|{{Formatnum|{{#expr: {{{power consumption<noinclude>|0.05</noinclude>}}}*60}}|2}}&nbsp;{{mark|echu}}/{{dict|min}}}}}}<noinclude>
{{Infobox/Line|{{if lang link|Monopropellant}}|{{{mp<noinclude>|30</noinclude>}}}&nbsp;L}}}}
+
}}
<noinclude>}}
 
  
{{Tl|Infobox/Part}} module for [[command module]]s.
+
{{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 for the module. Not required if <tt>{{{power consumption}}}</tt> is set.|<tt>0</tt>}}
{{Parameter Row|pitch torque|Maximum pitch torque.|<tt>{{{torque}}}</tt>}}
+
{{Parameter row|crew req|Required crew to make the module operable. Not required if <tt>{{{power consumption}}}</tt> is set.|<tt>1</tt>}}
{{Parameter Row|yaw torque|Maximum yaw torque.|<tt>{{{torque}}}</tt>}}
+
{{Parameter row|power consumption|Electric power required to run the module in {{mark|echu}}/s.|Not set/Hidden}}
{{Parameter Row|roll torque|Maximum roll torque.|<tt>{{{torque}}}</tt>}}
 
{{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}}
 
{{Parameter Row|power consumption|Electric power required to run the probe in E/s.|Not set/Hidden}}
 
{{Parameter Row|crew|Crew capacity. Not required if {{{power consumption}}} is not empty.}}
 
{{Parameter Row|crew req|Required crew to be operable. Not required if {{{power consumption}}} is not empty.|<tt>1</tt>}}
 
{{Parameter Row|mp|Monopropellant storage for EVA. Must be given also in the main template. Not required if {{{power consumption}}} is not empty.}}
 
 
}}
 
}}
 
{{Subcategory|modules}}</noinclude>
 
{{Subcategory|modules}}</noinclude>

Latest revision as of 16:04, 13 September 2024

Crew capacity (maximum) Crew
(required) 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 for the module. Not required if {{{power consumption}}} is set. 0
crew req Yes Required crew to make the module operable. Not required if {{{power consumption}}} is set. 1
power consumption Yes Electric power required to run the module in ⚡/s. Not set/Hidden