Template:Infobox celestial body: Difference between revisions

From Kerbal Space Program 2 Wiki
Jump to navigation Jump to search
0 degrees edge case handling for axial tilt
removed unnecessary template data
 
(5 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 194: Line 130:


| 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}})^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
Line 219: Line 155:
| 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