Template:Infobox celestial body: Difference between revisions

From Kerbal Space Program 2 Wiki
Jump to navigation Jump to search
updated orbital period calculation
removed time expansion
Line 194: Line 194:


| 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|{{#invoke:Data|getData|{{PAGENAME}}|parent}}|mass}}) ) }} }} }}
|  data49  = {{#ifeq: {{#invoke:Data|getData|{{PAGENAME}}|name}} | Kerbin | N/A | {{#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

Revision as of 03:38, 6 March 2025

No description.

Template parameters

ParameterDescriptionTypeStatus
CB Typetype

What kind of celestial body is this?

Suggested values
Planet Moon Star
Example
Planet
Stringrequired
CB Subtypesubtype

What sub-type is this CB?

Suggested values
Terrestrial Gas giant Oceanic Frozen K-type
Example
Terrestrial
Stringrequired
Parent Bodyparent

What body does this one orbit?

Suggested values
Kerbol Eve Kerbin Duna Jool
Example
Kerbol
Stringsuggested
Star Systemsystem

What star system does this CB belong to?

Suggested values
Kerbolar Deb Deb
Example
Kerbolar
Stringrequired
Radiusradius

The equatorial radius of the body.

Stringrequired