Difference between revisions of "Template:Body data/orbit period"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!calculate SMA correctly;)
m (*use new bodydata template; -new line;)
Line 1: Line 1:
<includeonly>{{#expr: 2*pi*((({{{1}}} + {{{3|{{{1}}}}}})/2)^3/({{G}}*({{BodyData/Mass|{{{2}}}}})))^(0.5)}}</includeonly>
+
<includeonly>{{#expr: 2*pi*((({{{1}}} + {{{3|{{{1}}}}}})/2)^3/({{G}}*({{BodyData|{{{2}}}|mass}})))^(0.5)}}</includeonly><noinclude>This template calculates the orbital period in seconds.
<noinclude>This template calculates the orbital period in seconds.
 
  
 
{| class="wikitable"
 
{| class="wikitable"

Revision as of 10:50, 13 September 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