Difference between revisions of "Template:OrbitAltitude"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!closing brackets;)
m (-BodyData/Orbit altitude template is obsolete;)
Line 1: Line 1:
<includeonly>{{formatnum|{{OrbitAltitude/Core|{{{1|{{{period|{{{period_s|}}}}}}}}}|{{{2|{{{mass|{{{mass_kg|}}}}}}}}}|{{{3|{{{radius|{{{radius_m|{{#if: {{{radius_km|}}}|{{#expr: {{{radius_km}}}*1000}}}}}}}}}}}}}|f={{{factor|{{{f|{{#if: {{{radius_km|}}}|k}}}}}}}}|b={{{body|{{{b|}}}}}}|pf={{{period factor|{{{pf|1}}}}}}}}|2}}&nbsp;{{Dict|{{{factor|{{{f|{{#if: {{{radius_km|}}}|k}}}}}}}}}}{{Dict|m}}{{#if: {{{period_s|}}}{{{mass_kg|}}}{{{radius_m|}}}{{{radius_km|}}}{{{suffix|}}}|[[Category:OrbitAltitude with old parameters]]}}</includeonly><noinclude>This template calculates the altitude of an orbit, given the mass of the planet, the planet's radius and the period of the orbit. The altitude will be calculated by {{Tl|OrbitAltitude/Core}} and then parsed with {{Tl|Formatnum}} and adding a unit. To add the radius and mass, and possibly the period, automatically the {{Tl|BodyData/Orbit altitude}} can be used.
+
<includeonly>{{formatnum|{{OrbitAltitude/Core|{{{1|{{{period|{{{period_s|}}}}}}}}}|{{{2|{{{mass|{{{mass_kg|}}}}}}}}}|{{{3|{{{radius|{{{radius_m|{{#if: {{{radius_km|}}}|{{#expr: {{{radius_km}}}*1000}}}}}}}}}}}}}|f={{{factor|{{{f|{{#if: {{{radius_km|}}}|k}}}}}}}}|b={{{body|{{{b|}}}}}}|pf={{{period factor|{{{pf|1}}}}}}}}|2}}&nbsp;{{Dict|{{{factor|{{{f|{{#if: {{{radius_km|}}}|k}}}}}}}}}}{{Dict|m}}{{#if: {{{period_s|}}}{{{mass_kg|}}}{{{radius_m|}}}{{{radius_km|}}}{{{suffix|}}}|[[Category:OrbitAltitude with old parameters]]}}</includeonly><noinclude>This template calculates the altitude of an orbit, given the mass of the planet, the planet's radius and the period of the orbit. The altitude will be calculated by {{Tl|OrbitAltitude/Core}} and then parsed with {{Tl|Formatnum}} and adding a unit.
  
 
All usages with the old parameter names will be sorted into the category [[:Category:OrbitAltitude with old parameters]].
 
All usages with the old parameter names will be sorted into the category [[:Category:OrbitAltitude with old parameters]].

Revision as of 10:33, 17 September 2013

This template calculates the altitude of an orbit, given the mass of the planet, the planet's radius and the period of the orbit. The altitude will be calculated by {{OrbitAltitude/Core}} and then parsed with {{Formatnum}} and adding a unit.

All usages with the old parameter names will be sorted into the category Category:OrbitAltitude with old parameters.

Parameters

Template:Parameter Table

Examples

Usage Result
{{OrbitAltitude | period=64980 | mass=4.515e21 | radius=320000 | factor=k}}
2 862.36 km
{{OrbitAltitude | period=64980 | mass=4.515e21 | radius=320000}}
2 862 362.24 m