Difference between revisions of "Template:Infobox/Part/torque"
From Kerbal Space Program Wiki
< Template:Infobox | Part
SlayerGames (talk | contribs) m (French translations improved) |
m (Use dict, use named parameters, update logic) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Infobox/Part/preview|</noinclude>{{ | + | <noinclude>{{Infobox/Part/preview|</noinclude> |
− | {{Infobox/Line|{{ | + | {{#ifexpr: {{{pitch torque|0}}}={{{yaw torque|0}}} and {{{yaw torque|0}}}={{{roll torque|0<noinclude>1</noinclude>}}}|{{Infobox/Line|{{Infobox/Part/Dict|torque}}|{{{pitch torque}}} {{dict|k}}{{dict|N}}·{{dict|m}}}}| |
− | {{Infobox/Line|{{ | + | {{Infobox/Line|{{Infobox/Part/Dict|pitch torque}}|{{{pitch torque<noinclude>|15</noinclude>}}} {{dict|k}}{{dict|N}}·{{dict|m}}}} |
− | {{Infobox/Line|{{Infobox/Part/Dict| | + | {{Infobox/Line|{{Infobox/Part/Dict|yaw torque}}|{{{yaw torque<noinclude>|6</noinclude>}}} {{dict|k}}{{dict|N}}·{{dict|m}}}} |
− | {{!}} rowspan="2" style="padding: 0px 2px 0px 0px;" {{!}} <abbr title="Maximum per axis: {{#expr: {{#if: {{{ | + | {{Infobox/Line|{{Infobox/Part/Dict|roll torque}}|{{{roll torque<noinclude>|6</noinclude>}}} {{dict|k}}{{dict|N}}·{{dict|m}}}}}} |
+ | {{Infobox/Line|{{Infobox/Part/Dict|ele-req}}|2=style="padding:0px;" {{!}} {{(!}} style="border-spacing: 0px; border-collapse: collapse;" | ||
+ | {{!}} rowspan="2" style="padding: 0px 2px 0px 0px;" {{!}} <abbr title="Maximum per axis: {{#expr: {{#if: {{{usage|}}}|{{{usage}}}|{{{pitch torque<noinclude>|15</noinclude>}}} * {{#switch: {{lc:{{{type|}}}}} | ||
|dedicated=0.015 | |dedicated=0.015 | ||
|module | |module | ||
− | |#default=0.1}}}}}} {{mark|echu}}/{{dict|s}}">{{Formatnum|{{#if: {{{ | + | |#default=0.1}}}}}} {{mark|echu}}/{{dict|s}}">{{Formatnum|{{#if: {{{usage|}}}|{{#expr: {{{usage}}}/{{{pitch torque}}}}}|{{#switch: {{lc:{{{type|}}}}} |
|dedicated=0.015 | |dedicated=0.015 | ||
|module | |module | ||
Line 18: | Line 20: | ||
{{Parameter table|name=both|parameters= | {{Parameter table|name=both|parameters= | ||
− | {{Parameter row| | + | {{Parameter row|pitch torque|Maximum pitch torque in kN·m.}} |
− | {{Parameter row| | + | {{Parameter row|yaw torque|Maximum yaw torque in kN·m.}} |
− | {{Parameter row| | + | {{Parameter row|roll torque|Maximum roll torque in kN·m.}} |
− | {{Parameter row| | + | {{Parameter row|usage|The maximum amount of power drained by the reaction wheels in {{mark|echu}}/s.|<tt>{{{torque}}}</tt> × <tt>{{{type}}}</tt>}} |
− | |||
{{Parameter row|type|Default electric usages depending of the type of the part. The value is case insensitive. | {{Parameter row|type|Default electric usages depending of the type of the part. The value is case insensitive. | ||
* Dedicated: 0.015 {{mark|echu}}/(s·kN·m) | * Dedicated: 0.015 {{mark|echu}}/(s·kN·m) |
Revision as of 00:22, 4 September 2024
Pitch torque | 15 kN·m | ||||
Yaw torque | 6 kN·m | ||||
Roll torque | 6 kN·m | ||||
Electricity required |
|
This template adds four lines about the torque properties. The electricity requirement in the part configuration is usually given as the maximum amount of electricity drained in one axis. This value is required for the second parameter and not the electricity required per second and per kilonewton–meter.
#/Name | Optional | Description | Default |
---|---|---|---|
pitch torque | No | Maximum pitch torque in kN·m. | |
yaw torque | No | Maximum yaw torque in kN·m. | |
roll torque | No | Maximum roll torque in kN·m. | |
usage | Yes | The maximum amount of power drained by the reaction wheels in ⚡/s. | {{{torque}}} × {{{type}}} |
type | Yes | Default electric usages depending of the type of the part. The value is case insensitive.
|
module |