Difference between revisions of "Template:Infobox/Body"
From Kerbal Space Program Wiki
m (!correct atmospheric height as the previous one was atmosatm*10^-6 at the atmospheric height;) |
(+translations for french and polish;) |
||
Line 3: | Line 3: | ||
<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|{{BASEPAGENAME}}}}} as seen from orbit.</small> | + | | colspan="2" style="text-align: center; width: 100%;" | <small>{{lang|en={{{Name|{{BASEPAGENAME}}}}} as seen from orbit.|fr=La planète {{{Name|{{BASEPAGENAME}}}}} vue depuis l'orbite.|pl={{{Name|{{BASEPAGENAME}}}}} widok z orbity.}}</small> |
|- | |- | ||
− | | colspan="2" style="text-align: center;" | [[{{{Class|??}}}]] {{#if: {{{Parent|}}}|of [[{{{Parent}}}]]}} | + | | colspan="2" style="text-align: center;" | [[{{{Class|??}}}]] {{#if: {{{Parent|}}}|{{lang|en=of [[{{{Parent}}}]]|pl=obiega [[{{{Parent}}}]]}}}} |
|- | |- | ||
{{#if: {{{Parent|}}}| | {{#if: {{{Parent|}}}| | ||
− | {{!}} colspan="2" {{!}} ''' | + | {{!}} colspan="2" {{!}} '''{{lang|en=Orbital Characteristics|ru=Орбитальные характеристики|nl=Baan Eigenschappen|fr=Caractéristiques Orbitales|pl=Charakterystyka Orbity}}''' |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{!}}- | {{!}}- | ||
− | {{!}} valign="top" rowspan="2" {{!}} [[w:Orbital_Period|Orbital Period]] | + | {{!}} {{lang|en=[[w:Semi-major axis|Semi-Major Axis]]|fr=[[w:fr:Demi-Grand Axe|Demi-Grand Axe]]|pl=[[w:pl:Półoś_wielka|Półoś wielka]]}} |
+ | {{!}} {{formatnum: {{#expr: ({{{apoap}}} + {{{periap|{{{apoap}}}}}})/2}}}} m | ||
+ | {{!}}- | ||
+ | {{!}} {{lang|en=[[w:Apoapsis|Apoapsis]]|fr=[[w:fr:Apoapside|Apoapside]]|pl=[[w:pl:Apocentrum|Apocentrum]]}} | ||
+ | {{!}} {{formatnum: {{{apoap}}}}} m | ||
+ | {{!}}- | ||
+ | {{!}} {{lang|en=[[w:Periapsis|Periapsis]]|fr=[[w:fr:Periapside|Periapside]]|pl=[[w:pl:Perycentrum|Perycentrum]]}} | ||
+ | {{!}} {{formatnum: {{{periap|{{{apoap}}}}}}}} m | ||
+ | {{!}}- | ||
+ | {{!}} {{lang|en=[[w:Orbital_eccentricity|Orbital Eccentricity]]|fr=[[w:fr:Excentricité orbitale|Excentricité Orbitale]]|pl=[[w:Orbital_eccentricity|Ekscentryczność orbity]]}} | ||
+ | {{!}} {{#expr: 1-2/({{{apoap}}}/{{{periap|{{{apoap}}}}}}+1) round 2}} | ||
+ | {{!}}- | ||
+ | {{!}} {{lang|en=[[w:Orbital_Inclination|Orbital Inclination]]|fr=[[w:fr:Inclinaison|Inclinaison Orbitale]]|pl=[[w:pl:Inklinacja|Inklinacja orbity]]}} | ||
+ | {{!}} {{{orbinc}}} ° | ||
+ | {{!}}- | ||
+ | {{!}} {{lang|en=[[w:Mean_Anomaly|Mean Anomaly]]|fr=[[w:fr:Anomalie Moyenne|Anomalie Moyenne]]|pl=[[w:pl:Anomalia_średnia|Anomalia średnia]]}} | ||
+ | {{!}} {{{anomaly}}} ° | ||
+ | {{!}}- | ||
+ | {{!}} valign="top" rowspan="2" {{!}} {{lang|en=[[w:Orbital_Period|Orbital Period]]|fr=[[w:fr:Période Orbitale|Période Orbitale]]|pl=[[w:pl:Okres_orbitalny|Okres orbitalny]]}} | ||
{{!}} {{formatnum: {{#expr: {{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}} round 1 }}}} s | {{!}} {{formatnum: {{#expr: {{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}} round 1 }}}} s | ||
{{!}}- | {{!}}- | ||
{{!}} <small>{{ExpandTime|{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}}}}</small> | {{!}} <small>{{ExpandTime|{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}}}}</small> | ||
− | {{ | + | {{!}}- |
+ | {{!}} {{lang|en=[[w:Orbital_speed|Orbital Velocity]]|fr=[[w:Orbital_Velocity|Vélocité Orbitale]]|pl=[[w:pl:Prędkość_orbitalna|Prędkość orbitalna]]}} | ||
+ | {{!}} {{#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" | ''' | + | | colspan="2" | '''{{lang|en=Physical Characteristics|nl=Fysieke Eigenschappen|fr=Caractéristiques Physiques|pl=Charakterystyka fizyczna}}''' |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | [[w:Radius|Equatorial Radius]] | + | | {{lang|en=[[w:Radius|Equatorial Radius]]|fr=[[w:Radius|Rayon à l'Equateur]]|pl=[[w:pl:Promień_(geometria)|Promień równika]]}} |
| {{formatnum: {{{radius}}}}} m | | {{formatnum: {{{radius}}}}} m | ||
|- | |- | ||
− | | [[w:Surface Area|Surface Area]] | + | | {{lang|en=[[w:Surface Area|Surface Area]]|fr=[[w:fr:Surface Area|Surface]]|pl=[[w:pl:Pole_powierzchni|Pole powierzchni]]}} |
| {{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]] | + | | {{lang|en=[[w:Mass|Mass]]|fr=[[w:fr:Masse|Masse]]|pl=[[w:pl:Masa_(fizyka)|Masa]]}} |
| {{sigfigs|{{CelestialBodyMass|{{{Name|{{BASEPAGENAME}}}}}}}|8}} kg | | {{sigfigs|{{CelestialBodyMass|{{{Name|{{BASEPAGENAME}}}}}}}|8}} kg | ||
|- | |- | ||
− | | [[w:Standard gravitational parameter|Gravitational Parameter]] | + | | {{lang|en=[[w:Standard gravitational parameter|Gravitational Parameter]]|fr=[[w:fr:Paramètre gravitationnel standard|Paramètre gravitationnel standard]]|pl=[[w:Standard_gravitational_parameter|Parametr grawitacyjny]]}} |
| {{sigfigs|{{#expr: {{CelestialBodyMass|{{{Name|{{BASEPAGENAME}}}}}}} * {{G}}}}|8}} m<sup>3</sup>/s<sup>2</sup> | | {{sigfigs|{{#expr: {{CelestialBodyMass|{{{Name|{{BASEPAGENAME}}}}}}} * {{G}}}}|8}} m<sup>3</sup>/s<sup>2</sup> | ||
|- | |- | ||
− | | [[w:Density|Density]] | + | | {{lang|en=[[w:Density|Density]]|fr=[[w:fr:Densité|Densité]]|pl=[[w:pl:Gęstość|Gęstość]]}} |
| {{sigfigs|{{#expr: {{CelestialBodyMass|{{{Name|{{BASEPAGENAME}}}}}}} / (4 * pi * {{{radius}}}^3 / 3)}}|8}} kg/m<sup>3</sup> | | {{sigfigs|{{#expr: {{CelestialBodyMass|{{{Name|{{BASEPAGENAME}}}}}}} / (4 * pi * {{{radius}}}^3 / 3)}}|8}} kg/m<sup>3</sup> | ||
|- | |- | ||
− | | [[w:Surface_gravity|Surface Gravity]] | + | | {{lang|en=[[w:Surface_gravity|Surface Gravity]]|fr=[[w:fr: |
+ | Gravité de surface|Gravité de surface]]|pl=[[w:Surface_gravity|Grawitacja na powierzchni]]}} | ||
| {{sigfigs|{{#expr: {{CelestialBodyMass|{{{Name|{{BASEPAGENAME}}}}}}} * {{G}} / ({{{radius}}}^2)}}|3}} m/s<sup>2</sup> | | {{sigfigs|{{#expr: {{CelestialBodyMass|{{{Name|{{BASEPAGENAME}}}}}}} * {{G}} / ({{{radius}}}^2)}}|3}} m/s<sup>2</sup> | ||
− | |||
− | |||
|- | |- | ||
− | | valign="top" rowspan="2" | [[w:Rotation_period|Sidereal Rotation Period]] | + | | {{lang|en=[[w:Escape_velocity|Escape Velocity]]|fr=[[w:fr:Vitesse de Libération|Vitesse de Libération]]|pl=[[w:pl:Prędkość_ucieczki|Prędkość ucieczki]]}} |
+ | | {{#expr: (2 * {{G}} * {{CelestialBodyMass|{{{Name|{{BASEPAGENAME}}}}}}} / {{{radius|1}}})^0.5 round2 }} m/s | ||
+ | |- | ||
+ | | valign="top" rowspan="2" | {{lang|en=[[w:Rotation_period|Sidereal Rotation Period]]|fr=[[w:fr:Période de Rotation|Période de Rotation]]|pl=[[w:pl:Okres_obrotu|Okres obrotu]]}} | ||
| {{sigfigs|{{{sidrot}}}|8}} s | | {{sigfigs|{{{sidrot}}}|8}} s | ||
|- | |- | ||
| <small>{{formatnum: {{ExpandTime|{{{sidrot}}}}}}}</small> | | <small>{{formatnum: {{ExpandTime|{{{sidrot}}}}}}}</small> | ||
− | |||
− | |||
|- | |- | ||
− | | [[w:Sphere_of_influence_(astrodynamics)|Sphere of Influence]] | + | | {{lang|en=[[w:Sidereal_time|Sidereal Rotational Velocity]]|fr=[[w:fr:Temps Sidéral|Temps Sidéral]]|pl=[[w:pl:Czas_gwiazdowy|Gwiazdowa prędkość obrotowa]]}} |
+ | | {{sigfigs|{{#expr: {{{radius}}} * 2 * pi / {{{sidrot}}}}}|5}} m/s | ||
+ | |- | ||
+ | | {{lang|en=[[w:Synchronous_orbit|Synchronous Orbit]]|fr=[[w:fr:Orbite Synchrone|Orbite Synchrone]]|pl=[[w:Synchronous_orbit|Orbita synchroniczna]]}} | ||
+ | | {{#if: {{#ifeq: {{{SoI}}}|∞|1}}{{#ifexpr: {{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{CelestialBodyMass|{{{Name|{{BASEPAGENAME}}}}}}} | period_s={{{sidrot}}} | suffix= }} < {{{SoI}}}|1}}|{{sigfigs|{{OrbitAltitude | radius_m={{{radius}}} | mass_kg={{CelestialBodyMass|{{{Name|{{BASEPAGENAME}}}}}}} | period_s={{{sidrot}}} | suffix= }}|8}} m|{{lang|en=Outside sphere of influence|pl=Poza strefą wpływów}}}} | ||
+ | |- | ||
+ | | {{lang|en=[[w:Sphere_of_influence_(astrodynamics)|Sphere of Influence]]|fr=[[w:Sphere_of_Influence_(astrodynamics)|Sphère d'Influence]]|pl=[[w:Sphere_of_influence_(astrodynamics)|Strefa wpływów]]}} | ||
| {{#ifeq: {{{SoI|}}}|∞|∞|{{sigfigs|{{{SoI}}}|8}} m}} | | {{#ifeq: {{{SoI|}}}|∞|∞|{{sigfigs|{{{SoI}}}|8}} m}} | ||
|- | |- | ||
− | {{#if: {{{highest|}}}|{{!}} Highest elevation {{!}}{{!}} {{{highest}}} m}} | + | {{#if: {{{highest|}}}|{{!}} {{lang|en=Highest elevation|pl=Najwyższe wzniesienie}} {{!}}{{!}} {{{highest}}} m}} |
+ | |- | ||
+ | | colspan="2" | '''{{lang|en=Atmospheric Characteristics|nl=Atmosferische Eigenschappen|fr=Caractéristiques Atmosphériques|pl=Charakterystyka atmosfery}}''' | ||
|- | |- | ||
− | | | + | | {{lang|en=[[w:atmosphere|Atmosphere Present]]|fr=[[w:atmosphere|Présence d'Atmosphère]]|pl=[[w:pl:Atmosfera|Atmosfera obecna]]}} |
− | + | | {{#if: {{{atmosatm|}}}|{{lang|en=Yes|fr=Oui|pl=Tak}}|{{lang|en=No|fr=Non|pl=Nie}}}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#if: {{{atmosatm|}}}| | {{#if: {{{atmosatm|}}}| | ||
− | {{ | + | {{!}}- |
− | {{ | + | {{!}} valign="top" rowspan="2" {{!}} {{lang|en=[[w:Atmospheric_pressure|Atmospheric Pressure]]|fr=[[w:fr:Pression Atmosphérique|Pression Atmosphérique]]|pl=[[w:pl:Ciśnienie atmosferyczne|Ciśnienie atmosferyczne]]}} |
− | {{ | + | {{!}} {{sigfigs|{{#expr: {{{atmosatm}}} * 101.327}}|3}} kPa |
− | {{ | + | {{!}} {{{atmosatm}}} atm |
− | {{ | + | {{!}}- |
− | {{ | + | {{!}} {{lang|en=[[w:Scale_height|Scale Height]]|fr=[[w:fr:Hauteur_d'échelle|Hauteur_d'échelle]]|pl=[[w:Scale_height|Wysokość skali]]}} |
− | {{ | + | {{!}} {{{atmossh}}} m |
+ | {{!}} {{lang|en=[[w:Atmospheric_height|Atmospheric Height]]|fr=[[w:Atmospheric_height|Hauteur de l'Atmoshère]]|pl=[[w:Atmospheric_height|Wysokość atmosfery]]}} | ||
+ | {{!}} {{sigfigs|{{#expr: ln(1e-6/{{{atmosatm}}}) * -{{{atmossh|}}}}}|8}} m | ||
+ | {{!}}- | ||
+ | {{!}} {{lang|en=[[w:Atmospheric_temperature|Temperature<sub>min</sub>]]|fr=[[w:Atmospheric_temperature|Température<sub>min</sub>]]|[[w:pl:Temperatura|Temperatura<sub>min</sub>]]}} | ||
+ | {{!}} {{#if: T-minC|{{{T-minC|??}}} °C <small>{{#expr: {{{T-minC}}} + 273.15}} K</small>|Unknown}} | ||
+ | {{!}}- | ||
+ | {{!}} {{lang|en=[[w:Atmospheric_temperature|Temperature<sub>max</sub>]]|fr=[[w:Atmospheric_temperature|Température<sub>max</sub>]]|[[w:pl:Temperatura|Temperatura<sub>max</sub>]]}} | ||
+ | {{!}} {{#if: T-maxC|{{{T-maxC|??}}} °C <small>{{#expr: {{{T-maxC}}} + 273.15}} K</small>|Unknown}} | ||
+ | {{!}}- | ||
+ | {{!}} {{lang|en=[[w:Oxygen|Oxygen Present]]|fr=[[w:fr:Oxygène|Présence d'Oxygène]]|pl=[[w:pl:Tlen|Tlen Obecny]]}} | ||
+ | {{!}} {{#ifeq: {{{O2yorn}}}|Yes|{{lang|en=Yes|fr=Oui|pl=Tak}}|{{lang|en=No|fr=Non|pl=Nie}}}} | ||
}} | }} | ||
|} | |} |
Revision as of 21:57, 3 March 2013
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: {{BASEPAGENAME}} |
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 |
atmosatm | Yes | Atmospheric pressure in atm. If this celestial body doesn't have an atmosphere don't set this value. Default: Not set |
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 |Name= |Class= |File= |Parent= |apoap= |periap= |orbinc= |anomaly= |radius= |sidrot= |SoI= |highest= |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 |atmosatm=1 |atmossh=3000 |T-minC=-42 |T-maxC=47 |O2yorn=no }}
Translating
At the moment only the captions of each “subsection” (like “Orbital Characteristics”) are translated. For each column description (like “Semi-Major Axis“) it is a little more complex but they will be implemented.