Difference between revisions of "Template:OrbitVelocity/Core"
From Kerbal Space Program Wiki
(+allow body instead of separate values; *merge content from the main template;) |
m (Use new mass template) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#expr: <!-- | <includeonly>{{#expr: <!-- | ||
--> ( <!-- | --> ( <!-- | ||
− | --> {{G}} * {{#if: {{{2|}}}{{#if: {{{b|}}}||1}}|{{{2}}}|{{ | + | --> {{G}} * {{#if: {{{2|}}}{{#if: {{{b|}}}||1}}|{{{2}}}|{{Body data/Mass|{{{b}}}}}}} / {{OrbitAltitude/Core|{{{1|}}}|{{{2|}}}|0|b={{{b|}}}|pf={{{pf|}}}}} <!-- |
--> ) ^ 0.5 {{#switch: {{{f|}}} | --> ) ^ 0.5 {{#switch: {{{f|}}} | ||
|k=/1000 | |k=/1000 | ||
Line 8: | Line 8: | ||
--> }}</includeonly><noinclude> | --> }}</includeonly><noinclude> | ||
− | {{Parameter | + | {{Parameter table|parameters= |
− | {{Parameter | + | {{Parameter row|1|Period of the orbit in seconds}} |
− | {{Parameter | + | {{Parameter row|2|Mass of central body in kilograms}} |
− | {{Parameter | + | {{Parameter row|3|Round to the number of decimal places.|Doesn't round}} |
− | {{Parameter | + | {{Parameter row|f|Factor in which the velocity should be shown. Available values: None (m/s), '''k''' (km/s), '''M''' (Mm/s), '''G''' (Gm/s).|None}} |
− | {{Parameter | + | {{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 two parameters mandatory)}} |
− | {{Parameter | + | {{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> |
Latest revision as of 11:38, 12 May 2018
# | Optional | Description | Default |
---|---|---|---|
1 | No | Period of the orbit in seconds | |
2 | No | Mass of central body in kilograms | |
3 | Yes | Round to the number of decimal places. | Doesn't round |
f | Yes | Factor in which the velocity should be shown. Available values: None (m/s), k (km/s), M (Mm/s), G (Gm/s). | None |
b | Yes | Uses the sidereal rotation period, mass and radius as default from the given body. Can be overwritten. | Not set (makes the first two parameters mandatory) |
pf | Yes | Multiplies the period with this value. Useful to easily calculate semi-synchronous orbits (pf=1/2 then). | 1 |