Difference between revisions of "Template:Body data/orbit period"
From Kerbal Space Program Wiki
(-the orbiting body mass isn't used;) |
m (!calculate SMA correctly;) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#expr: 2*pi*((({{{1}}} + {{{ | + | <includeonly>{{#expr: 2*pi*((({{{1}}} + {{{3|{{{1}}}}}})/2)^3/({{G}}*({{BodyData/Mass|{{{2}}}}})))^(0.5)}}</includeonly> |
<noinclude>This template calculates the orbital period in seconds. | <noinclude>This template calculates the orbital period in seconds. | ||
Line 20: | Line 20: | ||
{{OrbitPeriod|13599840256|Kerbol}} | {{OrbitPeriod|13599840256|Kerbol}} | ||
− | [[Category:Templates | + | [[Category:Templates]]</noinclude> |
Revision as of 09:26, 15 July 2013
This template calculates the orbital period in seconds.
Name | Description |
---|---|
1 | Apoapsis (in meters) |
2 | Parent object |
3 | Periapsis (in meters, if not set uses Apoapsis) |
Example
{{OrbitPeriod|13599840256|Kerbol}}
9203544.6175013