Difference between revisions of "Template:Infobox/Body"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*new template name; *lowercase name parameter;)
(*only lowercase parameters;)
Line 1: Line 1:
 
<includeonly><div style="background: #f6f6f6; border: 1px solid #ccc; float: {{if rtl|left|right}}; width: 280px; margin-left: 1em">
 
<includeonly><div style="background: #f6f6f6; border: 1px solid #ccc; float: {{if rtl|left|right}}; width: 280px; margin-left: 1em">
 
<div style="background: #ccc; font-size: large; padding: .5em; text-align: center">{{{transcription|{{BodyData/Name|{{{name|{{BASEPAGENAME}}}}}}}}}} {{#if: {{{transcription|}}}{{#ifeq: {{BodyData/Name|{{{name|{{BASEPAGENAME}}}}}}}|{{{name|{{BASEPAGENAME}}}}}||1}}|({{{name|{{BASEPAGENAME}}}}})}}</div>
 
<div style="background: #ccc; font-size: large; padding: .5em; text-align: center">{{{transcription|{{BodyData/Name|{{{name|{{BASEPAGENAME}}}}}}}}}} {{#if: {{{transcription|}}}{{#ifeq: {{BodyData/Name|{{{name|{{BASEPAGENAME}}}}}}}|{{{name|{{BASEPAGENAME}}}}}||1}}|({{{name|{{BASEPAGENAME}}}}})}}</div>
<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%" valign="top"
 
{| style="padding: 0.5em; font-size: 90%" valign="top"
 
| colspan="2" style="text-align: center; width: 100%;" | <small>{{lang
 
| colspan="2" style="text-align: center; width: 100%;" | <small>{{lang
Line 17: Line 17:
 
}}</small>
 
}}</small>
 
|-
 
|-
| colspan="2" style="text-align: center;" | [[{{{Class}}}{{if lang}}|{{#switch: {{{Class}}}
+
| colspan="2" style="text-align: center;" | [[{{{class}}}{{if lang}}|{{#switch: {{{class}}}
 
|Star={{lang|en=Star|cs=Hvězda|nl=Ster|pl=Gwiazda|ru=Звезда|de=Stern|pt=Estrela|sv=Stjärna|zh-cn=恒星|tr=Yıldız}}
 
|Star={{lang|en=Star|cs=Hvězda|nl=Ster|pl=Gwiazda|ru=Звезда|de=Stern|pt=Estrela|sv=Stjärna|zh-cn=恒星|tr=Yıldız}}
 
|Planet={{lang|en=Planet|nl=Planeet|pl=Planeta|ru=Планета|de=Planet|pt=Planeta|sv=Planet|zh-cn=行星|tr=Gezegen}}
 
|Planet={{lang|en=Planet|nl=Planeet|pl=Planeta|ru=Планета|de=Planet|pt=Planeta|sv=Planet|zh-cn=行星|tr=Gezegen}}
 
|Dwarf planet={{lang|en=Dwarf planet|nl=Dwergplaneet|pl=Planeta Karłowata|ru=Карликовая планета|de=Zwergplanet|pt=Planeta anão|sv=Dvärgplanet|zh-cn=矮行星|tr=Cüce Gezegen}}
 
|Dwarf planet={{lang|en=Dwarf planet|nl=Dwergplaneet|pl=Planeta Karłowata|ru=Карликовая планета|de=Zwergplanet|pt=Planeta anão|sv=Dvärgplanet|zh-cn=矮行星|tr=Cüce Gezegen}}
 
|Moon={{lang|en=Moon|nl=Maan|pl=Księżyc|ru=Спутник|de=Mond|it=Satellite|pt=Lua|sv=Måne|zh-cn=卫星|tr=Uydu|ko=별}}
 
|Moon={{lang|en=Moon|nl=Maan|pl=Księżyc|ru=Спутник|de=Mond|it=Satellite|pt=Lua|sv=Måne|zh-cn=卫星|tr=Uydu|ko=별}}
|#default={{{Class}}}
+
|#default={{{class}}}[[Category:Infobox/Body with unrecognized class]]
 
}}]] {{#if: {{BodyData/Parent|{{{name|{{BASEPAGENAME}}}}}}}|{{lang
 
}}]] {{#if: {{BodyData/Parent|{{{name|{{BASEPAGENAME}}}}}}}|{{lang
 
|en=of [[{{BodyData/Parent|{{{name|{{BASEPAGENAME}}}}}}}]]
 
|en=of [[{{BodyData/Parent|{{{name|{{BASEPAGENAME}}}}}}}]]
Line 108: Line 108:
 
|- valign="top"
 
|- valign="top"
 
| {{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]]|sv=[[w:sv:Geostationär_omloppsbana|Stationär bana]]|zh-cn=[[w:zh-cn:同步轨道|同步轨道高度]]|tr=[[w:tr:Eşzamanlı Yörünge|Eşzamanlı Yörünge]]|it=Orbita sincrona}}
 
| {{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]]|sv=[[w:sv:Geostationär_omloppsbana|Stationär bana]]|zh-cn=[[w:zh-cn:同步轨道|同步轨道高度]]|tr=[[w:tr:Eşzamanlı Yörünge|Eşzamanlı Yörünge]]|it=Orbita sincrona}}
| {{#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|sv=Ej möjlig|it=Fuori dalla sfera di influenza}}}}
+
| {{#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|sv=Ej möjlig|it=Fuori dalla sfera di influenza}}}}
 
|- valign="top"
 
|- valign="top"
 
| {{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]]|sv=[[w:sv:Hillsfär|Område]]|zh-cn=[[w:Sphere_of_influence_(astrodynamics)|作用范围]]|tr=[[w:tr:Etki Alanı|Etki Alanı]]|it=Sfera di influenza}}
 
| {{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]]|sv=[[w:sv:Hillsfär|Område]]|zh-cn=[[w:Sphere_of_influence_(astrodynamics)|作用范围]]|tr=[[w:tr:Etki Alanı|Etki Alanı]]|it=Sfera di influenza}}
| {{#ifeq: {{{SoI|}}}|∞|∞|{{sigfigs|{{{SoI}}}|8}}&nbsp;m}}
+
| {{#ifeq: {{{soi|}}}|∞|∞|{{sigfigs|{{{soi}}}|8}}&nbsp;m}}
 
|- valign="top"
 
|- valign="top"
 
{{#if: {{{highest|}}}|{{!}} {{lang|en=Highest elevation|pl=Najwyższe wzniesienie|ru=Наивысшая точка|de=Höchste Erhebung|sv=Högsta punkt|zh-cn=最高海拔高度|tr=Yüzeydeki Tepe İrtifa|it=Altitudine maggiore}} {{!}}{{!}} {{{highest}}}&nbsp;m}}
 
{{#if: {{{highest|}}}|{{!}} {{lang|en=Highest elevation|pl=Najwyższe wzniesienie|ru=Наивысшая точка|de=Höchste Erhebung|sv=Högsta punkt|zh-cn=最高海拔高度|tr=Yüzeydeki Tepe İrtifa|it=Altitudine maggiore}} {{!}}{{!}} {{{highest}}}&nbsp;m}}
Line 134: Line 134:
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} {{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>]]|sv=[[w:sv:Temperatur|Temperatur<sub>min</sub>]]|zh-cn=[[w:zh-cn:温度|大气温度(最低)]]|tr=[[w:tr:Atmosfer Sıcaklığı|Atmosfer Sıcaklığı]]}}
 
{{!}} {{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>]]|sv=[[w:sv:Temperatur|Temperatur<sub>min</sub>]]|zh-cn=[[w:zh-cn:温度|大气温度(最低)]]|tr=[[w:tr:Atmosfer Sıcaklığı|Atmosfer Sıcaklığı]]}}
{{!}} {{#if: {{{T-minC}}}|{{{T-minC}}}&nbsp;°C <small>{{#expr: {{{T-minC}}} + 273.15}}&nbsp;K</small>|Unknown}}
+
{{!}} {{#if: {{{min temp|}}}|{{{min temp}}}&nbsp;°C <small>{{#expr: {{{min temp}}} + 273.15}}&nbsp;K</small>|Unknown}}
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} {{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>|sv=Temperatur<sub>max</sub>|zh-cn=大气温度(最高)}}
 
{{!}} {{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>|sv=Temperatur<sub>max</sub>|zh-cn=大气温度(最高)}}
{{!}} {{#if: {{{T-maxC}}}|{{{T-maxC}}}&nbsp;°C <small>{{#expr: {{{T-maxC}}} + 273.15}}&nbsp;K</small>|Unknown}}
+
{{!}} {{#if: {{{max temp}}}|{{{max temp}}}&nbsp;°C <small>{{#expr: {{{max temp}}} + 273.15}}&nbsp;K</small>|Unknown}}
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} {{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]]|sv=[[w:sv:Syre|Syre]]|zh-cn=[[w:zh-cn:氧气|存在氧气]]|tr=[[w:tr:Oksijen|Oksijen Varlığı]]}}
 
{{!}} {{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]]|sv=[[w:sv:Syre|Syre]]|zh-cn=[[w:zh-cn:氧气|存在氧气]]|tr=[[w:tr:Oksijen|Oksijen Varlığı]]}}
{{!}} {{#ifeq: {{{O2yorn}}}|Yes|{{Dict|Yes}}|{{Dict|No}}}}
+
{{!}} {{#ifeq: {{uc:{{{oxygen}}}}}|YES|{{Yes}}|{{No}}}}
 
|{{Dict|No}}}}
 
|{{Dict|No}}}}
 
{{#if: {{BodyData/Parent|{{{name|{{BASEPAGENAME}}}}}}}|
 
{{#if: {{BodyData/Parent|{{{name|{{BASEPAGENAME}}}}}}}|
Line 149: Line 149:
 
}}
 
}}
 
|}
 
|}
</div></includeonly><noinclude>
+
</div></includeonly><noinclude>{{Infobox/Body
{{Infobox/Body
 
 
|name=Infobox
 
|name=Infobox
|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
Line 162: Line 158:
 
|anomaly=4.2
 
|anomaly=4.2
 
|sidrot=3600
 
|sidrot=3600
|SoI=200000
+
|soi=200000
 
|highest=2357
 
|highest=2357
|T-minC=-42
+
|min temp=-42
|T-maxC=47
+
|max temp=47
|O2yorn=no
+
|oxygen=no
 
}}
 
}}
  
Line 183: Line 179:
 
{{Parameter Row|transcription|Transcribed name for the celestial body.|{{Tlx|BodyData/Name|{{{name}}}}}}}
 
{{Parameter Row|transcription|Transcribed name for the celestial body.|{{Tlx|BodyData/Name|{{{name}}}}}}}
 
|-
 
|-
| <tt>Class</tt>
+
| <tt>class</tt>
 
| No
 
| No
 
| Class of celestial body. This will be translated!
 
| Class of celestial body. This will be translated!
 
|-
 
|-
| <tt>File</tt>
+
| <tt>file</tt>
 
| No
 
| No
 
| Filename to image of the celestial object
 
| Filename to image of the celestial object
Line 215: Line 211:
 
| Sidereal period in seconds
 
| Sidereal period in seconds
 
|-
 
|-
| <tt>SoI</tt>
+
| <tt>soi</tt>
 
| No
 
| No
 
| Sphere of influence in meters. Special value: ∞
 
| Sphere of influence in meters. Special value: ∞
Line 225: Line 221:
 
| colspan="3" | ''Atmospheric data are only needed if it has an atmosphere''
 
| colspan="3" | ''Atmospheric data are only needed if it has an atmosphere''
 
|-
 
|-
| style="padding-left:2em" | <tt>T-minC</tt>
+
| style="padding-left:2em" | <tt>min temp</tt>
 
| No
 
| No
 
| Lowest temperature in degrees celsius
 
| Lowest temperature in degrees celsius
 
|-
 
|-
| style="padding-left:2em" | <tt>T-maxC</tt>
+
| style="padding-left:2em" | <tt>max temp</tt>
 
| No
 
| No
 
| Highest temperature in degrees celsius
 
| Highest temperature in degrees celsius
Line 260: Line 256:
 
<pre>{{Infobox/Body
 
<pre>{{Infobox/Body
 
|name=
 
|name=
|Class=
+
|class=
|File=
+
|file=
 
|orbinc=
 
|orbinc=
 +
|pe arg=
 +
|an arg=
 
|anomaly=
 
|anomaly=
 
|sidrot=
 
|sidrot=
|SoI=
+
|soi=
 
|highest=
 
|highest=
|T-minC=
+
|min temp=
|T-maxC=
+
|max temp=
|O2yorn=
+
|oxygen=
 
}}</pre>
 
}}</pre>
  
Line 276: Line 274:
 
<pre>{{Infobox/Body
 
<pre>{{Infobox/Body
 
|name=Infobox
 
|name=Infobox
|Class=Planet
+
|class=Planet
|File=Image-needed.png
+
|file=Image-needed.png
 
|orbinc=7.4
 
|orbinc=7.4
 
|pe arg=4
 
|pe arg=4
 
|an arg=7
 
|an arg=7
 
|anomaly=4.2
 
|anomaly=4.2
|orbps=36000
 
 
|sidrot=3600
 
|sidrot=3600
|SoI=200000
+
|soi=200000
 
|highest=2357
 
|highest=2357
|T-minC=-42
+
|min temp=-42
|T-maxC=47
+
|max temp=47
|O2yorn=no
+
|oxygen=no
 
}}</pre>
 
}}</pre>
  

Revision as of 12:33, 19 July 2013

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

Template:Data Template

Parameters

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

Template:Parameter Row

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
min temp No Lowest temperature in degrees celsius
max temp 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

{{Infobox/Body
|name=
|class=
|file=
|orbinc=
|pe arg=
|an arg=
|anomaly=
|sidrot=
|soi=
|highest=
|min temp=
|max temp=
|oxygen=
}}

Example

Example used on this page:

{{Infobox/Body
|name=Infobox
|class=Planet
|file=Image-needed.png
|orbinc=7.4
|pe arg=4
|an arg=7
|anomaly=4.2
|sidrot=3600
|soi=200000
|highest=2357
|min temp=-42
|max temp=47
|oxygen=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
  • Italian (italiano): Some parameter supported