Difference between revisions of "Template:OrbitAltitude/Core"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!parameter table;)
m (!apply correct name for factor;)
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}}}|radius}}}}) {{#switch: {{{factor|}}}
+
<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: {{{f|}}}
 
|k=/1000
 
|k=/1000
 
|M=/1000000
 
|M=/1000000

Revision as of 21:40, 16 September 2013

Calculates the orbital height without any formatting.

Template:Parameter Table