Difference between revisions of "Template:Infobox/Body"

From Kerbal Space Program Wiki
Jump to: navigation, search
(*calculate orbital eccentricity;)
(!close expr of orbital eccentricity; *round orbital eccentricity to 2 decimal places;)
Line 18: Line 18:
 
{{PlanetBoxRow|[[w:Apoapsis|Apoapsis]]                        |{{{apoap|??}}}  |m}}
 
{{PlanetBoxRow|[[w:Apoapsis|Apoapsis]]                        |{{{apoap|??}}}  |m}}
 
{{PlanetBoxRow|[[w:Periapsis|Periapsis]]                      |{{{periap|{{{apoap|??}}}}}} |m}}
 
{{PlanetBoxRow|[[w:Periapsis|Periapsis]]                      |{{{periap|{{{apoap|??}}}}}} |m}}
{{PlanetBoxRow|[[w:Orbital_eccentricity|Orbital Eccentricity]]|{{#if: {{{apoap|}}}|{{#expr: 1-2/({{{apoap}}}/{{{periap|{{{apoap}}}+1)|??}} |}}
+
{{PlanetBoxRow|[[w:Orbital_eccentricity|Orbital Eccentricity]]|{{#if: {{{apoap|}}}|{{#expr: 1-2/({{{apoap}}}/{{{periap|{{{apoap}}}+1) round2}}|??}} |}}
 
{{PlanetBoxRow|[[w:Orbital_Inclination|Orbital Inclination]]  |{{{orbinc|??}}} |°}}
 
{{PlanetBoxRow|[[w:Orbital_Inclination|Orbital Inclination]]  |{{{orbinc|??}}} |°}}
 
{{PlanetBoxRow|[[w:Mean_Anomaly|Mean Anomaly]]                |{{{anomaly|??}}}|°}}
 
{{PlanetBoxRow|[[w:Mean_Anomaly|Mean Anomaly]]                |{{{anomaly|??}}}|°}}

Revision as of 11:25, 16 February 2013

Infobox/Body
Planet image
{{#ifeq: yes|no||
Infobox/Body as seen from orbit.
??
Orbital Characteristics

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, Orbital eccentricity
  • Apoapsis: Semi-major axis, Orbital eccentricity
  • 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. If the periapsis isn't defined it will assume a circular orbit where the apoapsis is identical to the periapsis.

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=??
|orbinc=??
|anomaly=??
|orbps=??
|orbv=??
|radius=??
|mass=??
|sidrot=??
|SoI=??
|atmosyorn=??
|atmoskPa=??
|atmosatm=??
|atmossh=??
|T-minC=??
|T-maxC=??
|O2yorn=??
}}