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

From Kerbal Space Program Wiki
Jump to: navigation, search
(+different default values;)
(+preview table; +show usage unit nicer; *simplify calculation;)
Line 1: Line 1:
<includeonly>{{Infobox/Line|{{lang|en=Pitch torque|de=Nickdrehmoment|pl=Siła Pułapu|zh-cn=俯仰扭矩|ko=피치 회전력}}|{{#if: {{{3|}}}|{{{3}}}|{{{1}}}}}&nbsp;kN·m}}
+
<noinclude>{{Infobox/Part/preview|</noinclude>{{Infobox/Line|{{lang|en=Pitch torque|de=Nickdrehmoment|pl=Siła Pułapu|zh-cn=俯仰扭矩|ko=피치 회전력}}|{{#if: {{{3|}}}|{{{3}}}|{{{1<noinclude>|42</noinclude>}}}}}&nbsp;kN·m}}
{{Infobox/Line|{{lang|en=Yaw torque|de=Gierdrehmoment|pl=Siła wychylenia|zh-cn=偏航扭矩|ko=요 회전력}}|{{#if: {{{4|}}}|{{{4}}}|{{{1}}}}}&nbsp;kN·m}}
+
{{Infobox/Line|{{lang|en=Yaw torque|de=Gierdrehmoment|pl=Siła wychylenia|zh-cn=偏航扭矩|ko=요 회전력}}|{{#if: {{{4|}}}|{{{4}}}|{{{1<noinclude>|42</noinclude>}}}}}&nbsp;kN·m}}
{{Infobox/Line|{{lang|en=Roll torque|de=Rolldrehmoment|pl=Siła obrotu|zh-cn=翻滚扭矩|ko=롤 회전력}}|{{#if: {{{5|}}}|{{{5}}}|{{{1}}}}}&nbsp;kN·m}}
+
{{Infobox/Line|{{lang|en=Roll torque|de=Rolldrehmoment|pl=Siła obrotu|zh-cn=翻滚扭矩|ko=롤 회전력}}|{{#if: {{{5|}}}|{{{5}}}|{{{1<noinclude>|42</noinclude>}}}}}&nbsp;kN·m}}
{{Infobox/Line|{{Infobox/Part/Dict|torque req}}|2=<abbr title="Maximum per axis: {{#expr: {{#if: {{{2|}}}|{{{2}}}|{{{1}}} * {{#switch: {{lc:{{{type|}}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|torque 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: {{{2|}}}|{{{2}}}|{{{1<noinclude>|42</noinclude>}}} * {{#switch: {{lc:{{{type|}}}}}
 
|dedicated=0.015
 
|dedicated=0.015
 
|module
 
|module
|#default=0.1}}}}}} E/s">{{#expr: {{#if: {{{2|}}}|{{{2}}}|{{{1}}} * {{#switch: {{lc:{{{type|}}}}}
+
|#default=0.1}}}}}} E/s">{{#if: {{{2|}}}|{{#expr: {{{2}}}/{{{1}}}}}|{{#switch: {{lc:{{{type|}}}}}
 
|dedicated=0.015
 
|dedicated=0.015
 
|module
 
|module
|#default=0.1}}}}/{{{1}}}}}&nbsp;E/(s·kN·m)</abbr>}}</includeonly><noinclude>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.
+
|#default=0.1}}}}</abbr>
 +
{{!}} style="text-align:center;border-bottom:1px solid #000;font-size:x-small;padding:0px;" {{!}} E
 +
{{!}}-
 +
{{!}} style="text-align:center;font-size:x-small;padding:0px;" {{!}} s·kN·m
 +
{{!)}}}}<noinclude>}}
 +
 
 +
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.
  
 
{{Parameter Table|name=both|parameters=
 
{{Parameter Table|name=both|parameters=

Revision as of 21:38, 8 January 2014

Pitch torque 42 kN·m
Yaw torque 42 kN·m
Roll torque 42 kN·m
torque req
0.1 E
s·kN·m

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.

Template:Parameter Table