Difference between revisions of "Template:Infobox/Body"

From Kerbal Space Program Wiki
Jump to: navigation, search
(*make all lines valign=top; !atmospheric characteristics are shown if atm > 0 not hidden;)
m (+Use Template:Formatnum with automatic decimal separator usage;)
Line 17: Line 17:
 
{{!}}- 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]]}}
 
{{!}} {{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]]}}
{{!}} {{formatnum: {{#expr: ({{{apoap}}} + {{{periap|{{{apoap}}}}}})/2}}}} m
+
{{!}} {{formatnum|{{#expr: ({{{apoap}}} + {{{periap|{{{apoap}}}}}})/2}}}} m
 
{{!}}- 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]]}}
 
{{!}} {{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]]}}
{{!}} {{formatnum: {{{apoap}}}}} m
+
{{!}} {{formatnum|{{{apoap}}}}} m
 
{{!}}- 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]]}}
 
{{!}} {{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]]}}
{{!}} {{formatnum: {{{periap|{{{apoap}}}}}}}} m
+
{{!}} {{formatnum|{{{periap|{{{apoap}}}}}}}} m
 
{{!}}- 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]]}}
 
{{!}} {{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]]}}
Line 35: Line 35:
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} rowspan="2" {{!}} {{lang|en=[[w:Orbital_Period|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|Umlaufzeit]]}}
 
{{!}} rowspan="2" {{!}} {{lang|en=[[w:Orbital_Period|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|Umlaufzeit]]}}
{{!}} {{formatnum: {{#expr: {{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}} round 1 }}}} s
+
{{!}} {{formatnum|{{#expr: {{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}} round 1 }}}} s
 
{{!}}- valign="top"
 
{{!}}- valign="top"
 
{{!}} style="font-size:smaller;" {{!}} {{ExpandTime|{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}}}}
 
{{!}} style="font-size:smaller;" {{!}} {{ExpandTime|{{OrbitPeriod|{{{apoap}}}|{{{Parent}}}|{{{periap|{{{apoap}}}}}}}}}}
 
{{!}}- 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]]}}
 
{{!}} {{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]]}}
{{!}} {{#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}}}}}} m/s
+
{{!}} {{#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}}}}}} m/s
 
}}
 
}}
 
|-
 
|-
Line 46: Line 46:
 
|- valign="top"
 
|- valign="top"
 
| {{lang|en=[[w:Radius|Equatorial Radius]]|nl=[[w:nl:Radius|Equatoriale radius]]|fr=[[w:Radius|Rayon à l'Equateur]]|pl=[[w:pl:Promień_(geometria)|Promień równika]]|ru=[[w:ru:Радиус|Экваториальный радиус]]|de=[[w:de:Radius|Äquatorialradius]]}}
 
| {{lang|en=[[w:Radius|Equatorial Radius]]|nl=[[w:nl:Radius|Equatoriale radius]]|fr=[[w:Radius|Rayon à l'Equateur]]|pl=[[w:pl:Promień_(geometria)|Promień równika]]|ru=[[w:ru:Радиус|Экваториальный радиус]]|de=[[w:de:Radius|Äquatorialradius]]}}
| {{formatnum: {{BodyData/Radius|{{{Name|{{BASEPAGENAME}}}}}}}}} m
+
| {{formatnum|{{BodyData/Radius|{{{Name|{{BASEPAGENAME}}}}}}}}} m
 
|- valign="top"
 
|- valign="top"
 
| {{lang|en=[[w:Surface Area|Surface Area]]|nl=[[w:nl:Oppervlakte|Oppervlakte]]|fr=[[w:fr:Surface Area|Surface]]|pl=[[w:pl:Pole_powierzchni|Pole powierzchni]]|ru=[[w:ru:Площадь_поверхности|Площадь поверхности]]|de=[[w:de:Flächeninhalt|Oberfläche]]}}
 
| {{lang|en=[[w:Surface Area|Surface Area]]|nl=[[w:nl:Oppervlakte|Oppervlakte]]|fr=[[w:fr:Surface Area|Surface]]|pl=[[w:pl:Pole_powierzchni|Pole powierzchni]]|ru=[[w:ru:Площадь_поверхности|Площадь поверхности]]|de=[[w:de:Flächeninhalt|Oberfläche]]}}

Revision as of 12:16, 6 April 2013

Template:Planetbox

Usage

To avoid adding the information for each language this template should be used for each celestial body once (e.g. Duna/Data) and each page using that Planetbox (e.g. Duna itself) could use it with {{:Duna/Data}}.

Parameters

Name Optional Description
Name Yes Name of celestial body. Used to determine mass. Default: {{BASEPAGENAME}}
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
apoap No Apoapsis in meters from parents center
periap Yes Periapsis in meters from parents center. Default: Apoapsis
orbinc No Orbital inclination in degrees.
anomaly No Mean anomaly in degrees
sidrot No Siderial 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 deactivate orbital information (for example Kerbol) don't set {{{Parent}}}. The atmospheric information is only visible when {{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 {{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, Orbital velocity
  • Apoapsis: Semi-major axis, Orbital eccentricity, 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)

Template

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

Example

Example used on this page:

{{Planetbox
|Class=Planet
|File=Image-needed.png
|Parent=Gilly
|apoap=1337000
|periap=470000
|orbinc=7.4
|anomaly=4.2
|orbps=36000
|sidrot=3600
|SoI=200000
|highest=2357
|T-minC=-42
|T-maxC=47
|O2yorn=no
}}

Translating

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