Difference between revisions of "Template:Body data"
From Kerbal Space Program Wiki
(-backwards compatibility of soi parameter;) |
(*trying to find the bug again;) |
||
Line 7: | Line 7: | ||
|pressure={{BodyData/Pressure|{{{1}}}}} | |pressure={{BodyData/Pressure|{{{1}}}}} | ||
|scale height={{BodyData/ScaleHeight|{{{1}}}}} | |scale height={{BodyData/ScaleHeight|{{{1}}}}} | ||
+ | |soi={{BodyData/SOI|{{{1}}}|∞}} | ||
+ | |TEST={{BodyData/SOI|{{{1}}}|∞}} | ||
|#default={{#explode:{{#explode:{{#explode:{{msgnw::{{{1}}}/Data}}|{{{2}}}=|1}}|||0}}|}}|0}}}}</includeonly><noinclude> | |#default={{#explode:{{#explode:{{#explode:{{msgnw::{{{1}}}/Data}}|{{{2}}}=|1}}|||0}}|}}|0}}}}</includeonly><noinclude> | ||
Returns for each [[celestial body]] various data about it. | Returns for each [[celestial body]] various data about it. |
Revision as of 12:58, 11 September 2013
Returns for each celestial body various data about it.
For backwards compatibility this template also supports the following properties. It simply calls the appropriate subtemplate. They additionally support Sun and Mün instead of Kerbol and Mun.
- apoapsis: {{BodyData/Apoapsis}}
- periapsis: {{BodyData/Periapsis}}
- parent: {{BodyData/Parent}}
- radius: {{BodyData/Radius}}
- mass: {{BodyData/Mass}}
- pressure: {{BodyData/Pressure}} (returns the pressure at 0 m altitude (“sea level”))
- scale height: {{BodyData/ScaleHeight}}
The direct usage of those subtemplates is not recommended anymore!
Separate subtemplates
Some special properties can be accessed via a separate sub template
- Name: {{BodyData/Name}}
- Surface gravity: {{BodyData/Gravity}}
- Siderial orbit period: {{BodyData/Sidereal orbit}}
- Sphere of influence: {{BodyData/SOI}}