Difference between revisions of "Template:Infobox/Part/docking port"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Create template for docking ports)
 
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Infobox/Part/preview|</noinclude>
+
<noinclude>{{Infobox/Part/preview|
{{Infobox/Line|[[Radial size{{if lang}}|{{Infobox/Part/Dict|Size}}]]|{{Radial size|{{{size<noinclude>|0</noinclude>}}}}}}}
+
</noinclude>{{Infobox/Line|{{Infobox/Part/Dict|Rotates}}|{{#ifeq: {{lc:{{{rotates|}}}}}|n|{{No}}|{{Yes}}
{{Infobox/Line|{{Infobox/Part/Dict|Rotates}}|{{#ifeq: {{lc:{{{rotates|}}}}}|n|{{No}}|{{Yes}}
+
{{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|{{Formatnum|{{#expr: ((0.02*{{{motorOutput|0<noinclude>800</noinclude>}}}*(2.5/180))/0.75)*{{{usage|0<noinclude>1</noinclude>}}}}}|2}}&nbsp;{{mark|echu}}/{{dict|s}}}}}}}}<noinclude>
{{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|{{Formatnum|{{#expr: ((0.02*{{{motorOutput<noinclude>|800</noinclude>}}}*(2.5/180))/0.75)*{{{usage<noinclude>|1</noinclude>}}}}}|2}}&nbsp;{{mark|echu}}/{{dict|s}}}}}}}}
+
}}
<noinclude>}}
 
  
{{Tl|Infobox/Part}} module for [[Docking ports]].
+
{{Tl|Infobox/Part}} module for [[Docking|Docking ports]].
  
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
{{Parameter row|size|Radial size of the part (uses {{Tl|Radial size}}).}}
+
{{Parameter row|rotates|Can the docking port rotate.|Yes}}
{{Parameter row|rotates|Can the docking port rotate.}}
+
{{Parameter row|motorOutput|The motor output. Used for calculating the consumption.|Not set}}
{{Parameter row|motorOutput|The motor output. <code>maxMotorOutput</code> in the config file.|Hidden if rotates is n}}
+
{{Parameter row|usage|The consumption in {{mark|echu}}/s when the docking port rotates. Hidden if rotates is <tt>n</tt>|Not set}}
{{Parameter row|usage|The consumption in ElectricCharge. <code>rate</code> of ElectricCharge in the config file.|Hidden if rotates is n}}
 
 
}}
 
}}
 
{{Subcategory|modules}}</noinclude>
 
{{Subcategory|modules}}</noinclude>

Latest revision as of 15:33, 9 September 2024

Rotates Yes
Electricity required 0.30 ⚡/s

{{Infobox/Part}} module for Docking ports.

Name Optional Description Default
rotates Yes Can the docking port rotate. Yes
motorOutput Yes The motor output. Used for calculating the consumption. Not set
usage Yes The consumption in ⚡/s when the docking port rotates. Hidden if rotates is n Not set