Difference between revisions of "Template:Infobox/Part/servo"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Use dict)
m (Renamed params and removed unused params)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>{{Infobox/Part/preview|</noinclude>
+
<noinclude>{{Infobox/Part/preview|
{{#if: {{{usage|}}}|
+
</noinclude>{{#if: {{{usage|}}}|{{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|{{Formatnum|{{#expr: ({{{baseRate<noinclude>|0.01</noinclude>}}}*(100 * 0.01)*{{{motorOutput<noinclude>|100</noinclude>}}}/{{{efficiency<noinclude>|0.75</noinclude>}}})*{{{usage|1}}}}}|1}}&nbsp;{{mark|echu}}/{{dict|s}}}}|{{Infobox/Line|{{Infobox/Part/Dict|Consumption}}|{{Formatnum|{{#expr: ({{{baseRate<noinclude>|0.1</noinclude>}}}*(100 * 0.01)*{{{motorOutput<noinclude>|150</noinclude>}}}/{{{efficiency<noinclude>|0.4</noinclude>}}})*{{{lf|0.01}}}}}|1}}&nbsp;{{mark|fuelu}}/{{dict|s}}}}
{{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|{{Formatnum|{{#expr: ({{{base<noinclude>|0.01</noinclude>}}}*(100 * 0.00999999977648258)*{{{motor<noinclude>|100</noinclude>}}}/{{{efficiency<noinclude>|0.75</noinclude>}}})*{{{usage|1}}}}}|1}}&nbsp;{{mark|echu}}/{{dict|s}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|Consumption-air}}|{{Formatnum|{{#expr: ({{{baseRate<noinclude>|0.1</noinclude>}}}*(100 * 0.01)*{{{motorOutput<noinclude>|150</noinclude>}}}/{{{efficiency<noinclude>|0.4</noinclude>}}})*{{{ia|0.5}}}}}|1}}&nbsp;{{mark|airu}}/{{dict|s}}}}}}<noinclude>
|
 
{{Infobox/Line|{{Infobox/Part/Dict|Consumption}}|{{Formatnum|{{#expr: ({{{base<noinclude>|0.1</noinclude>}}}*(100 * 0.00999999977648258)*{{{motor<noinclude>|150</noinclude>}}}/{{{efficiency<noinclude>|0.4</noinclude>}}})*{{{lf|0.01}}}}}|1}}&nbsp;{{mark|fuelu}}/{{dict|s}}}}
 
{{Infobox/Line|{{Infobox/Part/Dict|Consumption-air}}|{{Formatnum|{{#expr: ({{{base<noinclude>|0.1</noinclude>}}}*(100 * 0.00999999977648258)*{{{motor<noinclude>|150</noinclude>}}}/{{{efficiency<noinclude>|0.4</noinclude>}}})*{{{ia|0.5}}}}}|1}}&nbsp;{{mark|airu}}/{{dict|s}}}}
 
 
}}
 
}}
<noinclude>}}
 
  
 
{{Tl|Infobox/Part}} module for [[Hydraulic cylinders]], hinges, rotors and rotation servos.
 
{{Tl|Infobox/Part}} module for [[Hydraulic cylinders]], hinges, rotors and rotation servos.
  
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
{{Parameter row|base|The consumption rate of the motor. <code>baseResourceConsumptionRate</code> in the config file.}}
+
{{Parameter row|baseRate|The consumption rate of the motor. <code>baseResourceConsumptionRate</code> in the config file.}}
{{Parameter row|motor|The motor output. <code>maxMotorOutput</code> in the config file.}}
+
{{Parameter row|motorOutput|The motor output. <code>maxMotorOutput</code> in the config file.}}
{{Parameter row|motorCost|The cost of the motor size. <code>motorizedCostPerDriveUnit</code> in the config file.}}
 
{{Parameter row|motorMass|The mass of the motor size. <code>motorizedMassPerKN</code> in the config file.}}
 
 
{{Parameter row|efficiency|The efficiency of the motor. <code>efficiency</code> in the config file.}}
 
{{Parameter row|efficiency|The efficiency of the motor. <code>efficiency</code> in the config file.}}
 
{{Parameter row|usage|The consumption in ElectricCharge. <code>rate</code> of ElectricCharge in the config file.|1}}
 
{{Parameter row|usage|The consumption in ElectricCharge. <code>rate</code> of ElectricCharge in the config file.|1}}

Latest revision as of 08:19, 19 September 2024

Fuel consumption 0.4 Units of fuel/s
Intake air consumption 18.8 Air unit/s

{{Infobox/Part}} module for Hydraulic cylinders, hinges, rotors and rotation servos.

Name Optional Description Default
baseRate No The consumption rate of the motor. baseResourceConsumptionRate in the config file.
motorOutput No The motor output. maxMotorOutput in the config file.
efficiency No The efficiency of the motor. efficiency in the config file.
usage Yes The consumption in ElectricCharge. rate of ElectricCharge in the config file. 1
lf Yes The consumption in LiquidFuel. rate of LiquidFuel in the config file. 0
ia Yes The consumption in IntakeAir. rate of IntakeAir in the config file. 0