Difference between revisions of "Template:OrbitAltitude"
From Kerbal Space Program Wiki
m (*the parameters are in English; +categorise;) |
|||
Line 1: | Line 1: | ||
<includeonly>{{formatnum|{{#expr: {{OrbitAltitude/Core|{{{period|{{{period_s}}}}}}|{{{mass|{{{mass_kg}}}}}}|{{{radius|{{{radius_m|{{#expr: {{{radius_km}}}*1000}}}}}}}}}} {{#switch: {{{factor|{{#if: {{{radius_km|}}}|k}}}}} | <includeonly>{{formatnum|{{#expr: {{OrbitAltitude/Core|{{{period|{{{period_s}}}}}}|{{{mass|{{{mass_kg}}}}}}|{{{radius|{{{radius_m|{{#expr: {{{radius_km}}}*1000}}}}}}}}}} {{#switch: {{{factor|{{#if: {{{radius_km|}}}|k}}}}} | ||
− | | | + | |k=/1000 |
− | | | + | |M=/1000000 |
− | | | + | |G=/1000000000}}}}|2}}{{#if: {{{suffix}}}| {{{suffix|{{Dict|{{{factor|{{#if: {{{radius_km|}}}|k}}}}}}}{{Dict|m}}}}}}}{{#if: {{{period_s|}}}{{{mass_kg|}}}{{{radius_m}}}{{{radius_km}}}|[[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. To calculate the orbit's altitude without any fancy stuff (like decimal separator) use {{Tl|OrbitAltitude/Core}}. |
+ | |||
+ | All usages with the old parameter names will be sorted into the category [[:Category:OrbitAltitude with old parameters]]. | ||
== Parameters == | == Parameters == | ||
Line 20: | Line 22: | ||
! Usage || Result | ! Usage || Result | ||
|- | |- | ||
− | | <pre>{{OrbitAltitude | period=64980 | mass=4.515e21 | | + | | <pre>{{OrbitAltitude | period=64980 | mass=4.515e21 | radius=320000 | factor=k}}</pre> || {{OrbitAltitude | period=64980 | mass=4.515e21 | radius=320000|factor=k}} |
|- | |- | ||
| <pre>{{OrbitAltitude | period=64980 | mass=4.515e21 | radius=320000}}</pre> || {{OrbitAltitude | period=64980 | mass=4.515e21 | radius=320000}} | | <pre>{{OrbitAltitude | period=64980 | mass=4.515e21 | radius=320000}}</pre> || {{OrbitAltitude | period=64980 | mass=4.515e21 | radius=320000}} |
Revision as of 20:06, 6 August 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. To calculate the orbit's altitude without any fancy stuff (like decimal separator) use {{OrbitAltitude/Core}}.
All usages with the old parameter names will be sorted into the category Category:OrbitAltitude with old parameters.
Parameters
Name/# | Optional | Description
Template:ParameterRow Template:ParameterRow Template:ParameterRow Template:ParameterRow |
---|
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 |