Difference between revisions of "Template:Infobox/Body"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!typos in sider(i)al;)
(-apoap, periap and Parent; *BodyData/Sidereal orbit was renamed;)
Line 11: Line 11:
 
|Moon={{lang|en=Moon|nl=Maan|pl=Księżyc|ru=Спутник|de=Mond|pt=Lua|sv=Måne|zh-cn=卫星|tr=Uydu|ko=별}}
 
|Moon={{lang|en=Moon|nl=Maan|pl=Księżyc|ru=Спутник|de=Mond|pt=Lua|sv=Måne|zh-cn=卫星|tr=Uydu|ko=별}}
 
|#default={{{Class}}}
 
|#default={{{Class}}}
}}]] {{#if: {{{Parent|}}}|{{lang|en=of [[{{{Parent}}}]]|pl=obiega [[{{{Parent}}}/pl|{{{Parent}}}]]|ru=системы [[{{{Parent}}}/ru|{{{Parent}}}]]|de=von [[{{{Parent}}}/de|{{{Parent}}}]]|sv=till [[{{{Parent}}}/sv|{{{Parent}}}]]|zh-cn=绕转于[[{{{Parent}}}/zh-cn|{{{Parent}}}]]|tr=yörüngesinde[[{{{Parent}}}/tr|{{{Parent}}}]]|ko=의 [[{{{Parent}}}/ko|{{{Parent}}}]]}}}}
+
}}]] {{#if: {{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}|{{lang|en=of [[{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}]]|pl=obiega [[{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}/pl|{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}]]|ru=системы [[{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}/ru|{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}]]|de=von [[{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}/de|{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}]]|sv=till [[{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}/sv|{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}]]|zh-cn=绕转于[[{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}/zh-cn|{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}]]|tr=yörüngesinde[[{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}/tr|{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}]]|ko=의 [[{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}/ko|{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}]]}}}}
 
|-
 
|-
{{#if: {{{Parent|}}}|
+
{{#if: {{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}|
 
{{!}} colspan="2" {{!}} '''{{lang|en=Orbital Characteristics|ru=Орбитальные характеристики|nl=Baan Eigenschappen|fr=Caractéristiques Orbitales|pl=Charakterystyka Orbity|de=Orbitaleigenschaften|pt=Características orbitais|sv=Omloppsbana|zh-cn=轨道参数|tr=Yörünge Özellikleri|ko=궤도특성}}'''
 
{{!}} colspan="2" {{!}} '''{{lang|en=Orbital Characteristics|ru=Орбитальные характеристики|nl=Baan Eigenschappen|fr=Caractéristiques Orbitales|pl=Charakterystyka Orbity|de=Orbitaleigenschaften|pt=Características orbitais|sv=Omloppsbana|zh-cn=轨道参数|tr=Yörünge Özellikleri|ko=궤도특성}}'''
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} {{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]]|sv=[[w:sv:Halv_storaxel|Halv storaxel]]|zh-cn=[[w:zh-cn:半长轴|半长轴]]|tr=[[w:tr:Yarı Ana Eksen|Yarı Ana Eksen]]|ko=[[w:ko:긴반지름|반장축]]}}
 
{{!}} {{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]]|sv=[[w:sv:Halv_storaxel|Halv storaxel]]|zh-cn=[[w:zh-cn:半长轴|半长轴]]|tr=[[w:tr:Yarı Ana Eksen|Yarı Ana Eksen]]|ko=[[w:ko:긴반지름|반장축]]}}
{{!}} {{formatnum|{{#expr: ({{{apoap}}} + {{{periap|{{{apoap}}}}}})/2}}}}&nbsp;m <sup id="i-sma">([[#i-dis|1]])</sup>
+
{{!}} {{formatnum|{{#expr: ({{BodyData/Apoapsis|{{{Name|{{BASEPAGENAME}}}}}}} + {{BodyData/Periapsis|{{{Name|{{BASEPAGENAME}}}}}}})/2}}}}&nbsp;m <sup id="i-sma">([[#i-dis|1]])</sup>
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} {{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]]|sv=[[w:sv:Apsis|Apoapsis]]|zh-cn=[[w:zh-cn:拱点|远点高度]]|tr=[[w:tr:Tepe Noktası|Tepe Noktası]]|ko=[[w:Apoapsis|궤도최원점]]}}
 
{{!}} {{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]]|sv=[[w:sv:Apsis|Apoapsis]]|zh-cn=[[w:zh-cn:拱点|远点高度]]|tr=[[w:tr:Tepe Noktası|Tepe Noktası]]|ko=[[w:Apoapsis|궤도최원점]]}}
{{!}} {{formatnum|{{{apoap}}}}}&nbsp;m <sup id="i-ap">([[#i-dis|1]])</sup>
+
{{!}} {{formatnum|{{BodyData/Apoapsis|{{{Name|{{BASEPAGENAME}}}}}}}}}&nbsp;m <sup id="i-ap">([[#i-dis|1]])</sup>
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} {{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]]|sv=[[w:sv:Apsis|Periapsis]]|zh-cn=[[w:zh-cn:拱点|近点高度]]|pt=Periastro|tr=[[w:tr:Çukur Noktası|Çukur Noktası]]|ko=[[w:Periapsis|근점]]}}
 
{{!}} {{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]]|sv=[[w:sv:Apsis|Periapsis]]|zh-cn=[[w:zh-cn:拱点|近点高度]]|pt=Periastro|tr=[[w:tr:Çukur Noktası|Çukur Noktası]]|ko=[[w:Periapsis|근점]]}}
{{!}} {{formatnum|{{{periap|{{{apoap}}}}}}}}&nbsp;m <sup id="i-pe">([[#i-dis|1]])</sup>
+
{{!}} {{formatnum|{{BodyData/Periapsis|{{{Name|{{BASEPAGENAME}}}}}}}}}&nbsp;m <sup id="i-pe">([[#i-dis|1]])</sup>
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} {{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]]|sv=[[w:sv:Excentricitet|Excentricitet]]|zh-cn=[[w:zh-cn:离心率|离心率]]|tr=[[w:tr:Yörünge Merkez Kayması|Yörünge Merkez Kayması]]|ko=[[w:ko:궤도이심률|궤도이심률]]}}
 
{{!}} {{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]]|sv=[[w:sv:Excentricitet|Excentricitet]]|zh-cn=[[w:zh-cn:离心率|离心率]]|tr=[[w:tr:Yörünge Merkez Kayması|Yörünge Merkez Kayması]]|ko=[[w:ko:궤도이심률|궤도이심률]]}}
{{!}} {{#expr: 1-2/({{{apoap}}}/{{{periap|{{{apoap}}}}}}+1) round 2}}
+
{{!}} {{#expr: 1-2/({{BodyData/Apoapsis|{{{Name|{{BASEPAGENAME}}}}}}}/{{BodyData/Periapsis|{{{Name|{{BASEPAGENAME}}}}}}}+1) round 2}}
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} {{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]]|sv=[[w:sv:Banlutning|Inklination]]|zh-cn=[[w:zh-cn:轨道倾角|轨道倾角]]|tr=[[w:tr:Yörünge Eğikliği|Yörünge Eğikliği]]|ko=[[w:ko:궤도경사|궤도경사]]}}
 
{{!}} {{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]]|sv=[[w:sv:Banlutning|Inklination]]|zh-cn=[[w:zh-cn:轨道倾角|轨道倾角]]|tr=[[w:tr:Yörünge Eğikliği|Yörünge Eğikliği]]|ko=[[w:ko:궤도경사|궤도경사]]}}
Line 41: Line 41:
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} rowspan="2" {{!}} {{lang|en=[[w:Orbital_Period|Sidereal 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|Siderische Umlaufzeit]]|sv=[[w:sv:Siderisk_omloppstid|Omloppstid]]|zh-cn=[[w:zh-cn:公转周期|公转周期]]|tr=[[w:tr:Yörünge Periyodu|Yörünge Periyodu]]|ko=[[w:Orbital_Period|궤도 주기]]}}
 
{{!}} rowspan="2" {{!}} {{lang|en=[[w:Orbital_Period|Sidereal 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|Siderische Umlaufzeit]]|sv=[[w:sv:Siderisk_omloppstid|Omloppstid]]|zh-cn=[[w:zh-cn:公转周期|公转周期]]|tr=[[w:tr:Yörünge Periyodu|Yörünge Periyodu]]|ko=[[w:Orbital_Period|궤도 주기]]}}
{{!}} {{formatnum|{{#expr: {{BodyData/Sidereal Orbit|{{{Name|{{BASEPAGENAME}}}}}}} round 1 }}}}&nbsp;s
+
{{!}} {{formatnum|{{#expr: {{BodyData/Sidereal orbit|{{{Name|{{BASEPAGENAME}}}}}}} round 1 }}}}&nbsp;s
 
{{!}}- valign="top"
 
{{!}}- valign="top"
{{!}} style="font-size:smaller;" {{!}} {{ExpandTime|{{BodyData/Sidereal Orbit|{{{Name|{{BASEPAGENAME}}}}}}}}}
+
{{!}} style="font-size:smaller;" {{!}} {{ExpandTime|{{BodyData/Sidereal orbit|{{{Name|{{BASEPAGENAME}}}}}}}}}
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} {{#ifeq: {{{Name|{{BASEPAGENAME}}}}}|Kerbin||rowspan="2"}} {{!}} {{lang|en=Synodic orbital period|pl=Synodyczny okres orbitalny|de=Synodische Umlaufzeit|zh-cn=会合周期}}
 
{{!}} {{#ifeq: {{{Name|{{BASEPAGENAME}}}}}|Kerbin||rowspan="2"}} {{!}} {{lang|en=Synodic orbital period|pl=Synodyczny okres orbitalny|de=Synodische Umlaufzeit|zh-cn=会合周期}}
{{!}} {{#ifeq: {{{Name|{{BASEPAGENAME}}}}}|Kerbin|{{lang|en=''Not defined''|pl=''Nie określony''|de=''Nicht definiert''|zh-cn=''未定义''}}|{{formatnum|{{#expr: {{OrbitSynodicPeriod|{{BodyData/Sidereal Orbit|{{{Name|{{BASEPAGENAME}}}}}}}|{{#ifeq: {{{Parent}}}|Kerbol|{{BodyData/Sidereal Orbit|Kerbin}}|{{BodyData/Sidereal Orbit|{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}}}}}}} round 1 }}}}&nbsp;s
+
{{!}} {{#ifeq: {{{Name|{{BASEPAGENAME}}}}}|Kerbin|{{lang|en=''Not defined''|pl=''Nie określony''|de=''Nicht definiert''|zh-cn=''未定义''}}|{{formatnum|{{#expr: {{OrbitSynodicPeriod|{{BodyData/Sidereal orbit|{{{Name|{{BASEPAGENAME}}}}}}}|{{#ifeq: {{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}|Kerbol|{{BodyData/Sidereal orbit|Kerbin}}|{{BodyData/Sidereal orbit|{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}}}}}}} round 1 }}}}&nbsp;s
 
{{!}}- valign="top"
 
{{!}}- valign="top"
{{!}} style="font-size:smaller;" {{!}} {{ExpandTime|{{OrbitSynodicPeriod|{{BodyData/Sidereal Orbit|{{{Name|{{BASEPAGENAME}}}}}}}|{{#ifeq: {{{Parent}}}|Kerbol|{{BodyData/Sidereal Orbit|Kerbin}}|{{BodyData/Sidereal Orbit|{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}}}}}}}}}}}
+
{{!}} style="font-size:smaller;" {{!}} {{ExpandTime|{{OrbitSynodicPeriod|{{BodyData/Sidereal orbit|{{{Name|{{BASEPAGENAME}}}}}}}|{{#ifeq: {{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}|Kerbol|{{BodyData/Sidereal orbit|Kerbin}}|{{BodyData/Sidereal orbit|{{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}}}}}}}}}}}
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} {{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]]|sv=[[w:sv:Omloppshastighet|Medelhastighet]]|zh-cn=[[w:zh-cn:轨道速度|轨道速度]]|tr=[[Yörünge Hızı|Yörünge Hızı]]}}
 
{{!}} {{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]]|sv=[[w:sv:Omloppshastighet|Medelhastighet]]|zh-cn=[[w:zh-cn:轨道速度|轨道速度]]|tr=[[Yörünge Hızı|Yörünge Hızı]]}}
{{!}} {{#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
+
{{!}} {{#ifeq: {{BodyData/Apoapsis|{{{Name|{{BASEPAGENAME}}}}}}}|{{BodyData/Periapsis|{{{Name|{{BASEPAGENAME}}}}}}}|{{#expr: 2*pi*{{BodyData/Apoapsis|{{{Name|{{BASEPAGENAME}}}}}}}/{{BodyData/Sidereal orbit|{{{Name|{{BASEPAGENAME}}}}}}} round 1}}|{{formatnum|{{#expr: pi*({{BodyData/Apoapsis|{{{Name|{{BASEPAGENAME}}}}}}}+{{BodyData/Periapsis|{{{Name|{{BASEPAGENAME}}}}}}})/{{BodyData/Sidereal orbit|{{{Name|{{BASEPAGENAME}}}}}}}*({{BodyData/Periapsis|{{{Name|{{BASEPAGENAME}}}}}}}/{{BodyData/Apoapsis|{{{Name|{{BASEPAGENAME}}}}}}})^(0.5) round 1}}}} to {{formatnum|{{#expr: pi*({{BodyData/Apoapsis|{{{Name|{{BASEPAGENAME}}}}}}}+{{BodyData/Periapsis|{{{Name|{{BASEPAGENAME}}}}}}})/{{BodyData/Sidereal orbit|{{{Name|{{BASEPAGENAME}}}}}}}*({{BodyData/Apoapsis|{{{Name|{{BASEPAGENAME}}}}}}}/{{BodyData/Periapsis|{{{Name|{{BASEPAGENAME}}}}}}})^(0.5) round 1}}}}}}&nbsp;m/s
 
}}
 
}}
 
|-
 
|-
Line 120: Line 120:
 
{{!}} {{#ifeq: {{{O2yorn}}}|Yes|{{Dict|Yes}}|{{Dict|No}}}}
 
{{!}} {{#ifeq: {{{O2yorn}}}|Yes|{{Dict|Yes}}|{{Dict|No}}}}
 
|{{Dict|No}}}}
 
|{{Dict|No}}}}
{{#if: {{{Parent|}}}|
+
{{#if: {{BodyData/Parent|{{{Name|{{BASEPAGENAME}}}}}}}|
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" style="font-size:smaller;" {{!}}
 
{{!}} colspan="2" style="font-size:smaller;" {{!}}
Line 171: Line 171:
 
| 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>
 
| 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>
 
| style="padding-left:2em" | <tt>orbinc</tt>
Line 223: Line 215:
 
|}
 
|}
  
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.
+
To orbital information is deactivated (for example [[Kerbol]]) when {{Tl|BodyData/Parent}} returns nothing. The atmospheric information is only visible when {{Tl|BodyData/Pressure}} returns a value higher than 0.
  
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.
+
For the apsides, parent, 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.
 
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.
Line 240: Line 232:
 
* Atmospheric pressure (in atm): Atmospheric pressure (in kPa), Atmospheric pressure at atmospheric height
 
* Atmospheric pressure (in atm): Atmospheric pressure (in kPa), Atmospheric pressure at atmospheric height
  
The ''Synodic orbital period'' is only defined when the parent is either [[Kerbol]] or [[Kerbin]] but not at Kerbin itself. Although in real life it is defined for all moons, but {{Tl|OrbitSynodicPeriod}} isn't able to calculate the period for non Kerbin moons.
+
The ''Synodic orbital period'' is not defined for [[Kerbin]].
  
 
== Template ==
 
== Template ==
Line 247: Line 239:
 
|Class=
 
|Class=
 
|File=
 
|File=
|Parent=
 
|apoap=
 
|periap=
 
 
|orbinc=
 
|orbinc=
 
|anomaly=
 
|anomaly=
Line 265: Line 254:
 
|Class=Planet
 
|Class=Planet
 
|File=Image-needed.png
 
|File=Image-needed.png
|Parent=Gilly
 
|apoap=1337000
 
|periap=470000
 
 
|orbinc=7.4
 
|orbinc=7.4
 
|pe arg=4
 
|pe arg=4

Revision as of 18:42, 15 July 2013

Template:Planetbox

Usage

Template:Data Template

Parameters

Name Optional Description
Name Yes Name of celestial body. Used to determine mass. Default: {{BASEPAGENAME}}

Template:ParameterRow

Class No Class of celestial body. This will be translated!
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
orbinc No Orbital inclination in degrees.
pe arg No Argument of periapsis
an arg No Longitude of the ascending node
anomaly No Mean anomaly in radians for UT 0s
sidrot No Sidereal period in seconds
SoI No Sphere of influence in meters. Special value: ∞
highest Yes Highest elevation in meters. Default: Not set
Atmospheric data are only needed if it has an atmosphere
T-minC No Lowest temperature in degrees celsius
T-maxC No Highest temperature in degrees celsius
O2yorn No Is oxygen present? (Yes/No)

To orbital information is deactivated (for example Kerbol) when {{BodyData/Parent}} returns nothing. The atmospheric information is only visible when {{BodyData/Pressure}} returns a value higher than 0.

For the apsides, parent, mass, radius, pressure at sea-level and scale height it uses the {{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

Some values are calculated automatically:

  • Periapsis: Semi-major axis, Orbital eccentricity, Sidereal orbital period, Synodic orbital period, Orbital velocity
  • Apoapsis: Semi-major axis, Orbital eccentricity, Sidereal orbital period, Synodic orbital period, 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), Atmospheric pressure at atmospheric height

The Synodic orbital period is not defined for Kerbin.

Template

{{Planetbox
|Name=
|Class=
|File=
|orbinc=
|anomaly=
|sidrot=
|SoI=
|highest=
|T-minC=
|T-maxC=
|O2yorn=
}}

Example

Example used on this page:

{{Planetbox
|Class=Planet
|File=Image-needed.png
|orbinc=7.4
|pe arg=4
|an arg=7
|anomaly=4.2
|orbps=36000
|sidrot=3600
|SoI=200000
|highest=2357
|T-minC=-42
|T-maxC=47
|O2yorn=no
}}

Translating

To translate this template see also this article.

This template support following languages:

  • 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
  • Portuguese (Português) Some parameters supported
  • Swedish (Svenska): Most parameters supported
  • Turkish (Türkçe): Most parameters supported