Difference between revisions of "Template:Body data/orbit period"
From Kerbal Space Program Wiki
m (*uses Template:BodyData/Mass instead;) |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#expr: 2*pi*((({{{1}}} + {{{3|{{{1}}}}}})/2)^3/({{G}}*{{ | + | <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 13: | Line 13: | ||
|- | |- | ||
| 3 | | 3 | ||
− | | Periapsis ( in meters, if not set uses Apoapsis) | + | | Periapsis (in meters, if not set uses Apoapsis) |
|} | |} | ||
Revision as of 19:56, 12 March 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