Difference between revisions of "Template:Infobox/Body"
From Kerbal Space Program Wiki
m (!fixed closing brackets;) |
(*removed some unneeded parameters;) |
||
Line 36: | Line 36: | ||
|- | |- | ||
| [[w:Surface Area|Surface Area]] | | [[w:Surface Area|Surface Area]] | ||
− | | {{sigfigs|{{#expr: 4 * pi * {{{radius | + | | {{#if {{{radius|}}}|{{sigfigs|{{#expr: 4 * pi * {{{radius}}}^2}}|8}}|??}} m<sup>2</sup> |
|- | |- | ||
| [[w:Mass|Mass]] | | [[w:Mass|Mass]] | ||
Line 45: | Line 45: | ||
|- | |- | ||
| [[w:Density|Density]] | | [[w:Density|Density]] | ||
− | | {{sigfigs|{{#expr: {{{mass | + | | {{#if: {{{mass|}}}|{{#if: {{{radius|}}}|{{sigfigs|{{#expr: {{{mass}}} / (4 * pi * {{{radius}}}^3 / 3)}}|8}}|??}}|??}} kg/m<sup>3</sup> |
|- | |- | ||
| [[w:Surface_gravity|Surface Gravity]] | | [[w:Surface_gravity|Surface Gravity]] | ||
− | | {{sigfigs|{{#expr: {{{mass}}} * {{G}} / ({{{radius}}}^2)}}|3}} m/s<sup>2</sup> | + | | {{#if: {{{mass|}}}|{{#if {{{radius|}}}|{{sigfigs|{{#expr: {{{mass}}} * {{G}} / ({{{radius}}}^2)}}|3}}|??}}|??}} m/s<sup>2</sup> |
{{PlanetBoxRow|[[w:Escape_velocity|Escape Velocity]] <!-- | {{PlanetBoxRow|[[w:Escape_velocity|Escape Velocity]] <!-- | ||
--> |{{#expr: (2 * {{G}} * {{{mass|0}}} / {{{radius|1}}})^0.5 round2 }}|m/s}} | --> |{{#expr: (2 * {{G}} * {{{mass|0}}} / {{{radius|1}}})^0.5 round2 }}|m/s}} | ||
Line 84: | Line 84: | ||
|} | |} | ||
</div><noinclude> | </div><noinclude> | ||
− | + | == Dependencies == | |
+ | Some values are calculated automatically: | ||
+ | * Radius: Surface Area, Density, Surface Gravity | ||
+ | * Mass: Gravitational Parameter, Density, Surface Gravity | ||
+ | * Sidereal Rotation Period: Sidereal Rotational Velocity | ||
+ | * Scale Height: Atmospheric Height | ||
+ | |||
+ | It will also calculate the Atmospheric Pressure from '''atm''' to '''kPa''' and vice versa. | ||
+ | |||
== Template == | == Template == | ||
<pre><nowiki>{{Planetbox | <pre><nowiki>{{Planetbox | ||
Line 100: | Line 108: | ||
|orbv=?? | |orbv=?? | ||
|radius=?? | |radius=?? | ||
− | |||
|mass=?? | |mass=?? | ||
− | |||
− | |||
− | |||
− | |||
|sidrot=?? | |sidrot=?? | ||
− | |||
|geosync=?? | |geosync=?? | ||
|SoI=?? | |SoI=?? |
Revision as of 18:52, 15 February 2013
Infobox/Body
Infobox/Body as seen from orbit. | |
?? | |
Orbital Characteristics
Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow | |
Physical Characteristics | |
Equatorial Radius | ?? m |
Surface Area | Expression error: Unexpected < operator.|??}} m2 |
Mass | ?? kg |
Gravitational Parameter | ?? m3/s2 |
Density | ?? kg/m3 |
Surface Gravity | ?? m/s2
Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow |
Sphere of Influence | ?? m |
Atmospheric Characteristics
Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow Template:PlanetBoxRow |
Dependencies
Some values are calculated automatically:
- Radius: Surface Area, Density, Surface Gravity
- Mass: Gravitational Parameter, Density, Surface Gravity
- Sidereal Rotation Period: Sidereal Rotational Velocity
- Scale Height: Atmospheric Height
It will also calculate the Atmospheric Pressure from atm to kPa and vice versa.
Template
{{Planetbox |Class=?? |File=?? |Parent=?? |smaxis=?? |apoap=?? |periap=?? |orbecc=?? |orbinc=?? |anomaly=?? |orbps=?? |orbph=?? |orbv=?? |radius=?? |mass=?? |sidrot=?? |geosync=?? |SoI=?? |atmosyorn=?? |atmoskPa=?? |atmosatm=?? |atmossh=?? |T-minC=?? |T-maxC=?? |O2yorn=?? }}