Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox celestial body/doc: Difference between revisions

Template page
(implemented sigfigs)
Tag: 2017 source edit
(added orbital period)
Tag: 2017 source edit
 
(6 intermediate revisions by the same user not shown)
Line 5: Line 5:
| caption = Test caption
| caption = Test caption


| labelstyle  = width: 60%; text-align: left; vertical-align: text-top;
| labelstyle  = width: 50%; text-align: left; vertical-align: text-top;
| titlestyle = background-color: #f7aa33;
| titlestyle = background-color: #f7aa33;
padding: 0.2em 0em 0.2em;
padding: 0.2em 0em 0.2em;
Line 11: Line 11:
font-size: 22px;
font-size: 22px;
font-weight: bold;
font-weight: bold;
| bodystyle  = width: 20em; border: 1px solid #a2a9b1; border-spacing: 3px; margin: 0.5em 0 0.5em 1em;
| bodystyle  = width: 24em; border: 1px solid #a2a9b1; border-spacing: 3px; margin: 0.5em 0 0.5em 1em;
     padding: 0.2em;
     padding: 0.2em;
     float: right;
     float: right;
Line 18: Line 18:
     line-height: 1.5em;
     line-height: 1.5em;
     width: 20em;
     width: 20em;
| headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 18px; text-align: left;
| headerstyle  = font-weight: bold; color: black; background: #f7aa33; font-size: 14px; text-align: left;
| autoheaders = y
| autoheaders = y
| captionstyle = text-align: center; font-style: italic;
| captionstyle = text-align: center; font-style: italic;
Line 39: Line 39:
| header20 = Physical Characteristics
| header20 = Physical Characteristics


| label21  = Radius
| label21  = Equatorial radius
|  data21  = {{#invoke:Data|getData|Example/body|radius}} <small>m</small>
|  data21  = {{#invoke:Data|getData|Example/body|radius}} <small>km</small>
| label22  = Equatorial circumference
| label22  = Equatorial circumference
|  data22  = {{#expr: 2* pi * {{#invoke:Data|getData|Example/body|radius}} round 0}} <small>m</small>
|  data22  = {{#expr: 2* pi * {{#invoke:Data|getData|Example/body|radius}} round 0}} <small>km</small>
| label23  = Surface area
| label23  = Surface area
|  data23  = {{Sigfigs
|  data23  = {{Sigfigs
Line 49: Line 49:
| label24  = Mass
| label24  = Mass
|  data24  = {{Sigfigs
|  data24  = {{Sigfigs
|{{#expr: ((9.812 * (1000 * {{#invoke:Data|getData|Example/body|radius}})^2) / .00000000006674)}}
|{{#expr: ((9.812 * (1000 * {{#invoke:Data|getData|Example/body|radius}})^2) / .000000000066743)}}
|4}} <small>kg</small>
|4}} <small>kg</small>
| label25  = Axial tilt
| label25  = Axial tilt
Line 55: Line 55:
|{{#invoke:Data|getData|Example/body|axial_tilt}}
|{{#invoke:Data|getData|Example/body|axial_tilt}}
|4}}°
|4}}°
 
| label26  = Standard gravitational parameter
|  data26  = {{Sigfigs
|{{#expr: .000000000066743 * {{#invoke:Data|getData|Example/body|mass}}}}
|4}} <small>m<sup>3</sup>/s<sup>2</sup></small>
| label27  = Density
|  data27  = {{Sigfigs
|{{#expr: {{#invoke:Data|getData|Example/body|mass}} / (4/3 * pi * ({{#invoke:Data|getData|Example/body|radius}} * 1000)^3) }}
|4}} <small>kg/m<sup>3</sup></small>
| label28  = Volume
|  data28  = {{Sigfigs
|{{#expr: (4/3) * pi * {{#invoke:Data|getData|Example/body|radius}}^3 }}
|4}} <small>km<sup>3</sup></small>
| label29  = Surface gravity
|  data29  = {{Sigfigs
|{{#expr: {{#invoke:Data|getData|Example/body|surface_gravity}}*9.812 }}
|4}} <small>m/s<sup>2</sup> ({{#invoke:Data|getData|Example/body|surface_gravity}} ''g'') </small>
| label30  = Escape velocity
|  data30  = {{Sigfigs
|{{#expr: sqrt(2 * .000000000066743 * {{#invoke:Data|getData|Example/body|mass}} / ({{#invoke:Data|getData|Example/body|radius}} * 1000)) }}
|4}} <small>m/s<sup>2</sup></small>
|  label31  = Sidereal rotation period
|  data31  = {{#invoke:Data|getData|Example/body|sidereal_rotation_period}} <small>s <br> {{ExpandTime|{{#invoke:Data|getData|Example/body|sidereal_rotation_period}}}} </small>
|  label32  = Sidereal rotational velocity
|  data32  = {{Sigfigs
|{{#expr: 2 * pi * {{#invoke:Data|getData|Example/body|radius}} * 1000 / {{#invoke:Data|getData|Example/body|sidereal_rotation_period}} }}
|4}} <small>m/s</small>
|  label33 = Synchronous orbit
|  data33 = {{#number_format:{{#expr: ( ({{#expr: .000000000066743 * {{#invoke:Data|getData|Example/body|mass}}}} *  {{#invoke:Data|getData|Example/body|sidereal_rotation_period}}^2) / (4 * pi ^ 2) )^(1/3) / 1000}}|3}} <small>km</small>


| header40 = Orbital Characteristics
| header40 = Orbital Characteristics
Line 75: Line 102:
| label45  = Inclination
| label45  = Inclination
|  data45  = {{#invoke:Data|getData|Example/body|inclination}}°
|  data45  = {{#invoke:Data|getData|Example/body|inclination}}°
| label46  = Argument of periapsis
|  data46  = {{#invoke:Data|getData|Example/body|arg_pe}}°
| label47  = Longitude of the ascending node
|  data47  = {{#invoke:Data|getData|Example/body|long_an}}°
| label48  = Mean anomaly
|  data48  = {{#invoke:Data|getData|Example/body|anomaly}}°
| label49  = Orbital period
|  data49  = {{ExpandTime|{{#ifeq: {{#invoke:Data|getData|Example/body|name}} | Kerbin | N/A | {{#expr: 2 * pi * sqrt( ({{#invoke:Data|getData|Example/body|sma}}*1000)^3 / (.000000000066743 * {{#invoke:Data|getData|Example/body/parent|mass}}) ) }} }} }}
| label50  = Sidereal orbital period
|  data50  =
| label51  = Synodic orbital period
|  data51  =
| label52  = Orbital velocity
|  data52  =




Line 80: Line 121:


| label61  = Atmosphere present
| label61  = Atmosphere present
|  data61  = ✔
|  data61  = {{#ifexpr: {{#invoke:Data|getData|Example/body|atmo_pressure}} > 0 | | ✗}}
| label62  = Pressure  
| label62  = Pressure  
|  data62  = 1 <small>atm</small>
|  data62  = {{#number_format: {{#invoke:Data|getData|Example/body|atmo_pressure}} | 0}} <small>kPa</small>
| label63  = Height
| label63  = Height
|  data63  = 400 <small>m</small>
|  data63  = {{#number_format: {{#invoke:Data|getData|Example/body|atmo_height}} | 0}} <small>m</small>
| label64  = Oxygen-rich
| label64  = Oxygen present
|  data64  = ✔
|  data64  = {{#ifeq: {{#invoke:Data|getData|Example/body|atmo_oxygen}} | true | | ✗}}
}}
}}

Latest revision as of 17:36, 2 January 2025

Planet Bongo
Test caption
General Info
TypePlanet
Sub-typeTerrestrial
Parent bodyCongo
Star systemGroovy
Satellites2
Physical Characteristics
Equatorial radius6371 km
Equatorial circumference40030 km
Surface area5.101×108 m2
Mass5.967×1024 kg
Axial tilt23.44°
Standard gravitational parameter3.986×1014 m3/s2
Density5,513 kg/m3
Volume1.083×1012 km3
Surface gravity9.812 m/s2 (1 g)
Escape velocity1.119×104 m/s2
Sidereal rotation period86164.0905 s
d 5 h 56 m 4.1 s
Sidereal rotational velocity464.6 m/s
Synchronous orbit42,163.773 km
Orbital Characteristics
Semi major axis1.496×108 m
Apoapsis1.521×108 m
Periapsis1.471×108 m
Eccentricity0.0167086
Inclination7.155°
Argument of periapsis114.20783°
Longitude of the ascending node-11.26064°
Mean anomaly358.617°
Orbital period1,460 d 5 h 58 m 49 s
Atmospheric Characteristics
Atmosphere present
Pressure101,325 kPa
Height100,000 m
Oxygen present
MediaWiki Appliance - Powered by TurnKey Linux