Template:Infobox celestial body: Difference between revisions

From Kerbal Space Program 2 Wiki
Jump to navigation Jump to search
apply pagedata
removed unnecessary template data
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude></noinclude>
<templatedata>
<includeonly>{{Infobox  
{
"params": {
"type": {
"label": "CB Type",
"description": "What kind of celestial body is this?",
"example": "Planet",
"type": "string",
"suggestedvalues": [
"Planet",
"Moon",
"Star"
],
"required": true
},
"subtype": {
"label": "CB Subtype",
"description": "What sub-type is this CB? ",
"example": "Terrestrial",
"type": "string",
"suggestedvalues": [
"Terrestrial",
"Gas giant",
"Oceanic",
"Frozen",
"K-type"
],
"required": true
},
"parent": {
"label": "Parent Body",
"description": "What body does this one orbit?",
"example": "Kerbol",
"type": "string",
"suggestedvalues": [
"Kerbol",
"Eve",
"Kerbin",
"Duna",
"Jool"
],
"suggested": true
},
"system": {
"label": "Star System",
"description": "What star system does this CB belong to?",
"example": "Kerbolar",
"type": "string",
"suggestedvalues": [
"Kerbolar",
"Deb Deb"
],
"required": true
},
"radius": {
"label": "Radius",
"description": "The equatorial radius of the body.",
"type": "string",
"required": true
}
}
}
</templatedata></noinclude>
<includeonly>
{{Infobox  
| title    = {{PAGENAME}}
| title    = {{PAGENAME}}
| image    = [[File:{{#invoke:Data|getData|{{PAGENAME}}|file}}|200px|center]]
| image    = [[File:{{#invoke:Data|getData|{{PAGENAME}}|file}}|200px|center]]
Line 84: Line 20:
| headerstyle  = font-weight: bold; font-size: 14px; text-align: left;
| headerstyle  = font-weight: bold; font-size: 14px; text-align: left;
| autoheaders = y
| autoheaders = y
| captionstyle = text-align: center; font-style: italic;
| captionstyle = text-align: center; font-style: italic; padding: 0.5em 0 0 0;




Line 104: Line 40:


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


| header40 = Orbital Characteristics
| header40 = Orbital Characteristics
Line 152: Line 101:
| label41  = Semi major axis
| label41  = Semi major axis
|  data41  = {{Sigfigs
|  data41  = {{Sigfigs
|{{#invoke:Data|getData|{{PAGENAME}}|sma}}
|{{#expr: {{#invoke:Data|getData|{{PAGENAME}}|sma}} / 1000 }}
|4}} <small>m</small>
|4}} <small>km</small>
 
| label42  = Apoapsis
| label42  = Apoapsis
|  data42  = {{Sigfigs
|  data42  = {{Sigfigs
|{{#expr: {{#invoke:Data|getData|{{PAGENAME}}|sma}} * (1 + {{#invoke:Data|getData|{{PAGENAME}}|eccentricity}})}}
|{{#expr: {{#invoke:Data|getData|{{PAGENAME}}|sma}} / 1000 * (1 + {{#invoke:Data|getData|{{PAGENAME}}|eccentricity}})}}
|4}} <small>m</small>
|4}} <small>km</small>
 
| label43  = Periapsis
| label43  = Periapsis
|  data43  = {{Sigfigs
|  data43  = {{Sigfigs
|{{#expr: {{#invoke:Data|getData|{{PAGENAME}}|sma}} * (1 - {{#invoke:Data|getData|{{PAGENAME}}|eccentricity}})}}
|{{#expr: {{#invoke:Data|getData|{{PAGENAME}}|sma}} / 1000 * (1 - {{#invoke:Data|getData|{{PAGENAME}}|eccentricity}})}}
|4}} <small>m</small>
|4}} <small>km</small>
 
| label44  = Eccentricity
| label44  = Eccentricity
|  data44  = {{#invoke:Data|getData|{{PAGENAME}}|eccentricity}}  
|  data44  = {{#invoke:Data|getData|{{PAGENAME}}|eccentricity}}  
| label45  = Inclination
| label45  = Inclination
|  data45  = {{#invoke:Data|getData|{{PAGENAME}}|inclination}}°
|  data45  = {{#invoke:Data|getData|{{PAGENAME}}|inclination}}°
| label46  = Argument of periapsis
| label46  = Argument of periapsis
|  data46  = {{#invoke:Data|getData|{{PAGENAME}}|arg_pe}}°
|  data46  = {{#invoke:Data|getData|{{PAGENAME}}|arg_pe}}°
| label47  = Longitude of the ascending node
| label47  = Longitude of the ascending node
|  data47  = {{#invoke:Data|getData|{{PAGENAME}}|long_an}}°
|  data47  = {{#invoke:Data|getData|{{PAGENAME}}|long_an}}°
| label48  = Mean anomaly
| label48  = Mean anomaly
|  data48  = {{#invoke:Data|getData|{{PAGENAME}}|anomaly}}°
|  data48  = {{#invoke:Data|getData|{{PAGENAME}}|anomaly}}°
| label49  = Orbital period
| label49  = Orbital period
|  data49  = {{ExpandTime|{{#ifeq: {{#invoke:Data|getData|{{PAGENAME}}|name}} | Kerbin | N/A | {{#expr: 2 * pi * sqrt( ({{#invoke:Data|getData|{{PAGENAME}}|sma}}*1000)^3 / (.000000000066743 * {{#invoke:Data|getData|{{PAGENAME}}/parent|mass}}) ) }} }} }}
|  data49  = {{#ifeq: {{#invoke:Data|getData|{{PAGENAME}}|name}} | Kerbin | N/A | {{ExpandTime|{{#expr: 2 * pi * sqrt( ({{#invoke:Data|getData|{{PAGENAME}}|sma}})^3 / (.000000000066743 * {{#invoke:Data|getData|{{#invoke:Data|getData|{{PAGENAME}}|parent}}|mass}}) ) }} }} }}
 
| label50  = Sidereal orbital period
| label50  = Sidereal orbital period
|  data50  =  
|  data50  =  
| label51  = Synodic orbital period
| label51  = Synodic orbital period
|  data51  =  
|  data51  =  
| label52  = Orbital velocity  
| label52  = Orbital velocity  
|  data52  =  
|  data52  =  
Line 186: Line 146:
| label61  = Atmosphere present
| label61  = Atmosphere present
|  data61  = {{#ifexpr: {{#invoke:Data|getData|{{PAGENAME}}|atmo_pressure}} > 0 | ✔ | ✗}}
|  data61  = {{#ifexpr: {{#invoke:Data|getData|{{PAGENAME}}|atmo_pressure}} > 0 | ✔ | ✗}}
| label62  = Pressure  
| label62  = Pressure  
|  data62  = {{#number_format: {{#invoke:Data|getData|{{PAGENAME}}|atmo_pressure}} | 0}} <small>kPa</small>
|  data62  = {{#number_format: {{#invoke:Data|getData|{{PAGENAME}}|atmo_pressure}} | 0}} <small>kPa</small>
| label63  = Height
| label63  = Height
|  data63  = {{#number_format: {{#invoke:Data|getData|{{PAGENAME}}|atmo_height}} | 0}} <small>m</small>
|  data63  = {{#number_format: {{#invoke:Data|getData|{{PAGENAME}}|atmo_height}} | 0}} <small>m</small>
| label64  = Oxygen present
| label64  = Oxygen present
|  data64  = {{#ifeq: {{#invoke:Data|getData|{{PAGENAME}}|atmo_oxygen}} | true | ✔ | ✗}}
|  data64  = {{#ifeq: {{#invoke:Data|getData|{{PAGENAME}}|atmo_oxygen}} | true | ✔ | ✗}}
}}
}}</includeonly>
 
</includeonly>

Latest revision as of 02:11, 12 March 2025