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

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{#expr: 2*pi*((({{{1}}} + {{{3|{{{1}}}}}})/2)^3/({{G}}*{{CelestialBodyMass|{{{2}}}}}))^(0.5)}}</includeonly> <noinclude>This template calculates the orbital peri...")
 
Line 1: Line 1:
 
<includeonly>{{#expr: 2*pi*((({{{1}}} + {{{3|{{{1}}}}}})/2)^3/({{G}}*{{CelestialBodyMass|{{{2}}}}}))^(0.5)}}</includeonly>
 
<includeonly>{{#expr: 2*pi*((({{{1}}} + {{{3|{{{1}}}}}})/2)^3/({{G}}*{{CelestialBodyMass|{{{2}}}}}))^(0.5)}}</includeonly>
<noinclude>This template calculates the orbital period.
+
<noinclude>This template calculates the orbital period in seconds.
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 7: Line 7:
 
|-
 
|-
 
| 1
 
| 1
| Apoapsis
+
| Apoapsis (in meters)
 
|-
 
|-
 
| 2
 
| 2
Line 13: Line 13:
 
|-
 
|-
 
| 3
 
| 3
| Periapsis (if not set uses Apoapsis)
+
| Periapsis ( in meters, if not set uses Apoapsis)
 
|}
 
|}
  
[[Category:Template|OrbitPeriod]]</noinclude>
+
== Example ==
 +
<pre>{{OrbitPeriod|13599840256|Kerbol}}</pre>
 +
{{OrbitPeriod|13599840256|Kerbol}}
 +
 
 +
[[Category:Templates|OrbitPeriod]]</noinclude>

Revision as of 23:20, 20 February 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