Difference between revisions of "Template:Infobox/Body"

From Kerbal Space Program Wiki
Jump to: navigation, search
(+Parameters table; +expand time for siderial period; -default values for mandatory parameters;)
m (Fix stray brace.)
Line 78: Line 78:
 
{{PlanetBoxRow|                                                      |{{{atmosatm}}} |atm}}
 
{{PlanetBoxRow|                                                      |{{{atmosatm}}} |atm}}
 
{{PlanetBoxRow|[[w:Scale_height|Scale Height]]                        |{{{atmossh}}}  |m}}
 
{{PlanetBoxRow|[[w:Scale_height|Scale Height]]                        |{{{atmossh}}}  |m}}
{{PlanetBoxRow|[[w:Atmospheric_height|Atmospheric Height]]            |{{{sigfigs|{{#expr: ln1e-6 * -{{{atmossh|}}}}}|8}}   |m}}
+
{{PlanetBoxRow|[[w:Atmospheric_height|Atmospheric Height]]            |{{sigfigs|{{#expr: ln1e-6 * -{{{atmossh|}}}}}|8}} |m}}
 
{{#if: T-minC|{{PlanetBoxRow|[[w:Atmospheric_temperature|Temperature<sub>min</sub>]]|{{{T-minC|??}}} °C <small>{{#expr: {{{T-minC}}} + 273.15}}|??}} K</small>}}
 
{{#if: T-minC|{{PlanetBoxRow|[[w:Atmospheric_temperature|Temperature<sub>min</sub>]]|{{{T-minC|??}}} °C <small>{{#expr: {{{T-minC}}} + 273.15}}|??}} K</small>}}
 
{{#if: T-maxC|{{PlanetBoxRow|[[w:Atmospheric_temperature|Temperature<sub>max</sub>]]|{{{T-maxC|??}}} °C <small>{{#expr: {{{T-maxC}}} + 273.15}}|??}} K</small>}}
 
{{#if: T-maxC|{{PlanetBoxRow|[[w:Atmospheric_temperature|Temperature<sub>max</sub>]]|{{{T-maxC|??}}} °C <small>{{#expr: {{{T-maxC}}} + 273.15}}|??}} K</small>}}

Revision as of 19:09, 19 February 2013

Template:Planetbox

Dependencies

Some values are calculated automatically:

  • Periapsis: Semi-major axis, Orbital eccentricity, Orbital velocity
  • Apoapsis: Semi-major axis, Orbital eccentricity, Orbital velocity
  • Orbital period: Orbital velocity
  • 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
  • Atmospheric pressure (in atm): Atmospheric pressure (in kPa)

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.

Parameters

Name Optional Description
Class No Class of celestial object: Star, Planet, Dwarf Planet or Moon
File No Filename to image of the celestial object
Parent Yes Object which this object does orbit. Default: Not set
orbityorn Yes Does this object orbit another object (usually when Parent is set). no to hide. Default: Yes
apoap No Apoapsis in meters
periap Yes Periapsis in meters. Default: Apoapsis
orbinc No Orbital inclination in degrees.
anomaly No Mean anomaly in degrees
orbps No Orbital period in seconds
radius No Radius in meters
mass No Mass in kilograms
sidrot No Siderial period in seconds
SoI No Sphere of influence in meters. Special value: ∞
highest Yes Highest elevation in meters. Default: Not set
atmosyorn Yes Does this celestial object have a atmosphere? No to hide. Default: Yes
atmosatm No Atmospheric pressure in atm.
atmossh No Atmospheric scale height in meters
T-minC No Lowest temperature in degrees celsius
T-maxC No Highest temperature in degrees celsius
O2yorn No Is oxygen present?

Template

{{Planetbox
|Class=?? <!-- Star, Planet, Dwarf Planet, Moon -->
|File=??
|Parent=?? 
|orbityorn=??
|apoap=?? <!-- in meters -->
|periap=?? <!-- in meters -->
|orbinc=?? <!-- in degrees -->
|anomaly=?? <!-- in degrees -->
|orbps=?? <!-- in seconds -->
|radius=?? <!-- in meters -->
|mass=?? <!-- in kilograms -->
|sidrot=?? <!-- in seconds -->
|SoI=?? <!-- in meters -->
|highest=?? <!-- in meters (optional) -->
|atmosyorn=??
|atmosatm=??
|atmossh=??
|T-minC=??
|T-maxC=??
|O2yorn=??
}}

Example

Example used on this page:

{{Planetbox
|Class=Planet
|File=Image-needed.png
|Parent=Gilly
|orbityorn=yes
|apoap=1337000
|periap=470000
|orbinc=7.4
|anomaly=4.2
|orbps=36000
|radius=10000
|mass=1e20
|sidrot=3600
|SoI=200000
|highest=2357
|atmosyorn=yes
|atmosatm=1
|atmossh=3000
|T-minC=-42
|T-maxC=47
|O2yorn=no
}}