Difference between revisions of "Template:Infobox/Body"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (if to parser function)
 
(289 intermediate revisions by 33 users not shown)
Line 1: Line 1:
<includeonly><div style="background: #f6f6f6; border: 1px solid #ccc; float: right; width: 280px; margin-left: 1em">
+
<includeonly>{{Infobox|width=280
<div style="background: #ccc; font-size: large; padding: .5em; text-align: center">{{{Name|{{BASEPAGENAME}}}}}</div>
+
|name={{{transcription|{{Body data/Name|{{{name|{{BASEPAGENAME}}}}}}}}}}
<div style="background: #000">[[File:{{{File|Image-needed.png}}}|280px|Planet image]]</div>
+
{{#if: {{{transcription|}}}{{#ifeq: {{Body data/Name|{{{name|{{BASEPAGENAME}}}}}}}|{{{name|{{BASEPAGENAME}}}}}||1}}|({{{name|{{BASEPAGENAME}}}}})}}
{| style="padding: 0.5em; font-size: 90%" valign="top"
+
|file={{Body data|{{{name|{{BASEPAGENAME}}}}}|file}}
| 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.|ru={{{Name|{{BASEPAGENAME}}}}} с орбиты.|de={{{Name|{{BASEPAGENAME}}}}} vom Orbit aus gesehen.}}</small>
+
|file style=background:black
|-
+
|notes={{#if: {{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}|<references group="Note">
| colspan="2" style="text-align: center;" | [[{{#switch: {{{Class}}}
+
<ref name="centered">{{Infobox/Body/Dict|note}}</ref></references>}}
|Star={{lang|en=Star|nl=Ster|pl=Gwiazda|ru=Звезда|de=Stern}}
+
|lines=
|Planet={{lang|en=Planet|nl=Planeet|pl=Planeta|ru=Планета|de=Planet|pt=Planeta}}
+
{{Infobox/Line|{{lang
|Dwarf Planet={{lang|en=Dwarf Planet|nl=Dwergplaneet|pl=Planeta Karłowata|ru=Карликовая планета|de=Zwergplanet}}
+
|en={{{name|{{BASEPAGENAME}}}}} as seen from orbit.
|Moon={{lang|en=Moon|nl=Maan|pl=Księżyc|ru=Спутник|de=Mond}}
+
|de={{{name|{{BASEPAGENAME}}}}} vom Orbit aus gesehen.
|#default={{{Class}}}
+
|es={{{name|{{BASEPAGENAME}}}}} como se ve desde la órbita.
}}]] {{#if: {{{Parent|}}}|{{lang|en=of [[{{{Parent}}}]]|pl=obiega [[{{{Parent}}}/pl|{{{Parent}}}]]|ru=системы [[{{{Parent}}}/ru|{{{Parent}}}]]|de=von [[{{{Parent}}}/de|{{{Parent}}}]]}}}}
+
|fr=La planète {{{name|{{BASEPAGENAME}}}}} vue depuis l'orbite.
|-
+
|hr=Pogled na {{{name|{{BASEPAGENAME}}}}} iz orbite.
{{#if: {{{Parent|}}}|
+
|hu={{{name|{{BASEPAGENAME}}}}} a pályáról nézve
{{!}} colspan="2" {{!}} '''{{lang|en=Orbital Characteristics|ru=Орбитальные характеристики|nl=Baan Eigenschappen|fr=Caractéristiques Orbitales|pl=Charakterystyka Orbity|de=Orbitaleigenschaften}}'''
+
|it={{{name|{{BASEPAGENAME}}}}} visto dall'orbita
{{!}}- valign="top"
+
|ja=軌道からみた{{Body data/Name|{{{name|{{BASEPAGENAME}}}}}}}
{{!}} {{lang|en=[[w:Semi-major axis|Semi-Major Axis]]|nl=Halve lange as|fr=[[w:fr:Demi-Grand Axe|Demi-Grand Axe]]|pl=[[w:pl:Półoś_wielka|Półoś wielka]]|ru=[[w:ru:Большая полуось|Большая полуось]]|de=[[w:de:Große Halbachse|Große Halbachse]]}}
+
|ko={{Body data/Name|{{{name|{{BASEPAGENAME}}}}}}} 을 궤도에서 바라본 모습이다.
{{!}} {{formatnum|{{#expr: ({{{apoap}}} + {{{periap|{{{apoap}}}}}})/2}}}}&nbsp;m
+
|nl={{{name|{{BASEPAGENAME}}}}} gezien vanuit de ruimte.
{{!}}- valign="top"
+
|pl={{{name|{{BASEPAGENAME}}}}} widok z orbity.
{{!}} {{lang|en=[[w:Apoapsis|Apoapsis]]|nl=[[w:nl:Apofocus en perifocus|Apofocus]]|fr=[[w:fr:Apoapside|Apoapside]]|pl=[[w:pl:Apocentrum|Apocentrum]]|ru=[[w:ru:Апоцентр_и_перицентр|Апоцентр]]|de=[[w:de:Apoapsis|Apoapsis]]}}
+
|pt={{{name|{{BASEPAGENAME}}}}} visto de uma órbita
{{!}} {{formatnum|{{{apoap}}}}}&nbsp;m
+
|ru={{Body data/Name|{{{name|{{BASEPAGENAME}}}}}}} - вид с орбиты.
{{!}}- valign="top"
+
|tr=Uzaydan görünen haliyle {{{name|{{BASEPAGENAME}}}}}
{{!}} {{lang|en=[[w:Periapsis|Periapsis]]|nl=[[w:nl:Apofocus en perifocus|Perifocus]]|fr=[[w:fr:Periapside|Periapside]]|pl=[[w:pl:Perycentrum|Perycentrum]]|ru=[[w:ru:Апоцентр_и_перицентр|Перицентр]]|de=[[w:de:Periapsis|Periapsis]]}}
+
|zh-cn=从轨道上看{{{name|{{BASEPAGENAME}}}}}。
{{!}} {{formatnum|{{{periap|{{{apoap}}}}}}}}&nbsp;m
+
}}|style=text-align: center; font-size:smaller;}}
{{!}}- valign="top"
+
{{Infobox/Line|[[{{Body data|{{{name|{{BASEPAGENAME}}}}}|class}}{{if lang}}|{{#switch: {{Body data|{{{name|{{BASEPAGENAME}}}}}|class}}
{{!}} {{lang|en=[[w:Orbital_eccentricity|Orbital Eccentricity]]|nl=[[w:nl:Eccentriciteit|Excentriciteit (astronomie)]]|fr=[[w:fr:Excentricité orbitale|Excentricité Orbitale]]|pl=[[w:Orbital_eccentricity|Ekscentryczność orbity]]|ru=[[w:ru:Эксцентриситет|Эксцентриситет]]|de=[[w:de:Exzentrizität (Astronomie)|Orbitale Exzentrizität]]}}
+
|Star={{Celestial/Dict|Star}}
{{!}} {{#expr: 1-2/({{{apoap}}}/{{{periap|{{{apoap}}}}}}+1) round 2}}
+
|Planet={{Celestial/Dict|Planet}}
{{!}}- valign="top"
+
|Dwarf planet={{Celestial/Dict|Dwarf}}
{{!}} {{lang|en=[[w:Orbital_Inclination|Orbital Inclination]]|nl=[[w:nl:Glooiingshoek|Glooiingshoek]]|fr=[[w:fr:Inclinaison|Inclinaison Orbitale]]|pl=[[w:pl:Inklinacja|Inklinacja orbity]]|ru=[[w:ru:Кеплеровы_элементы_орбиты#.D0.9D.D0.B0.D0.BA.D0.BB.D0.BE.D0.BD.D0.B5.D0.BD.D0.B8.D0.B5|Наклонение]]|de=[[w:de:Bahnneigung|Bahnneigung]]}}
+
|Moon={{Celestial/Dict|Moon}}
{{!}} {{{orbinc}}}&nbsp;°
+
|#default={{Body data|{{{name|{{BASEPAGENAME}}}}}|class}}[[Category:Infobox/Body with unrecognized class]]
{{!}}- valign="top"
+
}}]] {{#if: {{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}|{{Infobox/Body/Dict|of}} [[{{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}{{if lang}}|{{Celestial/Dict|{{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}}}]]
{{!}} {{lang|en=[[w:Mean_Anomaly|Mean Anomaly]]|fr=[[w:fr:Anomalie Moyenne|Anomalie Moyenne]]|pl=[[w:pl:Anomalia_średnia|Anomalia średnia]]|ru=[[w:ru:Элементы_орбиты#.D0.90.D0.BD.D0.BE.D0.BC.D0.B0.D0.BB.D0.B8.D0.B8|Средняя аномалия]]}}
+
}}|style=text-align: center;}}
{{!}} {{{anomaly}}}&nbsp;°
+
{{#if: {{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}|
{{!}}- valign="top"
+
{{Infobox/Line|'''{{Infobox/Body/Dict|orbital}}'''}}
{{!}} rowspan="2" {{!}} {{lang|en=[[w:Orbital_Period|Orbital Period]]|nl=[[w:nl:Omlooptijd (astronomie)|Omlooptijd]]|fr=[[w:fr:Période Orbitale|Période Orbitale]]|pl=[[w:pl:Okres_orbitalny|Okres orbitalny]]|ru=[[w:ru:Сидерический_период|Сидерический период]]|de=[[w:de:Umlaufzeit|Umlaufzeit]]}}
+
{{Infobox/Line|{{Infobox/Body/Dict|sma}}
{{!}} {{formatnum|{{#expr: {{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}} round 1 }}}}&nbsp;s
+
|2=<span style="white-space:nowrap;">{{formatnum|{{Body data|{{{name|{{BASEPAGENAME}}}}}|semi-major axis}}}}&nbsp;{{Dict|m}} <ref name="centered" group="Note" /></span>}}
{{!}}- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|apo}}
{{!}} style="font-size:smaller;" {{!}} {{ExpandTime|{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}}}}
+
|2=<span style="white-space:nowrap;">{{formatnum|{{#expr: {{Body data/Apoapsis|{{{name|{{BASEPAGENAME}}}}}}} round 1}}}}&nbsp;{{Dict|m}} <ref name="centered" group="Note" /></span>}}
{{!}}- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|per}}
{{!}} {{lang|en=[[w:Orbital_speed|Orbital Velocity]]|nl=[[w:nl:Omloopsnelheid (astronomie)|Omloopsnelheid]]|fr=[[w:Orbital_Velocity|Vélocité Orbitale]]|pl=[[w:pl:Prędkość_orbitalna|Prędkość orbitalna]]|ru=[[w:ru:Орбитальная_скорость|Орбитальная скорость]]|de=[[w:de:Bahngeschwindigkeit (Astronomie)|Bahngeschwindigkeit]]}}
+
|2=<span style="white-space:nowrap;">{{formatnum|{{#expr: {{Body data/Periapsis|{{{name|{{BASEPAGENAME}}}}}}} round 1}}}}&nbsp;{{Dict|m}} <ref name="centered" group="Note" /></span>}}
{{!}} {{#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}}}}}}&nbsp;m/s
+
{{Infobox/Line|{{Infobox/Body/Dict|ecc}}
}}
+
|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|eccentricity}} round 3}}}}
|-
+
{{Infobox/Line|{{Infobox/Body/Dict|inc}}
| colspan="2" | '''{{lang|en=Physical Characteristics|nl=Fysieke Eigenschappen|fr=Caractéristiques Physiques|pl=Charakterystyka fizyczna|ru=Физические характеристики|de=Physikalische Eigenschaften}}'''
+
|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|orbinc}} round 3 }}&nbsp;°}}
|- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|pe arg}}
| {{lang|en=[[w:Radius|Equatorial Radius]]|nl=[[w:nl:Radius|Equatoriale radius]]|fr=[[w:Radius|Rayon à l'Equateur]]|pl=[[w:pl:Promień_(geometria)|Promień równika]]|ru=[[w:ru:Радиус|Экваториальный радиус]]|de=[[w:de:Radius|Äquatorialradius]]}}
+
|{{Body data|{{{name|{{BASEPAGENAME}}}}}|pe arg}}&nbsp;°}}
| {{formatnum|{{BodyData/Radius|{{{Name|{{BASEPAGENAME}}}}}}}}}&nbsp;m
+
{{Infobox/Line|{{Infobox/Body/Dict|an arg}}
|- valign="top"
+
|{{Body data|{{{name|{{BASEPAGENAME}}}}}|an arg}}&nbsp;°}}
| {{lang|en=[[w:Surface Area|Surface Area]]|nl=[[w:nl:Oppervlakte|Oppervlakte]]|fr=[[w:fr:Surface Area|Surface]]|pl=[[w:pl:Pole_powierzchni|Pole powierzchni]]|ru=[[w:ru:Площадь_поверхности|Площадь поверхности]]|de=[[w:de:Flächeninhalt|Oberfläche]]}}
+
{{Infobox/Line|{{Infobox/Body/Dict|anomaly}}
| {{sigfigs|{{#expr: 4 * pi * {{BodyData/Radius|{{{Name|{{BASEPAGENAME}}}}}}}^2}}|8}} m<sup>2</sup>
+
|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|anomaly}} round 3}}&nbsp;{{Dict|rad}} <small>({{Infobox/Body/Dict|at}})</small>}}
|- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|period}}
| {{lang|en=[[w:Mass|Mass]]|nl=[[w:nl:Massa|Massa]]|fr=[[w:fr:Masse|Masse]]|pl=[[w:pl:Masa_(fizyka)|Masa]]|ru=[[w:ru:Масса|Масса]]|de=[[w:de:Masse (Physik)|Masse]]}}
+
|{{formatnum|{{#expr: {{Body data/Sidereal orbit|{{{name|{{BASEPAGENAME}}}}}}} round 1 }}}}&nbsp;{{Dict|s}}
| {{sigfigs|{{BodyData/Mass|{{{Name|{{BASEPAGENAME}}}}}}}|8}}&nbsp;kg
+
|<small>{{ExpandTime|{{Body data/Sidereal orbit|{{{name|{{BASEPAGENAME}}}}}}}}}</small>}}
|- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|synodic}}
| {{lang|en=[[w:Standard gravitational parameter|Gravitational Parameter]]|nl=[[w:nl:Gravitatieconstante|Gravitatieconstante]]|fr=[[w:fr:Paramètre gravitationnel standard|Paramètre gravitationnel standard]]|pl=[[w:Standard_gravitational_parameter|Parametr grawitacyjny]]|ru=[[w:Standard_gravitational_parameter|Гравитационный параметр]]|de=[[w:de:Gravitationsparameter|Gravitationsparamter]]}}
+
|{{#ifeq: {{{name|{{BASEPAGENAME}}}}}|Kerbin|''{{Infobox/Body/Dict|undefined}}''|{{formatnum|{{#expr: {{OrbitSynodicPeriod|{{Body data/Sidereal orbit|{{{name|{{BASEPAGENAME}}}}}}}|{{#ifeq: {{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}|Kerbol|{{Body data/Sidereal orbit|Kerbin}}|{{Body data/Sidereal orbit|{{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}}}}}}} round 1 }}|1}}&nbsp;{{Dict|s}}
| {{sigfigs|{{#expr: {{BodyData/Mass|{{{Name|{{BASEPAGENAME}}}}}}} * {{G}}}}|8}}&nbsp;m<sup>3</sup>/s<sup>2</sup>
+
|<small>{{#ifeq: {{{name|{{BASEPAGENAME}}}}}|Kerbin||{{ExpandTime|{{OrbitSynodicPeriod|{{Body data/Sidereal orbit|{{{name|{{BASEPAGENAME}}}}}}}|{{#ifeq: {{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}|Kerbol|{{Body data/Sidereal orbit|Kerbin}}|{{Body data/Sidereal orbit|{{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}}}}}}}}}</small>}}}}}}
|- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|velocity}}
| {{lang|en=[[w:Density|Density]]|nl=[[w:nl:Dichtheid (natuurkunde)|Dichtheid]]|fr=[[w:fr:Densité|Densité]]|pl=[[w:pl:Gęstość|Gęstość]]|ru=[[w:ru:Плотность|Плотность]]|de=[[w:de:Dichte|Dichte]]}}
+
|{{#ifeq: {{Body data|{{{name|{{BASEPAGENAME}}}}}|eccentricity}}|0|{{formatnum|{{#expr: 2 * pi * {{Body data|{{{name|{{BASEPAGENAME}}}}}|semi-major axis}} / {{Body data/Sidereal orbit|{{{name|{{BASEPAGENAME}}}}}}} round 1 }}}}|{{formatnum|{{#expr: 2 * pi * {{Body data|{{{name|{{BASEPAGENAME}}}}}|semi-major axis}} / {{Body data/Sidereal orbit|{{{name|{{BASEPAGENAME}}}}}}} * ((1 - {{Body data|{{{name|{{BASEPAGENAME}}}}}|eccentricity}}) / (1 + {{Body data|{{{name|{{BASEPAGENAME}}}}}|eccentricity}}))^(0.5) round 1 }}}} - {{formatnum|{{#expr: 2 * pi * {{Body data|{{{name|{{BASEPAGENAME}}}}}|semi-major axis}} / {{Body data/Sidereal orbit|{{{name|{{BASEPAGENAME}}}}}}} * ((1 + {{Body data|{{{name|{{BASEPAGENAME}}}}}|eccentricity}}) / (1 - {{Body data|{{{name|{{BASEPAGENAME}}}}}|eccentricity}}))^(0.5) round 1 }}}}}}&nbsp;{{Dict|m}}/{{Dict|s}}}}
| {{sigfigs|{{#expr: {{BodyData/Mass|{{{Name|{{BASEPAGENAME}}}}}}} / (4 * pi * {{BodyData/Radius|{{{Name|{{BASEPAGENAME}}}}}}}^3 / 3)}}|8}}&nbsp;kg/m<sup>3</sup>
+
{{#ifeq: {{Body data|{{{name|{{BASEPAGENAME}}}}}|class}}|Moon|{{Infobox/Line|{{Infobox/Body/Dict|eclipsed}}
|- valign="top"
+
|{{formatnum|{{#expr: ceil(((2 * (({{Body data/Apoapsis|{{{name|{{BASEPAGENAME}}}}}}} + {{Body data/Periapsis|{{{name|{{BASEPAGENAME}}}}}}}) / 2) * (({{Body data/Apoapsis|{{{name|{{BASEPAGENAME}}}}}}} * {{Body data/Periapsis|{{{name|{{BASEPAGENAME}}}}}}})^0.5)) / ((((2 * {{Body data/Apoapsis|{{{name|{{BASEPAGENAME}}}}}}} * {{Body data/Periapsis|{{{name|{{BASEPAGENAME}}}}}}}) / ({{Body data/Apoapsis|{{{name|{{BASEPAGENAME}}}}}}} + {{Body data/Periapsis|{{{name|{{BASEPAGENAME}}}}}}})) * ({{G}} * {{Body data/Mass|{{{name|{{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}}}}}}))^0.5)) * ((asin({{Body data|{{{name|{{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}}}}|radius}} / (({{Body data/Apoapsis|{{{name|{{BASEPAGENAME}}}}}}} * {{Body data/Periapsis|{{{name|{{BASEPAGENAME}}}}}}})^0.5))) + (((({{Body data/Apoapsis|{{{name|{{BASEPAGENAME}}}}}}} - {{Body data/Periapsis|{{{name|{{BASEPAGENAME}}}}}}}) / ({{Body data/Apoapsis|{{{name|{{BASEPAGENAME}}}}}}} + {{Body data/Periapsis|{{{name|{{BASEPAGENAME}}}}}}})) * {{Body data|{{{name|{{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}}}}|radius}}) / (({{Body data/Apoapsis|{{{name|{{BASEPAGENAME}}}}}}} * {{Body data/Periapsis|{{{name|{{BASEPAGENAME}}}}}}})^0.5))))}}}}&nbsp;{{Dict|s}}}}}}}}
| {{lang|en=[[w:Surface_gravity|Surface Gravity]]|nl=[[w:Surface_gravity|Oppervlaktezwaartekracht]]|fr=[[w:fr:Gravité de surface|Gravité de surface]]|pl=[[w:Surface_gravity|Grawitacja na powierzchni]]|ru=[[w:Ускорение_свободного_падения|Ускорение свободного падения]]|de=[[w:Surface gravity|Ober&shy;flächen&shy;schwer&shy;kraft]]}}
+
{{Infobox/Line|'''{{Infobox/Body/Dict|physical}}'''}}
| {{sigfigs|{{#expr: {{BodyData/Mass|{{{Name|{{BASEPAGENAME}}}}}}} * {{G}} / ({{BodyData/Radius|{{{Name|{{BASEPAGENAME}}}}}}}^2)}}|3}}&nbsp;m/s<sup>2</sup>
+
{{Infobox/Line|{{Infobox/Body/Dict|radius}}
|- valign="top"
+
|{{formatnum|{{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}}}}&nbsp;{{Dict|m}}}}
| {{lang|en=[[w:Escape_velocity|Escape Velocity]]|nl=[[w:nl:Ontsnappingssnelheid|Ontsnappingssnelheid]]|fr=[[w:fr:Vitesse de Libération|Vitesse de Libération]]|pl=[[w:pl:Prędkość_ucieczki|Prędkość ucieczki]]|ru=[[w:ru:Вторая_космическая_скорость|Вторая космическая скорость]]|de=[[w:de:Fluchtgeschwindigkeit|Fluchtgeschwindigkeit]]}}
+
{{Infobox/Line|{{Infobox/Body/Dict|circumference}}
| {{#expr: (2 * {{G}} * {{BodyData/Mass|{{{Name|{{BASEPAGENAME}}}}}}} / {{BodyData/Radius|{{{Name|{{BASEPAGENAME}}}}}}})^0.5 round2 }}&nbsp;m/s
+
|{{formatnum|{{#expr: 2 * pi * {{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}}}}}}&nbsp;{{Dict|m}}}}
|- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|area}}
| rowspan="2" | {{lang|en=[[w:Rotation_period|Sidereal Rotation Period]]|nl=[[w:nl:Rotatieperiode|Rotatieperiode]]|fr=[[w:fr:Période de Rotation|Période de Rotation]]|pl=[[w:pl:Okres_obrotu|Okres obrotu]]|ru=[[w:ru:Период_вращения|Период вращения]]|de=[[w:de:Rotationsperiode|Rotationsperiode]]}}
+
|{{sigfigs|{{#expr: 4 * pi * {{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}}^2}}|8}}&nbsp;{{Dict|m}}<sup>2</sup>}}
| {{sigfigs|{{{sidrot}}}|8}}&nbsp;s
+
{{Infobox/Line|{{Infobox/Body/Dict|mass}}
|- valign="top"
+
|{{sigfigs|{{Body data/Mass|{{{name|{{BASEPAGENAME}}}}}}}|8}}&nbsp;{{Dict|k}}{{Dict|g}}}}
| style="font-size:smaller;" | {{ExpandTime|{{{sidrot}}}}}
+
{{Infobox/Line|{{Infobox/Body/Dict|gravpar}}
|- valign="top"
+
|{{sigfigs|{{#expr: {{Body data/Mass|{{{name|{{BASEPAGENAME}}}}}}} * {{G}}}}|8}}&nbsp;{{Dict|m}}<sup>3</sup>/{{Dict|s}}<sup>2</sup>}}
| {{lang|en=[[w:Sidereal_time|Sidereal Rotational Velocity]]|nl=[[w:Sidereal_time|Sterrenomloop snelheid]]|fr=[[w:fr:Temps Sidéral|Temps Sidéral]]|pl=[[w:pl:Czas_gwiazdowy|Gwiazdowa prędkość obrotowa]]|ru=[[w:ru:Звёздное_время|Экваториальная скорость вращения]]|de=[[w:Sidereal time|Rotations&shy;geschwindig&shy;keit]]}}
+
{{Infobox/Line|{{Infobox/Body/Dict|density}}
| {{sigfigs|{{#expr: {{BodyData/Radius|{{{Name|{{BASEPAGENAME}}}}}}} * 2 * pi / {{{sidrot}}}}}|5}}&nbsp;m/s
+
|{{sigfigs|{{#expr: {{Body data/Mass|{{{name|{{BASEPAGENAME}}}}}}} / (4 * pi * {{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}}^3 / 3)}}|8}}&nbsp;{{Dict|k}}{{Dict|g}}/{{Dict|m}}<sup>3</sup>}}
|- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|gravity}}
| {{lang|en=[[w:Synchronous_orbit|Synchronous Orbit]]|nl=[[w:Synchronous_orbit|Synchrone omloop]]|fr=[[w:fr:Orbite Synchrone|Orbite Synchrone]]|pl=[[w:Synchronous_orbit|Orbita synchroniczna]]|ru=[[w:ru:Синхронная_орбита|Синхронная орбита]]|de=[[w:de:Geosynchrone Umlaufbahn|Synchrone Umlaufbahn]]}}
+
|{{sigfigs|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|gravity gees}} * 9.80665}}|3}}&nbsp;{{Dict|m}}/{{Dict|s}}<sup>2</sup> <small>({{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|gravity gees}} round 3 }}&nbsp;''{{Dict|g}}'')</small>}}
| {{#if: {{#ifeq: {{{SoI}}}|∞|1}}{{#ifexpr: {{OrbitAltitude/Core|{{{sidrot}}}|{{BodyData/Mass|{{{Name|{{BASEPAGENAME}}}}}}}|{{BodyData/Radius|{{{Name|{{BASEPAGENAME}}}}}}}}} < {{{SoI}}}|1}}|{{OrbitAltitude | radius={{BodyData/Radius|{{{Name|{{BASEPAGENAME}}}}}}} | mass={{BodyData/Mass|{{{Name|{{BASEPAGENAME}}}}}}} | period={{{sidrot}}}|factor=k}}|{{lang|en=Outside sphere of influence|pl=Poza sferą wpływów|ru=За пределами сферы влияния|de=Außerhalb der Sphere of Influence}}}}
+
{{Infobox/Line|{{Infobox/Body/Dict|escape}}
|- valign="top"
+
|{{formatnum|{{#expr: (2 * {{G}} * {{Body data/Mass|{{{name|{{BASEPAGENAME}}}}}}} / {{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}})^0.5}}|2}}&nbsp;{{Dict|m}}/{{Dict|s}}}}
| {{#if: {{#ifeq: {{{SoI|}}}|||1}}| rowspan="2" {{!}}}} {{lang|en=[[w:Sphere_of_influence_(astrodynamics)|Sphere of Influence]]|nl=[[w:nl:Invloedssfeer van een hemellichaam|Invloedssfeer]]|fr=[[w:Sphere_of_Influence_(astrodynamics)|Sphère d'Influence]]|pl=[[w:Sphere_of_influence_(astrodynamics)|Sfera wpływów]]|ru=[[w:Sphere_of_influence_(astrodynamics)|Сфера влияния]]|de=[[w:de:Sphere of Influence|Sphere of Influence]]}}
+
{{Infobox/Line|{{Infobox/Body/Dict|rotation}}
| {{#ifeq: {{{SoI|}}}|∞|∞|{{sigfigs|{{{SoI}}}|8}}&nbsp;m}}
+
|{{sigfigs|{{Body data|{{{name|{{BASEPAGENAME}}}}}|sidrot}}|8}}&nbsp;{{Dict|s}}
{{#if: {{#ifeq: {{{SoI|}}}|∞||1}}|
+
|<small>{{ExpandTime|{{Body data|{{{name|{{BASEPAGENAME}}}}}|sidrot}}}}</small>}}
{{!}}- valign="top"
+
{{#ifeq: {{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}|Kerbol|
{{!}} style="font-size:smaller;" {{!}} {{sigfigs|{{#expr: {{G}}*{{BodyData/Mass|{{{Name|{{BASEPAGENAME}}}}}}}/{{{SoI}}}^2 * 1000}}|3}} mm/
+
{{Infobox/Line|{{Infobox/Body/Dict|solar}}
}}
+
|{{sigfigs|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|sidrot}} / (1 - {{Body data|{{{name|{{BASEPAGENAME}}}}}|sidrot}} / {{Body data/Sidereal orbit|{{{name|{{BASEPAGENAME}}}}}}})}}|8}}&nbsp;{{Dict|s}}|<small>{{ExpandTime|({{Body data|{{{name|{{BASEPAGENAME}}}}}|sidrot}} / (1 - {{Body data|{{{name|{{BASEPAGENAME}}}}}|sidrot}} / {{Body data/Sidereal orbit|{{{name|{{BASEPAGENAME}}}}}}}))}}</small>}}}}
|- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|sidereal}}
{{#if: {{{highest|}}}|{{!}} {{lang|en=Highest elevation|pl=Najwyższe wzniesienie|ru=Наивысшая точка|de=Höchste Erhebung}} {{!}}{{!}} {{{highest}}}&nbsp;m}}
+
|{{sigfigs|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}} * 2 * pi / {{Body data|{{{name|{{BASEPAGENAME}}}}}|sidrot}}}}|5}}&nbsp;{{Dict|m}}/{{Dict|s}}}}
|-
+
{{Infobox/Line|{{Infobox/Body/Dict|sync}}
| colspan="2" | '''{{lang|en=Atmospheric Characteristics|nl=Atmosferische Eigenschappen|fr=Caractéristiques Atmosphériques|pl=Charakterystyka atmosfery|ru=Атмосферные характеристики|de=Atmosphärische Eigenschaften}}'''
+
|{{#if: {{Body data/SOI|{{{name|{{BASEPAGENAME}}}}}}}{{#ifexpr: {{OrbitAltitude/Core|{{Body data|{{{name|{{BASEPAGENAME}}}}}|sidrot}}|{{Body data/Mass|{{{name|{{BASEPAGENAME}}}}}}}|{{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}}}} < {{Body data/SOI|{{{name|{{BASEPAGENAME}}}}}}}|1}}|{{OrbitAltitude | radius={{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}} | mass={{Body data/Mass|{{{name|{{BASEPAGENAME}}}}}}} | period={{Body data|{{{name|{{BASEPAGENAME}}}}}|sidrot}}|factor=k}}|{{Infobox/Body/Dict|outside}}}}}}
|- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|soi}}
| {{lang|en=[[w:atmosphere|Atmosphere Present]]|nl=[[w:nl:Atmosfeer (astronomie)|Atmosfeer aanwezig]]|fr=[[w:atmosphere|Présence d'Atmosphère]]|pl=[[w:pl:Atmosfera|Atmosfera obecna]]|ru=[[w:ru:Атмосфера|Наличие атмосферы]]|de=[[w:de:Atmosphäre (Astronomie)|Atmosphäre anwesend]]}}
+
|{{#if: {{Body data/SOI|{{{name|{{BASEPAGENAME}}}}}}}|<span style="white-space:nowrap;">{{sigfigs|{{Body data/SOI|{{{name|{{BASEPAGENAME}}}}}}}|8}}&nbsp;{{Dict|m}} <ref name="centered" group="Note" /></span>|∞}}}}
| {{#ifexpr: {{BodyData/Pressure|{{{Name|{{BASEPAGENAME}}}}}}}>0|{{Planetbox/Dict|Yes}}
+
{{Infobox/Line|'''{{Infobox/Body/Dict|atmospheric}}'''}}
{{!}}- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|atmo}}
{{!}} rowspan="2" {{!}} {{lang|en=[[w:Atmospheric_pressure|Atmospheric Pressure]]|nl=[[w:nl:Luchtdruk|Atmosferische druk]]|fr=[[w:fr:Pression Atmosphérique|Pression Atmosphérique]]|pl=[[w:pl:Ciśnienie atmosferyczne|Ciśnienie atmosferyczne]]|ru=[[w:ru:Атмосферное_давление|Атмосферное давление]]|de=[[w:de:Druck (Physik)|Atmosphärischer Druck]]}}
+
|{{#ifexpr: {{#if: {{Body data|{{{name|{{BASEPAGENAME}}}}}|pressure}}|{{Body data|{{{name|{{BASEPAGENAME}}}}}|pressure}}|0}} > 0|{{Yes}}|{{No}}}}}}
{{!}} {{sigfigs|{{#expr: {{BodyData/Pressure|{{{Name|{{BASEPAGENAME}}}}}}} * 101.327}}|3}}&nbsp;kPa
+
{{#ifexpr: {{#if: {{Body data|{{{name|{{BASEPAGENAME}}}}}|pressure}}|{{Body data|{{{name|{{BASEPAGENAME}}}}}|pressure}}|0}} > 0|
{{!}}- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|pressure}}
{{!}} {{BodyData/Pressure|{{{Name|{{BASEPAGENAME}}}}}}}&nbsp;atm
+
|{{sigfigs|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|pressure}} * 101.325}}|6}}&nbsp;{{Dict|k}}{{Dict|Pa}}
{{!}}- valign="top"
+
|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|pressure}} round 6 }}&nbsp;{{Dict|atm}}}}
{{!}} {{lang|en=[[w:Scale_height|Scale Height]]|fr=[[w:fr:Hauteur_d'échelle|Hauteur_d'échelle]]|pl=[[w:Scale_height|Wysokość skali]]|ru=[[w:Scale_height|Шкала высоты]]|de=[[w:de:Skalenhöhe|Skalenhöhe]]}}
+
{{Infobox/Line|{{Infobox/Body/Dict|height}}
{{!}} {{BodyData/ScaleHeight|{{{Name|{{BASEPAGENAME}}}}}}}&nbsp;m
+
|{{formatnum|{{Body data|{{{name|{{BASEPAGENAME}}}}}|atmospheric height}}}}&nbsp;{{Dict|m}}
{{!}}- valign="top"
+
|<small>{{sigfigs|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|pressure}} * 1e-6}}|2}}&nbsp;{{Dict|atm}}</small>}}
{{!}} {{lang|en=Atmospheric Height|nl=Atmosferische hoogte|fr=Hauteur de l'Atmoshère|pl=Wysokość atmosfery|ru=Высота атмосферы|de=Atmosphärische Höhe}}
+
{{Infobox/Line|{{Infobox/Body/Dict|temp-min}}
{{!}} {{sigfigs|{{#expr: ln(1e-6) * -{{BodyData/ScaleHeight|{{{Name|{{BASEPAGENAME}}}}}}}}}|8}}&nbsp;m
+
|{{#if: {{Body data|{{{name|{{BASEPAGENAME}}}}}|min temp}}|{{Body data|{{{name|{{BASEPAGENAME}}}}}|min temp}}&nbsp;°C <small>{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|min temp}} + 273.15}}&nbsp;{{Dict|K}}</small>|{{Dict|Unknown}}}}}}
{{!}}- valign="top"
+
{{Infobox/Line|{{Infobox/Body/Dict|temp-max}}
{{!}} {{lang|en=[[w:Atmospheric_temperature|Temperature<sub>min</sub>]]|nl=[[w:Atmospheric_temperature|Temperatuur<sub>min</sub>]]|fr=[[w:Atmospheric_temperature|Température<sub>min</sub>]]|pl=[[w:pl:Temperatura|Temperatura<sub>min</sub>]]|ru=[[w:Atmospheric_temperature|Температура<sub>min</sub>]]|de=[[w:de:Lufttemperatur|Lufttemperatur<sub>min</sub>]]}}
+
|{{#if: {{Body data|{{{name|{{BASEPAGENAME}}}}}|max temp}}|{{Body data|{{{name|{{BASEPAGENAME}}}}}|max temp}}&nbsp;°C <small>{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|max temp}} + 273.15}}&nbsp;{{Dict|K}}</small>|{{Dict|Unknown}}}}}}
{{!}} {{#if: {{{T-minC}}}|{{{T-minC}}}&nbsp;°C <small>{{#expr: {{{T-minC}}} + 273.15}}&nbsp;K</small>|Unknown}}
+
{{Infobox/Line|{{Infobox/Body/Dict|oxygen}}
{{!}}- valign="top"
+
|{{#ifeq: {{uc:{{Body data|{{{name|{{BASEPAGENAME}}}}}|oxygen}}}}|YES|{{Yes}}|{{No}}}}}}}}
{{!}} {{lang|en=Temperature<sub>max</sub>|nl=Temperatuur<sub>max</sub>|fr=Température<sub>max</sub>|pl=Temperatura<sub>max</sub>|ru=Температура<sub>max</sub>|de=Lufttemperatur<sub>max</sub>}}
+
{{Infobox/Line|'''{{Infobox/Body/Dict|sci}}'''}}
{{!}} {{#if: {{{T-maxC}}}|{{{T-maxC}}}&nbsp;°C <small>{{#expr: {{{T-maxC}}} + 273.15}}&nbsp;K</small>|Unknown}}
+
{{Infobox/Line|{{Infobox/Body/Dict|surface}}
{{!}}- valign="top"
+
|{{#if: {{Body data|{{{name|{{BASEPAGENAME}}}}}|sci landed surf}}|{{#if: {{#ifexpr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|sci landed surf}} > 0|1}}|{{Body data|{{{name|{{BASEPAGENAME}}}}}|sci landed surf}}|''N/A''}}|''N/A''}}}}
{{!}} {{lang|en=[[w:Oxygen|Oxygen Present]]|nl=[[w:nl:Zuurstof|Zuurstof aanwezig]]|fr=[[w:fr:Oxygène|Présence d'Oxygène]]|pl=[[w:pl:Tlen|Tlen Obecny]]|ru=[[w:ru:Кислород|Наличие кислорода]]|de=[[w:de:Sauerstoff|Sauerstoff]]}}
+
{{Infobox/Line|{{Infobox/Body/Dict|splashed}}
{{!}} {{#ifeq: {{{O2yorn}}}|Yes|{{Planetbox/Dict|Yes}}|{{Planetbox/Dict|No}}}}
+
|{{#if: {{Body data|{{{name|{{BASEPAGENAME}}}}}|sci splashed surf}}|{{#if: {{#ifexpr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|sci splashed surf}} > 0|1}}|{{Body data|{{{name|{{BASEPAGENAME}}}}}|sci splashed surf}}|''N/A''}}|''N/A''}}}}
|{{Planetbox/Dict|No}}}}
+
{{#ifexpr: {{#if: {{Body data|{{{name|{{BASEPAGENAME}}}}}|pressure}}|{{Body data|{{{name|{{BASEPAGENAME}}}}}|pressure}}|0}} > 0|
|}
+
{{Infobox/Line|{{Infobox/Body/Dict|low-atmo}}
</div></includeonly><noinclude>
+
|{{#if: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|sci lower atmo}}|{{#if: {{#ifexpr: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|sci lower atmo}} > 0|1}}|{{BodyData|{{{name|{{BASEPAGENAME}}}}}|sci lower atmo}}|''N/A''}}|''N/A''}}}}
{{Planetbox
+
{{Infobox/Line|{{Infobox/Body/Dict|up-atmo}}
|Class=Planet
+
|{{#if: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|sci upper atmo}}|{{#if: {{#ifexpr: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|sci upper atmo}} > 0|1}}|{{BodyData|{{{name|{{BASEPAGENAME}}}}}|sci upper atmo}}|''N/A''}}|''N/A''}}}}}}
|File=Image-needed.png
+
{{Infobox/Line|{{Infobox/Body/Dict|near}}
|Parent=Gilly
+
|{{#if: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|sci near space}}|{{#if: {{#ifexpr: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|sci near space}} > 0|1}}|{{BodyData|{{{name|{{BASEPAGENAME}}}}}|sci near space}}|''N/A''}}|''N/A''}}}}
|apoap=1337000
+
{{Infobox/Line|{{Infobox/Body/Dict|outer}}
|periap=470000
+
|{{#if: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|sci outer space}}|{{#if: {{#ifexpr: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|sci outer space}} > 0|1}}|{{BodyData|{{{name|{{BASEPAGENAME}}}}}|sci outer space}}|''N/A''}}|''N/A''}}}}
|orbinc=7.4
+
{{Infobox/Line|{{Infobox/Body/Dict|recovery}}
|anomaly=4.2
+
|{{#if: {{Body data|{{{name|{{BASEPAGENAME}}}}}|sci recovery}}|{{#if: {{#ifexpr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|sci recovery}} > 0|1}}|{{Body data|{{{name|{{BASEPAGENAME}}}}}|sci recovery}}|''N/A''}}|''N/A''}}}}
|sidrot=3600
+
}}</includeonly><noinclude>{{Infobox/Body}}
|SoI=200000
 
|highest=2357
 
|T-minC=-42
 
|T-maxC=47
 
|O2yorn=no
 
}}
 
  
 
== Usage ==
 
== Usage ==
To avoid adding the information for each language this template should be used for each celestial body once (e.g. [[Duna/Data]]) and each page using that Planetbox (e.g. [[Duna]] itself) could use it with {{[[Duna/Data|:Duna/Data]]}}.
+
This template don't need any parameters and instead uses only {{Tl|Body data}} to gather the data. Because of this the orbital and physical properties are stored in a subpage named Param.
  
== Parameters ==
+
To orbital information is deactivated (for example [[Kerbol]]) when <nowiki>{{Body data}}</nowiki> for the property <tt>parent</tt> returns nothing. The atmospheric information is only visible when <nowiki>{{Body data}}</nowiki> for the property <tt>pressure</tt> returns a value higher than 0.
{| class="wikitable mw-datatable"
 
! Name
 
! Optional
 
! Description
 
|-
 
| <tt>Name</tt>
 
| Yes
 
| Name of celestial body. Used to determine mass. Default: <nowiki>{{BASEPAGENAME}}</nowiki>
 
|-
 
| <tt>Class</tt>
 
| No
 
| Class of celestial body. This will be translated!
 
|-
 
| <tt>File</tt>
 
| No
 
| Filename to image of the celestial object
 
|-
 
| <tt>Parent</tt>
 
| Yes
 
| Object which this object does orbit. If net set it hides the orbital information. Default: Not set
 
|-
 
| style="padding-left:2em" | <tt>apoap</tt>
 
| No
 
| Apoapsis in meters from parents center
 
|-
 
| style="padding-left:2em" | <tt>periap</tt>
 
| Yes
 
| Periapsis in meters from parents center. Default: Apoapsis
 
|-
 
| style="padding-left:2em" | <tt>orbinc</tt>
 
| No
 
| Orbital inclination in degrees.
 
|-
 
| style="padding-left:2em" | <tt>anomaly</tt>
 
| No
 
| Mean anomaly in degrees
 
|-
 
| <tt>sidrot</tt>
 
| No
 
| Siderial period in seconds
 
|-
 
| <tt>SoI</tt>
 
| No
 
| Sphere of influence in meters. Special value: ∞
 
|-
 
| <tt>highest</tt>
 
| Yes
 
| Highest elevation in meters. Default: Not set
 
|-
 
| colspan="3" | ''Atmospheric data are only needed if it has an atmosphere''
 
|-
 
| style="padding-left:2em" | <tt>T-minC</tt>
 
| No
 
| Lowest temperature in degrees celsius
 
|-
 
| style="padding-left:2em" | <tt>T-maxC</tt>
 
| No
 
| Highest temperature in degrees celsius
 
|-
 
| style="padding-left:2em" | <tt>O2yorn</tt>
 
| No
 
| Is oxygen present? (Yes/No)
 
|}
 
  
To deactivate orbital information (for example [[Kerbol]]) don't set <tt><nowiki>{{{Parent}}}</nowiki></tt>. The atmospheric information is only visible when {{Tl|BodyData/Pressure}} returns a value higher than 0.
+
Ingame the apsides are shown from the body surface. But because all values which depend on them needs to be from the center the values must be from the centers of the bodies.
 
 
If the periapsis isn't defined it will assume a circular orbit where the apoapsis is identical to the periapsis. For the mass, radius, pressure at sea-level and scale height it uses the {{Tl|BodyData}} templates.
 
 
 
Ingame the apsis is shown from the body surface. But because all values which depend on them needs to be from the center the values must be from the parent center.
 
  
 
== Dependencies ==
 
== Dependencies ==
 
Some values are calculated automatically:
 
Some values are calculated automatically:
* Periapsis: Semi-major axis, Orbital eccentricity, Orbital velocity
+
* Semi-major axis & Orbital eccentricity: Apoapsis, Periapsis, Synodic orbital period, Orbital velocity, Solar day, Sphere of influence
* Apoapsis: Semi-major axis, Orbital eccentricity, Orbital velocity
+
* Semi-major axis (km): Sidereal orbital period
* Orbital period: Orbital velocity
+
* Radius & Surface gravity: Mass, Sidereal orbital period, Density, Synchronous orbit, Orbital velocity
* Radius: Surface Area, Density, Surface Gravity, Synchronous Orbit
+
* Radius (km): Surface area
* Mass: Gravitational Parameter, Density, Surface Gravity, Synchronous Orbit
+
* Surface gravity (gees): Gravitational parameter, Sphere of influence
* Sidereal Rotation Period: Sidereal Rotational Velocity, Synchronous Orbit
+
* Sidereal rotation period (s): Sidereal rotational velocity, Synchronous orbit, Solar day
* Scale Height: Atmospheric Height
 
 
* Atmospheric pressure (in atm): Atmospheric pressure (in kPa)
 
* Atmospheric pressure (in atm): Atmospheric pressure (in kPa)
 +
 +
The ''Synodic orbital period'' is not defined for [[Kerbin]].
  
 
== Template ==
 
== Template ==
<pre>{{Planetbox
+
<pre>{{Infobox/Body}}</pre>
|Name=
+
 
|Class=
+
<pre>{{#switch: {{{1}}}
|File=
+
|name=
|Parent=  
+
|class=
|apoap=
+
|file=
|periap=
+
|parent=
 +
|semi-major axis=
 +
|eccentricity=
 
|orbinc=
 
|orbinc=
 +
|pe arg=
 +
|an arg=
 
|anomaly=
 
|anomaly=
 +
|radius=
 +
|gravity gees=
 
|sidrot=
 
|sidrot=
|SoI=
+
|pressure=
|highest=
+
|atmospheric height=
|T-minC=
+
|min temp=
|T-maxC=
+
|max temp=
|O2yorn=
+
|oxygen=
 +
|sci landed surf=
 +
|sci splashed surf=
 +
|sci lower atmo=
 +
|sci upper atmo=
 +
|sci border atmo=
 +
|sci near space=
 +
|sci outer space=
 +
|sci border space=
 +
|sci recovery=
 +
|#default={{{2|}}}
 
}}</pre>
 
}}</pre>
  
 
== Example ==
 
== Example ==
Example used on this page:
+
Example param subpage used for this page:
<pre>{{Planetbox
+
{{#tag:pre|{{msgnw:Infobox/Param}}}}
|Class=Planet
 
|File=Image-needed.png
 
|Parent=Gilly
 
|apoap=1337000
 
|periap=470000
 
|orbinc=7.4
 
|anomaly=4.2
 
|orbps=36000
 
|sidrot=3600
 
|SoI=200000
 
|highest=2357
 
|T-minC=-42
 
|T-maxC=47
 
|O2yorn=no
 
}}</pre>
 
  
 
== Translating ==
 
== Translating ==
This template support following languages:
+
When using this template, most of it is translated automatically. To translate this template or one of the subtemplates, go to the {{Tl|Infobox/Body/Dict}} template.
* English: Everything supported
 
* Nederlands (Dutch): Subsections (like “Orbital Characteristics”) and most of the columns are supported
 
* Français (French): Subsections (like “Orbital Characteristics”) and most of the columns are supported
 
* Русский (Russian): Everything supported
 
* Polski (Polish): Everything supported
 
* German (Deutsch): Everything supported
 
  
[[Category:Templates|Planetbox]]
+
[[Category:Infobox templates|Body]]</noinclude>
</noinclude>
 

Latest revision as of 11:18, 7 February 2020

Infobox
Infobox
Infobox as seen from orbit.
Planet of Gilly
Orbital Characteristics
Semi-major axis 1 807 000 m [Note 1]
Apoapsis 2 674 000 m [Note 1]
Periapsis 940 000 m [Note 1]
Orbital eccentricity 0.48
Orbital inclination 7.4 °
Argument of periapsis 4 °
Longitude of the ascending node 7 °
Mean anomaly 4.2 rad (at 0s UT)
Sidereal orbital period 5 300 957 s
245 d 2 h 29 m 16.5 s
Synodic orbital period 419 326.1 s
Orbital velocity 1 - 4 m/s
Physical Characteristics
Equatorial radius 10 000 m
Equatorial circumference 62 832 m
Surface area 1.2566371×109 m2
Mass 1.0000000×1020 kg
Standard gravitational parameter 6.6740800×109 m3/s2
Density 23 873 241 kg/m3
Surface gravity 66.7 m/s2 (6.806 g)
Escape velocity 1 155.34 m/s
Sidereal rotation period 3 600.0000 s
1 h 0 m 0 s
Sidereal rotational velocity 17.453 m/s
Synchronous orbit 119.88 km
Sphere of influence 26 260 587 m [Note 1]
Atmospheric Characteristics
Atmosphere present Yes
Atmospheric pressure 101.325 kPa
1 atm
Atmospheric height 40 000 m
1.0×10-6 atm
Temperaturemin -42 °C 231.15 K
Temperaturemax 47 °C 320.15 K
Oxygen present No
Scientific multiplier
Surface 10
Splashed 6
Lower atmosphere 8
Upper atmosphere 8
Near space 6
Outer space 6
Recovery 5

  1. 1.0 1.1 1.2 1.3 The distances are given from the body's center, not from the surface (unlike ingame)

Usage

This template don't need any parameters and instead uses only {{Body data}} to gather the data. Because of this the orbital and physical properties are stored in a subpage named Param.

To orbital information is deactivated (for example Kerbol) when {{Body data}} for the property parent returns nothing. The atmospheric information is only visible when {{Body data}} for the property pressure returns a value higher than 0.

Ingame the apsides are shown from the body surface. But because all values which depend on them needs to be from the center the values must be from the centers of the bodies.

Dependencies

Some values are calculated automatically:

  • Semi-major axis & Orbital eccentricity: Apoapsis, Periapsis, Synodic orbital period, Orbital velocity, Solar day, Sphere of influence
  • Semi-major axis (km): Sidereal orbital period
  • Radius & Surface gravity: Mass, Sidereal orbital period, Density, Synchronous orbit, Orbital velocity
  • Radius (km): Surface area
  • Surface gravity (gees): Gravitational parameter, Sphere of influence
  • Sidereal rotation period (s): Sidereal rotational velocity, Synchronous orbit, Solar day
  • Atmospheric pressure (in atm): Atmospheric pressure (in kPa)

The Synodic orbital period is not defined for Kerbin.

Template

{{Infobox/Body}}
{{#switch: {{{1}}}
|name=
|class=
|file=
|parent=
|semi-major axis=
|eccentricity=
|orbinc=
|pe arg=
|an arg=
|anomaly=
|radius=
|gravity gees=
|sidrot=
|pressure=
|atmospheric height=
|min temp=
|max temp=
|oxygen=
|sci landed surf=
|sci splashed surf=
|sci lower atmo=
|sci upper atmo=
|sci border atmo=
|sci near space=
|sci outer space=
|sci border space=
|sci recovery=
|#default={{{2|}}}
}}

Example

Example param subpage used for this page:

<noinclude>{{Data template used}}</noinclude>{{#switch: {{{1}}}
|name=Infobox
|class=Planet
|file=Image needed.svg
|parent=Gilly
|semi-major axis=1807000
|eccentricity=0.47980077476480365
|orbinc=7.4
|pe arg=4
|an arg=7
|anomaly=4.2
|radius=10000
|gravity gees=6.805667582711731
|sidrot=3600
|pressure=1
|atmospheric height=40000
|min temp=-42
|max temp=47
|oxygen=no
|sci landed surf=10
|sci splashed surf=6
|sci lower atmo=8
|sci upper atmo=8
|sci border atmo=20000
|sci near space=6
|sci outer space=6
|sci border space=100000
|sci recovery=5
|#default={{{2|}}}
}}

Translating

When using this template, most of it is translated automatically. To translate this template or one of the subtemplates, go to the {{Infobox/Body/Dict}} template.