Difference between revisions of "Template:Body data"
From Kerbal Space Program Wiki
m (XZise moved page Template:BodyData to Template:Body data: lowercase and spaced) |
(→Separate subtemplates) |
||
Line 53: | Line 53: | ||
== Separate subtemplates == | == Separate subtemplates == | ||
Some special properties can be accessed via a separate sub template. These templates can't be called with the property set like <tt><nowiki>{{BodyData|Kerbin|soi}}</nowiki></tt>. | Some special properties can be accessed via a separate sub template. These templates can't be called with the property set like <tt><nowiki>{{BodyData|Kerbin|soi}}</nowiki></tt>. | ||
− | * Name: {{Tl| | + | * Name: {{Tl|Body data/Name}} |
− | * Surface gravity: {{Tl| | + | * Surface gravity: {{Tl|Body data/Gravity}} |
− | * Siderial orbit period: {{Tl| | + | * Siderial orbit period: {{Tl|Body data/Sidereal orbit}} |
− | * Sphere of influence: {{Tl| | + | * Sphere of influence: {{Tl|Body data/SOI}} |
+ | |||
+ | Additional templates calculate a property using other body data templates: | ||
+ | * Altitude for a given pressure: {{Tl|Body data/alt at pressure}} | ||
+ | * Orbital period at a altitude: {{Tl|Body data/orbit period}} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 13:48, 27 August 2014
Returns for each celestial body various data about it. It extracts the value from the page named “<body>/Param” (e.g. Duna/Param) which needs to exists for this template to work. There is also a Template:Infobox/Param which is used by {{Infobox/Body}}.
Properties
The following properties are supported: Template:Parameter Table
There are the following classes available:
Parents which are indented don't need to be set, when the previous non-indented parameter isn't set.
Separate subtemplates
Some special properties can be accessed via a separate sub template. These templates can't be called with the property set like {{BodyData|Kerbin|soi}}.
- Name: {{Body data/Name}}
- Surface gravity: {{Body data/Gravity}}
- Siderial orbit period: {{Body data/Sidereal orbit}}
- Sphere of influence: {{Body data/SOI}}
Additional templates calculate a property using other body data templates:
- Altitude for a given pressure: {{Body data/alt at pressure}}
- Orbital period at a altitude: {{Body data/orbit period}}