Difference between revisions of "Template:Infobox/Body"
From Kerbal Space Program Wiki
(+readd “parent”; !make two if statements working; -remove unused parameters; !show GSO only if sufficient data available; *show info if GSO is outside of SoI;) |
(!parent info; !remove unit if GSO > SoI; +link to parent;) |
||
Line 5: | Line 5: | ||
| colspan="2" style="text-align: center;" | <small>{{{Name|{{PAGENAME}}}}} as seen from orbit.</small> | | colspan="2" style="text-align: center;" | <small>{{{Name|{{PAGENAME}}}}} as seen from orbit.</small> | ||
|- | |- | ||
− | | colspan="2" style="text-align: center;" | <small>[[{{{Class|??}}}]]{{#if: {{{Parent|}}}|of {{{Parent}}}}}</small> | + | | colspan="2" style="text-align: center;" | <small>[[{{{Class|??}}}]]{{#if: {{{Parent|}}}| of [[{{{Parent}}}]]}}</small> |
|- | |- | ||
| colspan="2" | '''{{#switch:{{{1}}} | | colspan="2" | '''{{#switch:{{{1}}} | ||
Line 55: | Line 55: | ||
{{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: {{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{{mass}}} | period_s={{{sidrot}}} | suffix= }} < {{{SoI|0}}} <!-- | --> {{#ifexpr: {{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{{mass}}} | period_s={{{sidrot}}} | suffix= }} < {{{SoI|0}}} <!-- | ||
− | --> |{{sigfigs|{{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{{mass}}} | period_s={{{sidrot}}} | suffix= }}|8}} <!-- | + | --> |{{sigfigs|{{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{{mass}}} | period_s={{{sidrot}}} | suffix= }}|8}} m <!-- |
--> |Outside sphere of influence<!-- | --> |Outside sphere of influence<!-- | ||
− | --> }}}}|??}}|??}}|??}} | + | --> }}}}|??}}|??}}|??}}}} |
− | |||
|- | |- | ||
| [[w:Sphere_of_influence_(astrodynamics)|Sphere of Influence]] | | [[w:Sphere_of_influence_(astrodynamics)|Sphere of Influence]] |
Revision as of 00:43, 16 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 | ?? 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, 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.
Template
{{Planetbox |Class=?? |File=?? |Parent=?? |smaxis=?? |apoap=?? |periap=?? |orbecc=?? |orbinc=?? |anomaly=?? |orbps=?? |orbv=?? |radius=?? |mass=?? |sidrot=?? |SoI=?? |atmosyorn=?? |atmoskPa=?? |atmosatm=?? |atmossh=?? |T-minC=?? |T-maxC=?? |O2yorn=?? }}