Difference between revisions of "Template:OrbitAltitude"
From Kerbal Space Program Wiki
m (-BodyData/Orbit altitude template is obsolete;) |
(*more specific categories; -old parameters;) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{formatnum|{{OrbitAltitude/Core|{{{1|{{{period| | + | <includeonly>{{formatnum|{{OrbitAltitude/Core|{{{1|{{{period|}}}}}}|{{{2|{{{mass|}}}}}}|{{{3|{{{radius|}}}}}}|f={{{factor|{{{f|}}}}}}|b={{{body|{{{b|}}}}}}|pf={{{period factor|{{{pf|1}}}}}}}}|2}} {{Dict|{{{factor|{{{f|}}}}}}}}{{Dict|m}}</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. |
− | |||
− | |||
== Parameters == | == Parameters == | ||
{{Parameter Table|name=both|parameters= | {{Parameter Table|name=both|parameters= | ||
− | {{Parameter Row|period|name2=1|Period of the orbit in seconds | + | {{Parameter Row|period|name2=1|Period of the orbit in seconds}} |
− | {{Parameter Row|mass|name2=2|Mass of central body in kilograms | + | {{Parameter Row|mass|name2=2|Mass of central body in kilograms}} |
− | {{Parameter Row|radius|name2=3|Radius of central body in meters | + | {{Parameter Row|radius|name2=3|Radius of central body in meters|0}} |
{{Parameter Row|factor|name2=f|Factor in which the altitude should be shown. Available values: None (m), '''k''' (km), '''M''' (Mm), '''G''' (Gm). If the radius was given kilometers it uses the factor '''k'''.|None}} | {{Parameter Row|factor|name2=f|Factor in which the altitude should be shown. Available values: None (m), '''k''' (km), '''M''' (Mm), '''G''' (Gm). If the radius was given kilometers it uses the factor '''k'''.|None}} | ||
{{Parameter Row|body|name2=b|Uses the sidereal rotation period, mass and radius as default from the given body. Can be overwritten.|Not set (makes the first three parameters mandatory)}} | {{Parameter Row|body|name2=b|Uses the sidereal rotation period, mass and radius as default from the given body. Can be overwritten.|Not set (makes the first three parameters mandatory)}} | ||
Line 23: | Line 21: | ||
|} | |} | ||
− | [[Category: | + | [[Category:Calculating templates]] |
+ | [[Category:Translating templates]]</noinclude> |
Revision as of 16:17, 26 January 2014
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.
Parameters
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 |