Difference between revisions of "Template:Infobox/Body"
m (!close expr statement;) |
(+allow ∞ for SoI;) |
||
Line 56: | Line 56: | ||
{{PlanetBoxRow|[[w:Sidereal_time|Sidereal Rotational Velocity]] |{{#if: {{{sidrot|}}}|{{sigfigs|{{#expr: {{{radius}}} * 2 * pi / {{{sidrot}}}}}|5}}|??}}|m/s}} | {{PlanetBoxRow|[[w:Sidereal_time|Sidereal Rotational Velocity]] |{{#if: {{{sidrot|}}}|{{sigfigs|{{#expr: {{{radius}}} * 2 * pi / {{{sidrot}}}}}|5}}|??}}|m/s}} | ||
{{PlanetBoxRow|[[w:Synchronous_orbit|Synchronous Orbit]] |{{#if: {{{radius|}}}|{{#if: {{{mass|}}}|{{#if: {{{sidrot}}}|{{#ifeq: {{{SoI}}}|N/A|N/A|<!-- | {{PlanetBoxRow|[[w:Synchronous_orbit|Synchronous Orbit]] |{{#if: {{{radius|}}}|{{#if: {{{mass|}}}|{{#if: {{{sidrot}}}|{{#ifeq: {{{SoI}}}|N/A|N/A|<!-- | ||
− | --> {{#ifexpr: | + | --> {{#if: {{#ifeq: {{{SoI}}}|∞}}{{#ifexpr: {{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{{mass}}} | period_s={{{sidrot}}} | suffix= }} < {{{SoI}}}}} <!-- |
--> |{{sigfigs|{{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{{mass}}} | period_s={{{sidrot}}} | suffix= }}|8}} m <!-- | --> |{{sigfigs|{{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{{mass}}} | period_s={{{sidrot}}} | suffix= }}|8}} m <!-- | ||
--> |Outside sphere of influence<!-- | --> |Outside sphere of influence<!-- | ||
Line 62: | Line 62: | ||
|- | |- | ||
| [[w:Sphere_of_influence_(astrodynamics)|Sphere of Influence]] | | [[w:Sphere_of_influence_(astrodynamics)|Sphere of Influence]] | ||
− | |{{#if: {{{SoI|}}}|{{sigfigs|{{{SoI}}}|8}}|??}} m | + | |{{#ifeq: {{{SoI|}}}|∞|∞|{{#if: {{{SoI|}}}|{{sigfigs|{{{SoI}}}|8}}|??}} m}} |
|- | |- | ||
| colspan="2" | '''{{#switch:{{{1}}} | | colspan="2" | '''{{#switch:{{{1}}} |
Revision as of 10:46, 16 February 2013
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 | ?? 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:
- Periapsis: Semi-major axis
- Apoapsis: Semi-major axis
- Radius: Surface Area, Density, Surface Gravity, Synchronous Orbit
- Mass: Gravitational Parameter, Density, Surface Gravity, Synchronous Orbit
- Sidereal Rotation Period: Sidereal Rotational Velocity, Synchronous Orbit
- Scale Height: Atmospheric Height
It will also calculate the Atmospheric Pressure from atm to kPa and vice versa.
To deactivate orbital information (for example Kerbol) set {{{orbityorn}}} to no. The atmospheric information can be hidden when {{{atmosyorn}}} is set to no. On all other values it will show the atmospheric entries.
Template
{{Planetbox |Class=?? |File=?? |Parent=?? |orbityorn=?? |apoap=?? |periap=?? |orbecc=?? |orbinc=?? |anomaly=?? |orbps=?? |orbv=?? |radius=?? |mass=?? |sidrot=?? |SoI=?? |atmosyorn=?? |atmoskPa=?? |atmosatm=?? |atmossh=?? |T-minC=?? |T-maxC=?? |O2yorn=?? }}