Difference between revisions of "Template:Infobox/Body"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Revert everything from last days)
(Use templates)
Line 180: Line 180:
 
|hu=[[w:hu:Apszispont|Apoapszis]]
 
|hu=[[w:hu:Apszispont|Apoapszis]]
 
|ja=[[w:ja:近点・遠点|軌道遠点]]}}
 
|ja=[[w:ja:近点・遠点|軌道遠点]]}}
|2=<span style="white-space:nowrap;">{{formatnum|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|semi-major axis}}*(1 + {{Body data|{{{name|{{BASEPAGENAME}}}}}|eccentricity}}) round 1}}}}&nbsp;{{lang|en=m|ru=м}} <ref name="centered" group="Note" /></span>}}
+
|2=<span style="white-space:nowrap;">{{formatnum|{{#expr: {{Body data/Apoapsis|{{{name|{{BASEPAGENAME}}}}}}} round 1}}}}&nbsp;{{lang|en=m|ru=м}} <ref name="centered" group="Note" /></span>}}
 
{{Infobox/Line|{{lang
 
{{Infobox/Line|{{lang
 
|en=[[w:Periapsis|Periapsis]]
 
|en=[[w:Periapsis|Periapsis]]
Line 199: Line 199:
 
|hu=[[w:hu:Apszispont|Periapszis]]
 
|hu=[[w:hu:Apszispont|Periapszis]]
 
|ja=[[w:ja:近点・遠点|軌道近点]]}}
 
|ja=[[w:ja:近点・遠点|軌道近点]]}}
|2=<span style="white-space:nowrap;">{{formatnum|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|semi-major axis}}*(1 - {{Body data|{{{name|{{BASEPAGENAME}}}}}|eccentricity}}) round 1}}}}&nbsp;{{lang|en=m|ru=м}} <ref name="centered" group="Note" /></span>}}
+
|2=<span style="white-space:nowrap;">{{formatnum|{{#expr: {{Body data/Periapsis|{{{name|{{BASEPAGENAME}}}}}}} round 1}}}}&nbsp;{{lang|en=m|ru=м}} <ref name="centered" group="Note" /></span>}}
 
{{Infobox/Line|{{lang
 
{{Infobox/Line|{{lang
 
|en=[[w:Orbital_eccentricity|Orbital eccentricity]]
 
|en=[[w:Orbital_eccentricity|Orbital eccentricity]]
Line 354: Line 354:
 
|fr=Longtemps éclipsé
 
|fr=Longtemps éclipsé
 
|de=Längste Zeit in den Schatten gestellt}}
 
|de=Längste Zeit in den Schatten gestellt}}
|{{#expr: ceil(((2 * (({{Body data|{{{name|{{BASEPAGENAME}}}}}|apoapsis}} + {{Body data|{{{name|{{BASEPAGENAME}}}}}|periapsis}}) / 2) * (({{Body data|{{{name|{{BASEPAGENAME}}}}}|apoapsis}} * {{Body data|{{{name|{{BASEPAGENAME}}}}}|periapsis}})^0.5)) / ((((2 * {{Body data|{{{name|{{BASEPAGENAME}}}}}|apoapsis}} * {{Body data|{{{name|{{BASEPAGENAME}}}}}|periapsis}}) / ({{Body data|{{{name|{{BASEPAGENAME}}}}}|apoapsis}} + {{Body data|{{{name|{{BASEPAGENAME}}}}}|periapsis}})) * ({{G}} * {{Body data|{{{name|{{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}}}}|mass}}))^0.5)) * ((asin({{Body data|{{{name|{{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}}}}|radius}} / (({{Body data|{{{name|{{BASEPAGENAME}}}}}|apoapsis}} * {{Body data|{{{name|{{BASEPAGENAME}}}}}|periapsis}})^0.5))) + (((({{Body data|{{{name|{{BASEPAGENAME}}}}}|apoapsis}} - {{Body data|{{{name|{{BASEPAGENAME}}}}}|periapsis}}) / ({{Body data|{{{name|{{BASEPAGENAME}}}}}|apoapsis}} + {{Body data|{{{name|{{BASEPAGENAME}}}}}|periapsis}})) * {{Body data|{{{name|{{Body data|{{{name|{{BASEPAGENAME}}}}}|parent}}}}}|radius}}) / (({{Body data|{{{name|{{BASEPAGENAME}}}}}|apoapsis}} * {{Body data|{{{name|{{BASEPAGENAME}}}}}|periapsis}})^0.5))))}}&nbsp;{{lang|en=s|ru=с}}}}}}}}
+
|{{#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;{{lang|en=s|ru=с}}}}}}}}
 
{{Infobox/Line|'''{{lang
 
{{Infobox/Line|'''{{lang
 
|en=Physical Characteristics
 
|en=Physical Characteristics
Line 434: Line 434:
 
|hu=[[w:hu:Tömeg|Tömeg]]
 
|hu=[[w:hu:Tömeg|Tömeg]]
 
|ja=[[w:ja:質量|質量]]}}
 
|ja=[[w:ja:質量|質量]]}}
|{{sigfigs|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}}^2 * {{Body data|{{{name|{{BASEPAGENAME}}}}}|gravity gees}} *9.80665 / {{G}}}}|8}}&nbsp;{{lang|en=kg|ru=кг}}}}
+
|{{sigfigs|{{#expr: {{Body data/Mass|{{{name|{{BASEPAGENAME}}}}}}}|8}}&nbsp;{{lang|en=kg|ru=кг}}}}
 
{{Infobox/Line|{{lang
 
{{Infobox/Line|{{lang
 
|en=[[w:Standard_gravitational_parameter|Standard gravitational parameter]]
 
|en=[[w:Standard_gravitational_parameter|Standard gravitational parameter]]
Line 451: Line 451:
 
|hu=[[w:Standard_gravitational_parameter|Gravitációs paraméter]]
 
|hu=[[w:Standard_gravitational_parameter|Gravitációs paraméter]]
 
|ja=[[w:Standard gravitational parameter|標準重力パラメータ]]}}
 
|ja=[[w:Standard gravitational parameter|標準重力パラメータ]]}}
|{{sigfigs|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|mass}} * {{G}}}}|8}}&nbsp;{{lang|en=m|ru=м}}<sup>3</sup>/{{lang|en=s|ru=с}}<sup>2</sup>}}
+
|{{sigfigs|{{#expr: {{Body data/Mass|{{{name|{{BASEPAGENAME}}}}}}} * {{G}}}}|8}}&nbsp;{{lang|en=m|ru=м}}<sup>3</sup>/{{lang|en=s|ru=с}}<sup>2</sup>}}
 
{{Infobox/Line|{{lang
 
{{Infobox/Line|{{lang
 
|en=[[w:Density|Density]]
 
|en=[[w:Density|Density]]
Line 469: Line 469:
 
|hu=[[w:hu:Sűrűség|Sürűség]]
 
|hu=[[w:hu:Sűrűség|Sürűség]]
 
|ja=[[w:ja:密度|密度]]}}
 
|ja=[[w:ja:密度|密度]]}}
|{{sigfigs|{{#expr: {{Body data|{{{name|{{BASEPAGENAME}}}}}|mass}} / (4 * pi * {{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}}^3 / 3)}}|8}}&nbsp;{{lang|en=kg/m|ru=кг/м}}<sup>3</sup>}}
+
|{{sigfigs|{{#expr: {{Body data/Mass|{{{name|{{BASEPAGENAME}}}}}}} / (4 * pi * {{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}}^3 / 3)}}|8}}&nbsp;{{lang|en=kg/m|ru=кг/м}}<sup>3</sup>}}
 
{{Infobox/Line|{{lang
 
{{Infobox/Line|{{lang
 
|en=[[w:Surface_gravity|Surface gravity]]
 
|en=[[w:Surface_gravity|Surface gravity]]
Line 505: Line 505:
 
|hu=[[w:hu:Kozmikus_sebességek|Szökési sebesség]]
 
|hu=[[w:hu:Kozmikus_sebességek|Szökési sebesség]]
 
|ja=[[w:ja:脱出速度|脱出速度]]}}
 
|ja=[[w:ja:脱出速度|脱出速度]]}}
|{{formatnum|{{#expr: (2 * {{G}} * {{Body data|{{{name|{{BASEPAGENAME}}}}}|mass}} / {{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}})^0.5}}|2}}&nbsp;{{lang|en=m/s|ru=м/с}}}}
+
|{{formatnum|{{#expr: (2 * {{G}} * {{Body data/Mass|{{{name|{{BASEPAGENAME}}}}}}} / {{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}})^0.5}}|2}}&nbsp;{{lang|en=m/s|ru=м/с}}}}
 
{{Infobox/Line|{{lang
 
{{Infobox/Line|{{lang
 
|en=[[w:Rotation_period|Sidereal rotation period]]
 
|en=[[w:Rotation_period|Sidereal rotation period]]
Line 574: Line 574:
 
|hu=Szinkronpálya
 
|hu=Szinkronpálya
 
|ja=同期軌道}}]]
 
|ja=同期軌道}}]]
|{{#if: {{Body data/SOI|{{{name|{{BASEPAGENAME}}}}}}}{{#ifexpr: {{OrbitAltitude/Core|{{Body data|{{{name|{{BASEPAGENAME}}}}}|sidrot}}|{{Body data|{{{name|{{BASEPAGENAME}}}}}|mass}}|{{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}}}} < {{Body data/SOI|{{{name|{{BASEPAGENAME}}}}}}}|1}}|{{OrbitAltitude | radius={{Body data|{{{name|{{BASEPAGENAME}}}}}|radius}} | mass={{Body data|{{{name|{{BASEPAGENAME}}}}}|mass}} | period={{Body data|{{{name|{{BASEPAGENAME}}}}}|sidrot}}|factor=k}}|{{lang
+
|{{#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}}|{{lang
 
|en=Outside sphere of influence
 
|en=Outside sphere of influence
 
|es=Afuera de la esfera de influncía
 
|es=Afuera de la esfera de influncía
Line 894: Line 894:
 
|name=
 
|name=
 
|class=
 
|class=
|biomes=
 
 
|file=
 
|file=
 
|parent=
 
|parent=
 
|semi-major axis=
 
|semi-major axis=
|apoapsis=
 
|periapsis=
 
 
|eccentricity=
 
|eccentricity=
 
|orbinc=
 
|orbinc=
Line 906: Line 903:
 
|anomaly=
 
|anomaly=
 
|radius=
 
|radius=
|mass=
 
 
|gravity gees=
 
|gravity gees=
 
|sidrot=
 
|sidrot=

Revision as of 17:12, 10 May 2018

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=
|highest=
|highest latitude=
|highest longitude=
|pressure=
|scale height=
|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

To translate this template see also this article.

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): Everything supported
  • Français (French): Everything supported
  • Русский (Russian): Everything supported
  • Polski (Polish): Everything supported
  • German (Deutsch): Everything supported
  • Portuguese (Português) Some parameters supported
  • Swedish (Svenska): Most parameters supported
  • Thai (ไทย): Some 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