Template:Infobox celestial body: Difference between revisions
Jump to navigation
Jump to search
m KiwiShark moved page Template:Infobox celestial bodies to Template:Infobox celestial body without leaving a redirect: Misspelled title |
updating template from doc |
||
Line 62: | Line 62: | ||
} | } | ||
} | } | ||
</templatedata> | </templatedata></noinclude> | ||
<includeonly> | |||
{{Infobox | |||
| title = {{PAGENAME}} | |||
| image = [[File:{{#invoke:Data|getData|{{PAGENAME}}|file}}|200px|center]] | |||
| caption = {{#invoke:Data|getData|{{PAGENAME}}|type}} {{#invoke:Data|getData|{{PAGENAME}}|subtype}} | |||
| labelstyle = width: 50%; text-align: left; vertical-align: text-top; padding: 0.1em; | |||
| | | titlestyle = | ||
| | padding: 0.2em 0em 0.2em; | ||
| | font-size: 22px; | ||
| | font-weight: bold; | ||
| bodystyle = width: 23em; | |||
border: 1px solid #a2a9b1; | |||
border-spacing: 3px; margin: 0.5em 0 0.5em 1em; | |||
padding: 0.2em; | |||
float: right; | |||
clear: right; | |||
font-size: 88%; | |||
line-height: 1.5em; | |||
| headerstyle = font-weight: bold; font-size: 14px; text-align: left; | |||
| autoheaders = y | |||
| captionstyle = text-align: center; font-style: italic; | |||
| header1 = General Info | | header1 = General Info | ||
| label2 = Type | | label2 = Type | ||
| data2 = | | data2 = Planet | ||
| label3 = Sub-type | | label3 = Sub-type | ||
| data3 = | | data3 = Terrestrial | ||
| label4 = Parent body | | label4 = Parent body | ||
| data4 = | | data4 = Congo | ||
| label5 = Star system | | label5 = Star system | ||
| data5 = | | data5 = Groovy | ||
| label6 = Satellites | |||
| data6 = 2 | |||
| header20 = Physical Characteristics | | header20 = Physical Characteristics | ||
| label21 = | | label21 = Equatorial radius | ||
| data21 = # | | data21 = {{#invoke:Data|getData|Example/body|radius}} <small>km</small> | ||
| label22 = Equatorial circumference | | label22 = Equatorial circumference | ||
| data22 = # | | data22 = {{#expr: 2* pi * {{#invoke:Data|getData|Example/body|radius}} round 0}} <small>km</small> | ||
| label23 = Surface area | | label23 = Surface area | ||
| data23 = # | | data23 = {{Sigfigs | ||
|{{#expr: 4 * pi * {{#invoke:Data|getData|Example/body|radius}}^2 round 0}} | |||
|4}} <small>m<sup>2</sup></small> | |||
| label24 = Mass | | label24 = Mass | ||
| data24 = # | | data24 = {{Sigfigs | ||
|{{#expr: ((9.812 * (1000 * {{#invoke:Data|getData|Example/body|radius}})^2) / .000000000066743)}} | |||
|4}} <small>kg</small> | |||
| label25 = Axial tilt | | label25 = Axial tilt | ||
| data25 = # | | data25 = {{Sigfigs | ||
|{{#invoke:Data|getData|Example/body|axial_tilt}} | |||
|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 | ||
| label41 = Semi major axis | | label41 = Semi major axis | ||
| data41 = # | | data41 = {{Sigfigs | ||
|{{#invoke:Data|getData|Example/body|sma}} | |||
|4}} <small>m</small> | |||
| label42 = Apoapsis | | label42 = Apoapsis | ||
| data42 = # | | data42 = {{Sigfigs | ||
|{{#expr: {{#invoke:Data|getData|Example/body|sma}} * (1 + {{#invoke:Data|getData|Example/body|eccentricity}})}} | |||
|4}} <small>m</small> | |||
| label43 = Periapsis | | label43 = Periapsis | ||
| data43 = # | | data43 = {{Sigfigs | ||
|{{#expr: {{#invoke:Data|getData|Example/body|sma}} * (1 - {{#invoke:Data|getData|Example/body|eccentricity}})}} | |||
|4}} <small>m</small> | |||
| label44 = Eccentricity | | label44 = Eccentricity | ||
| data44 = # | | data44 = {{#invoke:Data|getData|Example/body|eccentricity}} | ||
| label45 = Inclination | | label45 = Inclination | ||
| data45 = # | | 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 = | |||
| header60 = Atmospheric Characteristics | | header60 = Atmospheric Characteristics | ||
| label61 = Atmosphere present | | label61 = Atmosphere present | ||
| data61 = # | | data61 = {{#ifexpr: {{#invoke:Data|getData|Example/body|atmo_pressure}} > 0 | ✔ | ✗}} | ||
| label62 = Pressure | | label62 = Pressure | ||
| data62 = # | | data62 = {{#number_format: {{#invoke:Data|getData|Example/body|atmo_pressure}} | 0}} <small>kPa</small> | ||
| label63 = Height | | label63 = Height | ||
| data63 = # | | data63 = {{#number_format: {{#invoke:Data|getData|Example/body|atmo_height}} | 0}} <small>m</small> | ||
| label64 = Oxygen | | label64 = Oxygen present | ||
| | | data64 = {{#ifeq: {{#invoke:Data|getData|Example/body|atmo_oxygen}} | true | ✔ | ✗}} | ||
}} | }} | ||
</includeonly> | </includeonly> |
Revision as of 00:10, 18 February 2025
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
CB Type | type | What kind of celestial body is this?
| String | required |
CB Subtype | subtype | What sub-type is this CB?
| String | required |
Parent Body | parent | What body does this one orbit?
| String | suggested |
Star System | system | What star system does this CB belong to?
| String | required |
Radius | radius | The equatorial radius of the body. | String | required |