Difference between revisions of "Template:Infobox/Body"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (hungarian link updates)
(Fixed bug: All bodies show synchronous orbit, even when it is outside SOI)
 
(107 intermediate revisions by 21 users not shown)
Line 1: Line 1:
 
<includeonly>{{Infobox|width=280
 
<includeonly>{{Infobox|width=280
|name={{{transcription|{{BodyData/Name|{{{name|{{BASEPAGENAME}}}}}}}}}} {{#if: {{{transcription|}}}{{#ifeq: {{BodyData/Name|{{{name|{{BASEPAGENAME}}}}}}}|{{{name|{{BASEPAGENAME}}}}}||1}}|({{{name|{{BASEPAGENAME}}}}})}}
+
|name={{{transcription|{{Body data/Name|{{{name|{{BASEPAGENAME}}}}}}}}}}
|file={{BodyData|{{{name|{{BASEPAGENAME}}}}}|file}}
+
{{#if: {{{transcription|}}}{{#ifeq: {{Body data/Name|{{{name|{{BASEPAGENAME}}}}}}}|{{{name|{{BASEPAGENAME}}}}}||1}}|({{{name|{{BASEPAGENAME}}}}})}}
 +
|file={{Body data|{{{name|{{BASEPAGENAME}}}}}|file}}
 
|file style=background:black
 
|file style=background:black
|notes={{#if: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|parent}}|<references group="Note">
+
|notes={{#if: {{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}|<references group="Note">
<ref name="centered">{{lang|en=The distances are given from the bodies center not surface (unlike ingame)|es=las distancias están desde la centro de la planeta y no desde la superficie.(no como en el juego)|de=Die Entfernungen sind von den Zentren der Himmelskörper angeben (im Gegensatz zum Spiel)|hr=Udaljenosti su dane od središta tijela, a ne površine (za razliku od onih u igri).|hu=A távolságok az égitestek középpontjából vannak számítva, nem a felszítől(játékkal ellentétben)|pl=Dystans jest podawany z centrum planety a nie jej powierzchni (w przeciwieństwie do gry)|zh-cn=这是到天体中心而非表面的距离(不同于在游戏中)|it=Le distanze sono da riferirsi dal centro e no dalla superficie (a differenza del gioco)|ru=Расстояния указаны от центра тела, а не от поверхности (в отличие от игровых)|ko=위에 나와있는 수치는 게임과는 다르게 지면에서부터 측정한것이 아닌 중심에서 부터 측정한 것이다.|ja=距離は表面からではなく中心から(ゲーム内と異なる)}}</ref></references>}}
+
<ref name="centered">{{Infobox/Body/Dict|note}}</ref></references>}}
 
|lines=
 
|lines=
 
{{Infobox/Line|{{lang
 
{{Infobox/Line|{{lang
 
|en={{{name|{{BASEPAGENAME}}}}} as seen from orbit.
 
|en={{{name|{{BASEPAGENAME}}}}} as seen from orbit.
 +
|de={{{name|{{BASEPAGENAME}}}}} vom Orbit aus gesehen.
 
|es={{{name|{{BASEPAGENAME}}}}} como se ve desde la órbita.
 
|es={{{name|{{BASEPAGENAME}}}}} como se ve desde la órbita.
|de={{{name|{{BASEPAGENAME}}}}} vom Orbit aus gesehen.
 
 
|fr=La planète {{{name|{{BASEPAGENAME}}}}} vue depuis l'orbite.
 
|fr=La planète {{{name|{{BASEPAGENAME}}}}} vue depuis l'orbite.
 
|hr=Pogled na {{{name|{{BASEPAGENAME}}}}} iz orbite.
 
|hr=Pogled na {{{name|{{BASEPAGENAME}}}}} iz orbite.
 
|hu={{{name|{{BASEPAGENAME}}}}} a pályáról nézve
 
|hu={{{name|{{BASEPAGENAME}}}}} a pályáról nézve
 
|it={{{name|{{BASEPAGENAME}}}}} visto dall'orbita
 
|it={{{name|{{BASEPAGENAME}}}}} visto dall'orbita
 +
|ja=軌道からみた{{Body data/Name|{{{name|{{BASEPAGENAME}}}}}}}
 +
|ko={{Body data/Name|{{{name|{{BASEPAGENAME}}}}}}} 을 궤도에서 바라본 모습이다.
 
|nl={{{name|{{BASEPAGENAME}}}}} gezien vanuit de ruimte.
 
|nl={{{name|{{BASEPAGENAME}}}}} gezien vanuit de ruimte.
|ja=軌道からみた{{BodyData/Name|{{{name|{{BASEPAGENAME}}}}}}}
 
|ko={{BodyData/Name|{{{name|{{BASEPAGENAME}}}}}}} 을 궤도에서 바라본 모습이다.
 
 
|pl={{{name|{{BASEPAGENAME}}}}} widok z orbity.
 
|pl={{{name|{{BASEPAGENAME}}}}} widok z orbity.
|ru={{BodyData/Name|{{{name|{{BASEPAGENAME}}}}}}} - вид с орбиты.
+
|pt={{{name|{{BASEPAGENAME}}}}} visto de uma órbita
|sv={{{name|{{BASEPAGENAME}}}}} sedd från rymden.
+
|ru={{Body data/Name|{{{name|{{BASEPAGENAME}}}}}}} - вид с орбиты.
 
|tr=Uzaydan görünen haliyle {{{name|{{BASEPAGENAME}}}}}
 
|tr=Uzaydan görünen haliyle {{{name|{{BASEPAGENAME}}}}}
 
|zh-cn=从轨道上看{{{name|{{BASEPAGENAME}}}}}。
 
|zh-cn=从轨道上看{{{name|{{BASEPAGENAME}}}}}。
|pt={{{name|{{BASEPAGENAME}}}}} visto de uma órbita
 
 
}}|style=text-align: center; font-size:smaller;}}
 
}}|style=text-align: center; font-size:smaller;}}
{{Infobox/Line|[[{{BodyData|{{{name|{{BASEPAGENAME}}}}}|class}}{{if lang}}|{{#switch: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|class}}
+
{{Infobox/Line|[[{{Body data|{{{name|{{BASEPAGENAME}}}}}|class}}{{if lang}}|{{#switch: {{Body data|{{{name|{{BASEPAGENAME}}}}}|class}}
|Star={{lang|en=Star|es=Estrella|cs=Hvězda|nl=Ster|pl=Gwiazda|ru=Звезда|hr=Zvijezda|hu
+
|Star={{Celestial/Dict|Star}}
 +
|Planet={{Celestial/Dict|Planet}}
 +
|Dwarf planet={{
 
}}</includeonly><noinclude>{{Infobox/Body}}
 
}}</includeonly><noinclude>{{Infobox/Body}}
  
 
== Usage ==
 
== Usage ==
This template don't need any parameters and instead uses only {{Tl|BodyData}} to gather the data. Because of this the orbital and physical properties are stored in a subpage named Param.
+
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.
  
To orbital information is deactivated (for example [[Kerbol]]) when <nowiki>{{BodyData}}</nowiki> for the property <tt>parent</tt> returns nothing. The atmospheric information is only visible when <nowiki>{{BodyData}}</nowiki> for the property <tt>pressure</tt> returns a value higher than 0. The infobox does only display the science multiplier for low space and atmospheric flights, because the multiplier for the high space and atmosphere are identical. But the entries are still named <tt>sci near space</tt> and <tt>sci lower atmo</tt>.
+
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.
  
 
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.
 
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.
Line 134: Line 132:
 
== Dependencies ==
 
== Dependencies ==
 
Some values are calculated automatically:
 
Some values are calculated automatically:
* Periapsis: Semi-major axis, Orbital eccentricity, Sidereal orbital period, Synodic orbital period, Orbital velocity, Solar day, Sphere of influence
+
* Semi-major axis & Orbital eccentricity: Apoapsis, Periapsis, Synodic orbital period, Orbital velocity, Solar day, Sphere of influence
* Apoapsis: Semi-major axis, Orbital eccentricity, Sidereal orbital period, Synodic orbital period, Orbital velocity, Solar day, Sphere of influence
+
* 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, Sphere of influence
+
* Surface gravity (gees): Gravitational parameter, Sphere of influence
* Sidereal rotation period: Sidereal rotational velocity, Synchronous orbit, Solar day
+
* 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), Atmospheric pressure at atmospheric height
 
  
 
The ''Synodic orbital period'' is not defined for [[Kerbin]].
 
The ''Synodic orbital period'' is not defined for [[Kerbin]].
Line 153: Line 150:
 
|file=
 
|file=
 
|parent=
 
|parent=
|apoapsis=
+
|semi-major axis=
|periapsis=
+
|eccentricity=
 
|orbinc=
 
|orbinc=
 
|pe arg=
 
|pe arg=
Line 160: Line 157:
 
|anomaly=
 
|anomaly=
 
|radius=
 
|radius=
|mass=
+
|gravity gees=
 
|sidrot=
 
|sidrot=
|highest=
 
|highest latitude=
 
|highest longitude=
 
 
|pressure=
 
|pressure=
|scale height=
+
|atmospheric height=
 
|min temp=
 
|min temp=
 
|max temp=
 
|max temp=
 
|oxygen=
 
|oxygen=
|sci surf=
+
|sci landed surf=
 +
|sci splashed surf=
 
|sci lower atmo=
 
|sci lower atmo=
 
|sci upper atmo=
 
|sci upper atmo=
 +
|sci border atmo=
 
|sci near space=
 
|sci near space=
|sci outer space=1
+
|sci outer space=
 +
|sci border space=
 +
|sci recovery=
 
|#default={{{2|}}}
 
|#default={{{2|}}}
 
}}</pre>
 
}}</pre>
Line 183: Line 181:
  
 
== Translating ==
 
== Translating ==
To translate this template see also [[Kerbal_Space_Program_Wiki:Translation#Templates|this article]].
+
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.
 
 
This template supports the following languages:
 
* English: Everything supported
 
* Español (Spanish): Everything is supported but it needs to be proof-readed. Todo está apoyado pero necesita estar corregido.
 
* 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
 
* Italian (italiano): Some parameter supported
 
* Korean (한국어) : Everything supported
 
* Croatian (hrvatski) : Everything supported
 
* Hungarian (magyar) : Everything supported
 
* Japanese (日本語) : Everything supported
 
  
 
[[Category:Infobox templates|Body]]</noinclude>
 
[[Category:Infobox templates|Body]]</noinclude>

Latest revision as of 21:39, 15 November 2024

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.