Difference between revisions of "Template:OrbitAltitude/Core"
From Kerbal Space Program Wiki
(*merge from the BodyData template;) |
(!parameter table; !radius instead of mass;) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#expr:(((({{#if: {{{1|}}}{{#if: {{{b|}}}||1}}|{{{1}}}|{{BodyData|{{{b}}}|sidrot}}}}{{#if: {{{pf|}}}|*{{{pf}}}}})^2 * {{G}} * {{#if: {{{2|}}}{{#if: {{{b|}}}||1}}|{{{2}}}|{{BodyData|{{{b}}}|mass}}}}/(4 * pi^2)) ^ (1/3)) - {{#if: {{{3|}}}{{#if: {{{b|}}}||1}}|{{#if: {{{3|}}}|{{{3}}}|0}}|{{BodyData|{{{b}}}| | + | <includeonly>{{#expr:(((({{#if: {{{1|}}}{{#if: {{{b|}}}||1}}|{{{1}}}|{{BodyData|{{{b}}}|sidrot}}}}{{#if: {{{pf|}}}|*{{{pf}}}}})^2 * {{G}} * {{#if: {{{2|}}}{{#if: {{{b|}}}||1}}|{{{2}}}|{{BodyData|{{{b}}}|mass}}}}/(4 * pi^2)) ^ (1/3)) - {{#if: {{{3|}}}{{#if: {{{b|}}}||1}}|{{#if: {{{3|}}}|{{{3}}}|0}}|{{BodyData|{{{b}}}|radius}}}}) {{#switch: {{{factor|}}} |
|k=/1000 | |k=/1000 | ||
|M=/1000000 | |M=/1000000 | ||
Line 11: | Line 11: | ||
{{Parameter Row|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|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|pf|2=Multiplies the period with this value. Useful to easily calculate semi-synchronous orbits (<tt>pf=1/2</tt> then).|3=<tt>1</tt>}} | {{Parameter Row|pf|2=Multiplies the period with this value. Useful to easily calculate semi-synchronous orbits (<tt>pf=1/2</tt> then).|3=<tt>1</tt>}} | ||
− | + | }} | |
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 15:54, 16 September 2013
Calculates the orbital height without any formatting.
{{Parameter Table Template:Parameter Row Template:Parameter Row Template:Parameter Row Template:Parameter Row Template:Parameter Row Template:Parameter Row }}