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

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*use new bodydata template; -new line;)
m (*moved template;)
Line 1: Line 1:
<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.
+
<includeonly>{{#expr: 2*pi*((({{{1}}} + {{{3|{{{1}}}}}})/2)^3/({{G}}*({{Body data|{{{2}}}|mass}})))^(0.5)}}</includeonly><noinclude>This template calculates the orbital period in seconds.
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 16: Line 16:
  
 
== Example ==
 
== Example ==
<pre>{{OrbitPeriod|13599840256|Kerbol}}</pre>
+
<pre>{{Body data/orbit period|13599840256|Kerbol}}</pre>
{{OrbitPeriod|13599840256|Kerbol}}
+
{{Body data/orbit period|13599840256|Kerbol}}
  
[[Category:Templates]]</noinclude>
+
[[Category:BodyData Math Templates|orbit period]]</noinclude>

Revision as of 12:09, 27 August 2014

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

{{Body data/orbit period|13599840256|Kerbol}}

9203544.6175013