Difference between revisions of "Template:Body data/orbit period"
From Kerbal Space Program Wiki
(-the orbiting body mass isn't used;) |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#expr: 2*pi*((({{{1}}} + {{{4|{{{1}}}}}})/2)^3/({{G}}*({{BodyData/Mass|{{{2 | + | <includeonly>{{#expr: 2*pi*((({{{1}}} + {{{4|{{{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 13: | Line 13: | ||
|- | |- | ||
| 3 | | 3 | ||
− | |||
− | |||
− | |||
| Periapsis (in meters, if not set uses Apoapsis) | | Periapsis (in meters, if not set uses Apoapsis) | ||
|} | |} | ||
== Example == | == Example == | ||
− | <pre>{{OrbitPeriod|13599840256|Kerbol | + | <pre>{{OrbitPeriod|13599840256|Kerbol}}</pre> |
− | {{OrbitPeriod|13599840256|Kerbol | + | {{OrbitPeriod|13599840256|Kerbol}} |
[[Category:Templates|OrbitPeriod]]</noinclude> | [[Category:Templates|OrbitPeriod]]</noinclude> |
Revision as of 22:03, 14 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