Difference between revisions of "Template:Infobox/Body"
m (-theoretically removed all need for parameters; !calculate gees correctly;) |
(*changed the description that the parameters now supplied by a Param page; !don't show atmospheric properties when the value isn't set;) |
||
Line 92: | Line 92: | ||
{{Infobox/Line|'''{{lang|en=Atmospheric Characteristics|nl=Atmosferische Eigenschappen|fr=Caractéristiques Atmosphériques|pl=Charakterystyka atmosfery|ru=Атмосферные характеристики|de=Atmosphärische Eigenschaften|sv=Atmosfäriska data|zh-cn=大气特征|tr=Atmosfer Özellikleri|it=Caratteristiche Atmosferiche|ko=대기 특성}}'''}} | {{Infobox/Line|'''{{lang|en=Atmospheric Characteristics|nl=Atmosferische Eigenschappen|fr=Caractéristiques Atmosphériques|pl=Charakterystyka atmosfery|ru=Атмосферные характеристики|de=Atmosphärische Eigenschaften|sv=Atmosfäriska data|zh-cn=大气特征|tr=Atmosfer Özellikleri|it=Caratteristiche Atmosferiche|ko=대기 특성}}'''}} | ||
{{Infobox/Line|[[Atmosphere{{if lang}}|{{lang|en=Atmosphere present|nl=Atmosfeer aanwezig|fr=Présence d'Atmosphère|pl=Atmosfera obecna|ru=Наличие атмосферы|de=Atmosphäre vorhanden|sv=Atmosfär|zh-cn=存在大气层|tr=Atmosfer Varlığı|it=Presenza Atmosfera|ko=대기 존재 여부}}]] | {{Infobox/Line|[[Atmosphere{{if lang}}|{{lang|en=Atmosphere present|nl=Atmosfeer aanwezig|fr=Présence d'Atmosphère|pl=Atmosfera obecna|ru=Наличие атмосферы|de=Atmosphäre vorhanden|sv=Atmosfär|zh-cn=存在大气层|tr=Atmosfer Varlığı|it=Presenza Atmosfera|ko=대기 존재 여부}}]] | ||
− | |{{#ifexpr: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|pressure}}>0|{{Yes}}|{{No}}}}}} | + | |{{#if: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|pressure}}{{#ifexpr: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|pressure}}>0|1}}|{{Yes}}|{{No}}}}}} |
− | {{#ifexpr: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|pressure}}>0|{{Infobox/Line|{{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]]|sv=[[w:sv:Lufttryck|Tryck vid ytan]]|zh-cn=[[w:zh-cn:气压|海平面大气压强]]|tr=[[w:tr:Atmosfer Basıncı|Atmosfer Basıncı]]|ko=[[w:ko:대기압|대기압]]}} | + | {{#if: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|pressure}}{{#ifexpr: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|pressure}}>0|1}}|{{Infobox/Line|{{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]]|sv=[[w:sv:Lufttryck|Tryck vid ytan]]|zh-cn=[[w:zh-cn:气压|海平面大气压强]]|tr=[[w:tr:Atmosfer Basıncı|Atmosfer Basıncı]]|ko=[[w:ko:대기압|대기압]]}} |
|{{sigfigs|{{#expr: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|pressure}} * 101.325}}|6}} {{lang|en=kPa|ru=кПа}} | |{{sigfigs|{{#expr: {{BodyData|{{{name|{{BASEPAGENAME}}}}}|pressure}} * 101.325}}|6}} {{lang|en=kPa|ru=кПа}} | ||
|{{BodyData|{{{name|{{BASEPAGENAME}}}}}|pressure}} {{lang|en=atm|ru=атм}}}} | |{{BodyData|{{{name|{{BASEPAGENAME}}}}}|pressure}} {{lang|en=atm|ru=атм}}}} | ||
Line 107: | Line 107: | ||
{{Infobox/Line| {{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ığı]]|ko=[[w:ko:산소|대기중 산소 존재여부]]}} | {{Infobox/Line| {{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ığı]]|ko=[[w:ko:산소|대기중 산소 존재여부]]}} | ||
|{{#ifeq: {{uc:{{BodyData|{{{name|{{BASEPAGENAME}}}}}|oxygen}}}}|YES|{{Yes}}|{{No}}}}}}}} | |{{#ifeq: {{uc:{{BodyData|{{{name|{{BASEPAGENAME}}}}}|oxygen}}}}|YES|{{Yes}}|{{No}}}}}}}} | ||
− | }}</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. |
− | + | 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. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | 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 == | == 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 | + | * Periapsis: Semi-major axis, Orbital eccentricity, Sidereal orbital period, Synodic orbital period, Orbital velocity, Sphere of influence |
− | * Apoapsis: 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, Sphere of influence |
* Orbital period: Orbital velocity | * Orbital period: Orbital velocity | ||
− | * Radius: Surface | + | * Radius: Surface area, Density, Surface gravity, Synchronous orbit |
− | * Mass: Gravitational | + | * Mass: Gravitational parameter, Density, Surface gravity, Synchronous orbit, Sphere of influence |
− | * Sidereal | + | * Sidereal rotation period: Sidereal rotational velocity, Synchronous orbit |
− | * Scale | + | * Scale height: Atmospheric height |
* 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 | ||
Line 173: | Line 130: | ||
== Template == | == Template == | ||
− | <pre>{{Infobox/Body | + | <pre>{{Infobox/Body}}</pre> |
+ | |||
+ | <pre>{{#switch: {{{1}}} | ||
|name= | |name= | ||
|class= | |class= | ||
|file= | |file= | ||
+ | |parent= | ||
+ | |apoapsis= | ||
+ | |periapsis= | ||
|orbinc= | |orbinc= | ||
|pe arg= | |pe arg= | ||
|an arg= | |an arg= | ||
|anomaly= | |anomaly= | ||
+ | |radius= | ||
+ | |mass= | ||
|sidrot= | |sidrot= | ||
|highest= | |highest= | ||
+ | |highest latitude= | ||
|highest longitude= | |highest longitude= | ||
− | | | + | |pressure= |
+ | |scale height= | ||
|min temp= | |min temp= | ||
|max temp= | |max temp= | ||
|oxygen= | |oxygen= | ||
+ | |#default={{{2|}}} | ||
}}</pre> | }}</pre> | ||
== Example == | == Example == | ||
− | Example used | + | Example param subpage used for this page: |
− | + | {{#tag:pre|{{msgnw:Infobox/Param}}}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
== Translating == | == Translating == |
Revision as of 11:28, 16 September 2013
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 | |
|
Usage
This template don't need any parameters and instead uses only {{BodyData}} 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 {{BodyData}} for the property parent returns nothing. The atmospheric information is only visible when {{BodyData}} 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:
- Periapsis: Semi-major axis, Orbital eccentricity, Sidereal orbital period, Synodic orbital period, Orbital velocity, Sphere of influence
- Apoapsis: Semi-major axis, Orbital eccentricity, Sidereal orbital period, Synodic orbital period, Orbital velocity, Sphere of influence
- Orbital period: Orbital velocity
- Radius: Surface area, Density, Surface gravity, Synchronous orbit
- Mass: Gravitational parameter, Density, Surface gravity, Synchronous orbit, Sphere of influence
- 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}}
{{#switch: {{{1}}} |name= |class= |file= |parent= |apoapsis= |periapsis= |orbinc= |pe arg= |an arg= |anomaly= |radius= |mass= |sidrot= |highest= |highest latitude= |highest longitude= |pressure= |scale height= |min temp= |max temp= |oxygen= |#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 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
- Korean (한국어) : Everything supported