Difference between revisions of "User:XZise/test"

From Kerbal Space Program Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly><div style="background: #f6f6f6; border: 1px solid #ccc; float: right; width: 280px; margin-left: 1em">
 
<includeonly><div style="background: #f6f6f6; border: 1px solid #ccc; float: right; width: 280px; margin-left: 1em">
 +
 
<div style="background: #ccc; font-size: large; padding: .5em; text-align: center">{{{Name|{{PAGENAME}}}}}</div>
 
<div style="background: #ccc; font-size: large; padding: .5em; text-align: center">{{{Name|{{PAGENAME}}}}}</div>
 +
 
<div style="background: #000">[[File:{{{File|Image-needed.png}}}|280px|Planet image]]</div>
 
<div style="background: #000">[[File:{{{File|Image-needed.png}}}|280px|Planet image]]</div>
 +
 
{| style="padding: 0.5em; font-size: 90%"
 
{| style="padding: 0.5em; font-size: 90%"
 +
 
| colspan="2" style="text-align: center; width: 100%;" | <small>{{{Name|{{PAGENAME}}}}} as seen from orbit.</small>
 
| colspan="2" style="text-align: center; width: 100%;" | <small>{{{Name|{{PAGENAME}}}}} as seen from orbit.</small>
 +
 
|-
 
|-
 +
 
| colspan="2" style="tehttp://9gag.com/gag/6635472xt-align: center;" | [[{{{Class|??}}}]] {{#if: {{{Parent|}}}|of [[{{{Parent}}}]]}}
 
| colspan="2" style="tehttp://9gag.com/gag/6635472xt-align: center;" | [[{{{Class|??}}}]] {{#if: {{{Parent|}}}|of [[{{{Parent}}}]]}}
 +
 
|-
 
|-
 +
 
{{#if: {{{Parent|}}}|
 
{{#if: {{{Parent|}}}|
 +
 
{{!}} colspan="2" {{!}} '''{{#switch:{{{1}}}
 
{{!}} colspan="2" {{!}} '''{{#switch:{{{1}}}
|=Orbital Characteristics
+
 
|ru=Орбитальные характеристики
+
|=Orbital Characteristics
|nl=Baan Eigenschappen
+
 
|fr=Caractéristiques Orbitales
+
|ru=Орбитальные характеристики
|#default=Orbital Characteristics
+
 
}}'''
+
|nl=Baan Eigenschappen
{{PlanetBoxRow|[[w:Semi-major axis|Semi-Major Axis]]         |{{#expr: ({{{apoap}}} + {{{periap|{{{apoap}}}}}})/2}} |m|f}}
+
 
{{PlanetBoxRow|[[w:Apoapsis|Apoapsis]]                       |{{{apoap}}} |m|f}}
+
|fr=Caractéristiques Orbitales
{{PlanetBoxRow|[[w:Periapsis|Periapsis]]                     |{{{periap|{{{apoap}}}}}} |m|f}}
+
 
{{PlanetBoxRow|[[w:Orbital_eccentricity|Orbital Eccentricity]]|{{#expr: 1-2/({{{apoap}}}/{{{periap|{{{apoap}}}}}}+1) round 2}} |}}
+
|#default=Orbital Characteristics
{{PlanetBoxRow|[[w:Orbital_Inclination|Orbital Inclination]] |{{{orbinc}}} |°}}
+
 
{{PlanetBoxRow|[[w:Mean_Anomaly|Mean Anomaly]]               |{{{anomaly}}}|°}}
+
}}'''
{{PlanetBoxRow|[[w:Orbital_Period|Orbital Period]]           |{{#expr: {{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}} round 1 }} |s|f}}
+
 
 +
{{User:XZise/test2|[[w:Semi-major axis|Semi-Major Axis]] |{{#expr: ({{{apoap}}} + {{{periap|{{{apoap}}}}}})/2}} |m|f}}
 +
 
 +
{{User:XZise/test2|[[w:Apoapsis|Apoapsis]] |{{{apoap}}} |m|f}}
 +
 
 +
{{User:XZise/test2|[[w:Periapsis|Periapsis]] |{{{periap|{{{apoap}}}}}} |m|f}}
 +
 
 +
{{User:XZise/test2|[[w:Orbital_eccentricity|Orbital Eccentricity]]|{{#expr: 1-2/({{{apoap}}}/{{{periap|{{{apoap}}}}}}+1) round 2}} |}}
 +
 
 +
{{User:XZise/test2|[[w:Orbital_Inclination|Orbital Inclination]] |{{{orbinc}}} |°}}
 +
 
 +
{{User:XZise/test2|[[w:Mean_Anomaly|Mean Anomaly]] |{{{anomaly}}}|°}}
 +
 
 +
{{User:XZise/test2|[[w:Orbital_Period|Orbital Period]] |{{#expr: {{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}} round 1 }} |s|f}}
 +
 
 
{{!}}-
 
{{!}}-
 +
 
{{!}}{{!}} {{!}}{{!}} <small>{{ExpandTime|{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}}}}</small>
 
{{!}}{{!}} {{!}}{{!}} <small>{{ExpandTime|{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}}}}</small>
{{PlanetBoxRow|[[w:Orbital_speed|Orbital Velocity]]       |{{#ifeq: {{{apoap|}}}|{{{periap|{{{apoap|}}}}}}|{{#expr: 2*pi*{{{apoap}}}/{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}} round 1}}|{{formatnum: {{#expr: pi*({{{apoap}}}+{{{periap}}})/{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}}*({{{periap}}}/{{{apoap}}})^(0.5) round 1}}}} to {{formatnum: {{#expr: pi*({{{apoap}}}+{{{periap}}})/{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}}*({{{apoap}}}/{{{periap}}})^(0.5) round 1}}}}}}   |m/s}}|
+
 
 +
{{User:XZise/test2|[[w:Orbital_speed|Orbital Velocity]] |{{#ifeq: {{{apoap|}}}|{{{periap|{{{apoap|}}}}}}|{{#expr: 2*pi*{{{apoap}}}/{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}} round 1}}|{{formatnum: {{#expr: pi*({{{apoap}}}+{{{periap}}})/{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}}*({{{periap}}}/{{{apoap}}})^(0.5) round 1}}}} to {{formatnum: {{#expr: pi*({{{apoap}}}+{{{periap}}})/{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}}*({{{apoap}}}/{{{periap}}})^(0.5) round 1}}}}}} |m/s}}|
 +
 
 
}}
 
}}
 +
 
|-
 
|-
 +
 
| colspan="2" | '''{{#switch:{{{1}}}
 
| colspan="2" | '''{{#switch:{{{1}}}
|=Physical Characteristics
+
 
|ru=
+
|=Physical Characteristics
|nl=Fysieke Eigenschappen
+
 
|fr=Caractéristiques Physiques
+
|ru=
|#default=Physical Characteristics
+
 
}}'''
+
|nl=Fysieke Eigenschappen
 +
 
 +
|fr=Caractéristiques Physiques
 +
 
 +
|#default=Physical Characteristics
 +
 
 +
}}'''
 +
 
 
|-
 
|-
 +
 
| [[w:Radius|Equatorial Radius]]
 
| [[w:Radius|Equatorial Radius]]
 +
 
| {{formatnum: {{{radius}}}}} m
 
| {{formatnum: {{{radius}}}}} m
 +
 
|-
 
|-
 +
 
| [[w:Surface Area|Surface Area]]
 
| [[w:Surface Area|Surface Area]]
 +
 
| {{sigfigs|{{#expr: 4 * pi * {{{radius}}}^2}}|8}} m<sup>2</sup>
 
| {{sigfigs|{{#expr: 4 * pi * {{{radius}}}^2}}|8}} m<sup>2</sup>
 +
 
|-
 
|-
 +
 
| [[w:Mass|Mass]]
 
| [[w:Mass|Mass]]
 +
 
| {{sigfigs|{{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}}|8}} kg
 
| {{sigfigs|{{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}}|8}} kg
 +
 
|-
 
|-
 +
 
| [[w:Standard gravitational parameter|Gravitational Parameter]]
 
| [[w:Standard gravitational parameter|Gravitational Parameter]]
 +
 
| {{sigfigs|{{#expr: {{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}} * {{G}}}}|8}} m<sup>3</sup>/s<sup>2</sup>
 
| {{sigfigs|{{#expr: {{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}} * {{G}}}}|8}} m<sup>3</sup>/s<sup>2</sup>
 +
 
|-
 
|-
 +
 
| [[w:Density|Density]]
 
| [[w:Density|Density]]
 +
 
| {{sigfigs|{{#expr: {{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}} / (4 * pi * {{{radius}}}^3 / 3)}}|8}} kg/m<sup>3</sup>
 
| {{sigfigs|{{#expr: {{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}} / (4 * pi * {{{radius}}}^3 / 3)}}|8}} kg/m<sup>3</sup>
 +
 
|-
 
|-
 +
 
| [[w:Surface_gravity|Surface Gravity]]
 
| [[w:Surface_gravity|Surface Gravity]]
 +
 
| {{sigfigs|{{#expr: {{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}} * {{G}} / ({{{radius}}}^2)}}|3}} m/s<sup>2</sup>
 
| {{sigfigs|{{#expr: {{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}} * {{G}} / ({{{radius}}}^2)}}|3}} m/s<sup>2</sup>
{{PlanetBoxRow|[[w:Escape_velocity|Escape Velocity]]                 <!--
+
 
-->   |{{#expr: (2 * {{G}} * {{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}} / {{{radius|1}}})^0.5 round2 }}|m/s}}
+
{{User:XZise/test2|[[w:Escape_velocity|Escape Velocity]] <!--
{{PlanetBoxRow|[[w:Rotation_period|Sidereal Rotation Period]]         |{{sigfigs|{{{sidrot}}}|8}}|s}}
+
 
 +
--> |{{#expr: (2 * {{G}} * {{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}} / {{{radius|1}}})^0.5 round2 }}|m/s}}
 +
 
 +
{{User:XZise/test2|[[w:Rotation_period|Sidereal Rotation Period]] |{{sigfigs|{{{sidrot}}}|8}}|s}}
 +
 
 
{{!}}-
 
{{!}}-
 +
 
{{!}}{{!}} {{!}}{{!}} <small>{{ExpandTime|{{{sidrot}}}}}</small>
 
{{!}}{{!}} {{!}}{{!}} <small>{{ExpandTime|{{{sidrot}}}}}</small>
{{PlanetBoxRow|[[w:Sidereal_time|Sidereal Rotational Velocity]]       |{{sigfigs|{{#expr: {{{radius}}} * 2 * pi / {{{sidrot}}}}}|5}}|m/s}}
+
 
{{PlanetBoxRow|[[w:Synchronous_orbit|Synchronous Orbit]]             |{{#if: {{#ifeq: {{{SoI}}}|∞|1}}{{#ifexpr: {{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}} | period_s={{{sidrot}}} | suffix= }} < {{{SoI}}}|1}}|{{sigfigs|{{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}} | period_s={{{sidrot}}} | suffix= }}|8}} m|Outside sphere of influence}}}}
+
{{User:XZise/test2|[[w:Sidereal_time|Sidereal Rotational Velocity]] |{{sigfigs|{{#expr: {{{radius}}} * 2 * pi / {{{sidrot}}}}}|5}}|m/s}}
 +
 
 +
{{User:XZise/test2|[[w:Synchronous_orbit|Synchronous Orbit]] |{{#if: {{#ifeq: {{{SoI}}}|∞|1}}{{#ifexpr: {{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}} | period_s={{{sidrot}}} | suffix= }} < {{{SoI}}}|1}}|{{sigfigs|{{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{CelestialBodyMass|{{{Name|{{PAGENAME}}}}}}} | period_s={{{sidrot}}} | suffix= }}|8}} m|Outside sphere of influence}}}}
 +
 
 
|-
 
|-
 +
 
| [[w:Sphere_of_influence_(astrodynamics)|Sphere of Influence]]
 
| [[w:Sphere_of_influence_(astrodynamics)|Sphere of Influence]]
 +
 
| {{#ifeq: {{{SoI|}}}|∞|∞|{{sigfigs|{{{SoI}}}|8}} m}}
 
| {{#ifeq: {{{SoI|}}}|∞|∞|{{sigfigs|{{{SoI}}}|8}} m}}
 +
 
|-
 
|-
 +
 
{{#if: {{{highest|}}}|{{!}} Highest elevation {{!}}{{!}} {{{highest}}} m}}
 
{{#if: {{{highest|}}}|{{!}} Highest elevation {{!}}{{!}} {{{highest}}} m}}
 +
 
|-
 
|-
 +
 
| colspan="2" | '''{{#switch:{{{1}}}
 
| colspan="2" | '''{{#switch:{{{1}}}
|=Atmospheric Characteristics
+
 
|ru=
+
|=Atmospheric Characteristics
|nl=Atmosferische Eigenschappen
+
 
|fr=Caractéristiques Atmosphériques
+
|ru=
|#default=Atmospheric Characteristics
+
 
}}'''
+
|nl=Atmosferische Eigenschappen
{{PlanetBoxRow|[[w:atmosphere|Atmosphere Present]]                   |{{{atmosyorn}}}|}}
+
 
 +
|fr=Caractéristiques Atmosphériques
 +
 
 +
|#default=Atmospheric Characteristics
 +
 
 +
}}'''
 +
 
 +
{{User:XZise/test2|[[w:atmosphere|Atmosphere Present]] |{{{atmosyorn}}}|}}
 +
 
 
{{#switch:{{{atmosyorn}}}
 
{{#switch:{{{atmosyorn}}}
 +
 
|#default=
 
|#default=
{{PlanetBoxRow|[[w:Atmospheric_pressure|Atmospheric Pressure]]       |{{sigfigs|{{#expr: {{{atmosatm}}} * 101.327}}|3}} |kPa}}
+
 
{{PlanetBoxRow|                                                       |{{{atmosatm}}} |atm}}
+
{{User:XZise/test2|[[w:Atmospheric_pressure|Atmospheric Pressure]] |{{sigfigs|{{#expr: {{{atmosatm}}} * 101.327}}|3}} |kPa}}
{{PlanetBoxRow|[[w:Scale_height|Scale Height]]                       |{{{atmossh}}} |m}}
+
 
{{PlanetBoxRow|[[w:Atmospheric_height|Atmospheric Height]]           |{{sigfigs|{{#expr: ln1e-6 * -{{{atmossh|}}}}}|8}} |m}}
+
{{User:XZise/test2| |{{{atmosatm}}} |atm}}
{{#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>}}
+
{{User:XZise/test2|[[w:Scale_height|Scale Height]] |{{{atmossh}}} |m}}
{{PlanetBoxRow|[[w:Oxygen|Oxygen Present]]                           |{{{O2yorn}}}   |}}
+
 
 +
{{User:XZise/test2|[[w:Atmospheric_height|Atmospheric Height]] |{{sigfigs|{{#expr: ln1e-6 * -{{{atmossh|}}}}}|8}} |m}}
 +
 
 +
{{#if: T-minC|{{User:XZise/test2|[[w:Atmospheric_temperature|Temperature<sub>min</sub>]]|{{{T-minC|??}}} °C <small>{{#expr: {{{T-minC}}} + 273.15}}|??}} K</small>}}
 +
 
 +
{{#if: T-maxC|{{User:XZise/test2|[[w:Atmospheric_temperature|Temperature<sub>max</sub>]]|{{{T-maxC|??}}} °C <small>{{#expr: {{{T-maxC}}} + 273.15}}|??}} K</small>}}
 +
 
 +
{{User:XZise/test2|[[w:Oxygen|Oxygen Present]] |{{{O2yorn}}} |}}
 +
 
 
|No=
 
|No=
 +
 
}}
 
}}
 +
 
|}
 
|}
 +
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
 +
 
{{Planetbox
 
{{Planetbox
 +
 
|Class=Planet
 
|Class=Planet
 +
 
|File=Image-needed.png
 
|File=Image-needed.png
 +
 
|Parent=Gilly
 
|Parent=Gilly
 +
 
|apoap=1337000
 
|apoap=1337000
 +
 
|periap=470000
 
|periap=470000
 +
 
|orbinc=7.4
 
|orbinc=7.4
 +
 
|anomaly=4.2
 
|anomaly=4.2
 +
 
|radius=10000
 
|radius=10000
 +
 
|sidrot=3600
 
|sidrot=3600
 +
 
|SoI=200000
 
|SoI=200000
 +
 
|highest=2357
 
|highest=2357
 +
 
|atmosyorn=Yes
 
|atmosyorn=Yes
 +
 
|atmosatm=1
 
|atmosatm=1
 +
 
|atmossh=3000
 
|atmossh=3000
 +
 
|T-minC=-42
 
|T-minC=-42
 +
 
|T-maxC=47
 
|T-maxC=47
 +
 
|O2yorn=no
 
|O2yorn=no
 +
 
}}
 
}}
  
 
== Dependencies ==
 
== Dependencies ==
 +
 
Some values are calculated automatically:
 
Some values are calculated automatically:
 +
 
* Periapsis: Semi-major axis, Orbital eccentricity, Orbital velocity
 
* Periapsis: Semi-major axis, Orbital eccentricity, Orbital velocity
 +
 
* Apoapsis: Semi-major axis, Orbital eccentricity, Orbital velocity
 
* Apoapsis: Semi-major axis, Orbital eccentricity, Orbital velocity
 +
 
* Orbital period: Orbital velocity
 
* Orbital period: Orbital velocity
 +
 
* Radius: Surface Area, Density, Surface Gravity, Synchronous Orbit
 
* Radius: Surface Area, Density, Surface Gravity, Synchronous Orbit
 +
 
* Mass: Gravitational Parameter, Density, Surface Gravity, Synchronous Orbit
 
* Mass: Gravitational Parameter, Density, Surface Gravity, Synchronous Orbit
 +
 
* Sidereal Rotation Period: Sidereal Rotational Velocity, Synchronous Orbit
 
* Sidereal Rotation Period: Sidereal Rotational Velocity, Synchronous Orbit
 +
 
* Scale Height: Atmospheric Height
 
* Scale Height: Atmospheric Height
 +
 
* Atmospheric pressure (in atm): Atmospheric pressure (in kPa)
 
* Atmospheric pressure (in atm): Atmospheric pressure (in kPa)
  
Line 122: Line 236:
  
 
== Parameters ==
 
== Parameters ==
 +
 
{| class="wikitable mw-datatable"
 
{| class="wikitable mw-datatable"
 +
 
! Name
 
! Name
 +
 
! Optional
 
! Optional
 +
 
! Description
 
! Description
 +
 
|-
 
|-
 +
 
| <tt>Name</tt>
 
| <tt>Name</tt>
 +
 
| Yes
 
| Yes
 +
 
| Name of celestial body. Used to determine mass. Default: <nowiki>{{PAGENAME}}</nowiki>
 
| Name of celestial body. Used to determine mass. Default: <nowiki>{{PAGENAME}}</nowiki>
 +
 
|-
 
|-
 +
 
| <tt>Class</tt>
 
| <tt>Class</tt>
 +
 
| No
 
| No
 +
 
| Class of celestial body
 
| Class of celestial body
 +
 
|-
 
|-
 +
 
| <tt>File</tt>
 
| <tt>File</tt>
 +
 
| No
 
| No
 +
 
| Filename to image of the celestial object
 
| Filename to image of the celestial object
 +
 
|-
 
|-
 +
 
| <tt>Parent</tt>
 
| <tt>Parent</tt>
 +
 
| Yes
 
| Yes
 +
 
| Object which this object does orbit. If net set it hides the orbital information. Default: Not set
 
| Object which this object does orbit. If net set it hides the orbital information. Default: Not set
 +
 
|-
 
|-
 +
 
| style="padding-left:2em" | <tt>apoap</tt>
 
| style="padding-left:2em" | <tt>apoap</tt>
 +
 
| No
 
| No
 +
 
| Apoapsis in meters
 
| Apoapsis in meters
 +
 
|-
 
|-
 +
 
| style="padding-left:2em" | <tt>periap</tt>
 
| style="padding-left:2em" | <tt>periap</tt>
 +
 
| Yes
 
| Yes
 +
 
| Periapsis in meters. Default: Apoapsis
 
| Periapsis in meters. Default: Apoapsis
 +
 
|-
 
|-
 +
 
| style="padding-left:2em" | <tt>orbinc</tt>
 
| style="padding-left:2em" | <tt>orbinc</tt>
 +
 
| No
 
| No
 +
 
| Orbital inclination in degrees.
 
| Orbital inclination in degrees.
 +
 
|-
 
|-
 +
 
| style="padding-left:2em" | <tt>anomaly</tt>
 
| style="padding-left:2em" | <tt>anomaly</tt>
 +
 
| No
 
| No
 +
 
| Mean anomaly in degrees
 
| Mean anomaly in degrees
 +
 
|-
 
|-
 +
 
| <tt>radius</tt>
 
| <tt>radius</tt>
 +
 
| No
 
| No
 +
 
| Radius in meters
 
| Radius in meters
 +
 
|-
 
|-
 +
 
| <tt>sidrot</tt>
 
| <tt>sidrot</tt>
 +
 
| No
 
| No
 +
 
| Siderial period in seconds
 
| Siderial period in seconds
 +
 
|-
 
|-
 +
 
| <tt>SoI</tt>
 
| <tt>SoI</tt>
 +
 
| No
 
| No
 +
 
| Sphere of influence in meters. Special value: ∞
 
| Sphere of influence in meters. Special value: ∞
 +
 
|-
 
|-
 +
 
| <tt>highest</tt>
 
| <tt>highest</tt>
 +
 
| Yes
 
| Yes
 +
 
| Highest elevation in meters. Default: Not set
 
| Highest elevation in meters. Default: Not set
 +
 
|-
 
|-
 +
 
| <tt>atmosyorn</tt>
 
| <tt>atmosyorn</tt>
 +
 
| Yes
 
| Yes
 +
 
| Does this celestial object have a atmosphere? '''No''' to hide. Default: Yes
 
| Does this celestial object have a atmosphere? '''No''' to hide. Default: Yes
 +
 
|-
 
|-
 +
 
| style="padding-left:2em" | <tt>atmosatm</tt>
 
| style="padding-left:2em" | <tt>atmosatm</tt>
 +
 
| No
 
| No
 +
 
| Atmospheric pressure in atm.
 
| Atmospheric pressure in atm.
 +
 
|-
 
|-
 +
 
| style="padding-left:2em" | <tt>atmossh</tt>
 
| style="padding-left:2em" | <tt>atmossh</tt>
 +
 
| No
 
| No
 +
 
| Atmospheric scale height in meters
 
| Atmospheric scale height in meters
 +
 
|-
 
|-
 +
 
| style="padding-left:2em" | <tt>T-minC</tt>
 
| style="padding-left:2em" | <tt>T-minC</tt>
 +
 
| No
 
| No
 +
 
| Lowest temperature in degrees celsius
 
| Lowest temperature in degrees celsius
 +
 
|-
 
|-
 +
 
| style="padding-left:2em" | <tt>T-maxC</tt>
 
| style="padding-left:2em" | <tt>T-maxC</tt>
 +
 
| No
 
| No
 +
 
| Highest temperature in degrees celsius
 
| Highest temperature in degrees celsius
 +
 
|-
 
|-
 +
 
| style="padding-left:2em" | <tt>O2yorn</tt>
 
| style="padding-left:2em" | <tt>O2yorn</tt>
 +
 
| No
 
| No
 +
 
| Is oxygen present?
 
| Is oxygen present?
 +
 
|}
 
|}
  
 
== Template ==
 
== Template ==
 +
 
<pre>{{Planetbox
 
<pre>{{Planetbox
 +
 
|Class=??
 
|Class=??
 +
 
|File=??
 
|File=??
|Parent=??  
+
 
 +
|Parent=??
 +
 
 
|apoap=??
 
|apoap=??
 +
 
|periap=??
 
|periap=??
 +
 
|orbinc=??
 
|orbinc=??
 +
 
|anomaly=??
 
|anomaly=??
 +
 
|radius=??
 
|radius=??
 +
 
|sidrot=??
 
|sidrot=??
 +
 
|SoI=??
 
|SoI=??
 +
 
|highest=??
 
|highest=??
 +
 
|atmosyorn=??
 
|atmosyorn=??
 +
 
|atmosatm=??
 
|atmosatm=??
 +
 
|atmossh=??
 
|atmossh=??
 +
 
|T-minC=??
 
|T-minC=??
 +
 
|T-maxC=??
 
|T-maxC=??
 +
 
|O2yorn=??
 
|O2yorn=??
 +
 
}}</pre>
 
}}</pre>
  
 
== Example ==
 
== Example ==
 +
 
Example used on this page:
 
Example used on this page:
 +
 
<pre>{{Planetbox
 
<pre>{{Planetbox
 +
 
|Class=Planet
 
|Class=Planet
 +
 
|File=Image-needed.png
 
|File=Image-needed.png
 +
 
|Parent=Gilly
 
|Parent=Gilly
 +
 
|apoap=1337000
 
|apoap=1337000
 +
 
|periap=470000
 
|periap=470000
 +
 
|orbinc=7.4
 
|orbinc=7.4
 +
 
|anomaly=4.2
 
|anomaly=4.2
 +
 
|orbps=36000
 
|orbps=36000
 +
 
|radius=10000
 
|radius=10000
 +
 
|sidrot=3600
 
|sidrot=3600
 +
 
|SoI=200000
 
|SoI=200000
 +
 
|highest=2357
 
|highest=2357
 +
 
|atmosyorn=yes
 
|atmosyorn=yes
 +
 
|atmosatm=1
 
|atmosatm=1
 +
 
|atmossh=3000
 
|atmossh=3000
 +
 
|T-minC=-42
 
|T-minC=-42
 +
 
|T-maxC=47
 
|T-maxC=47
 +
 
|O2yorn=no
 
|O2yorn=no
 +
 
}}</pre>
 
}}</pre>
  
 
<!--[[Category:Templates|Planetbox]]-->
 
<!--[[Category:Templates|Planetbox]]-->
 +
 
</noinclude>
 
</noinclude>

Revision as of 12:47, 22 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. For the mass it uses {{CelestialBodyMass}}

To deactivate orbital information (for example Kerbol) don't set {{{Parent}}}. 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
Name Yes Name of celestial body. Used to determine mass. Default: {{PAGENAME}}
Class No Class of celestial body
File No Filename to image of the celestial object
Parent Yes Object which this object does orbit. If net set it hides the orbital information. Default: Not set
apoap No Apoapsis in meters
periap Yes Periapsis in meters. Default: Apoapsis
orbinc No Orbital inclination in degrees.
anomaly No Mean anomaly in degrees
radius No Radius in meters
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=??

|File=??

|Parent=??

|apoap=??

|periap=??

|orbinc=??

|anomaly=??

|radius=??

|sidrot=??

|SoI=??

|highest=??

|atmosyorn=??

|atmosatm=??

|atmossh=??

|T-minC=??

|T-maxC=??

|O2yorn=??

}}

Example

Example used on this page:

{{Planetbox

|Class=Planet

|File=Image-needed.png

|Parent=Gilly

|apoap=1337000

|periap=470000

|orbinc=7.4

|anomaly=4.2

|orbps=36000

|radius=10000

|sidrot=3600

|SoI=200000

|highest=2357

|atmosyorn=yes

|atmosatm=1

|atmossh=3000

|T-minC=-42

|T-maxC=47

|O2yorn=no

}}