Difference between revisions of "Template:Body data"
From Kerbal Space Program Wiki
(!cut also trailing curly brackets;) |
(*restructered;) |
||
Line 7: | Line 7: | ||
|pressure={{BodyData/Pressure|{{{1}}}}} | |pressure={{BodyData/Pressure|{{{1}}}}} | ||
|scale height={{BodyData/ScaleHeight|{{{1}}}}} | |scale height={{BodyData/ScaleHeight|{{{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. | ||
− | = | + | {{Parameter Table|parameters= |
− | * | + | {{Parameter Row|1|Name of the body in English. Usually Sun can be used instead of Kerbol and Mün instead of Mun.}} |
− | * | + | {{Parameter Row|2|The requested property. Supports all parameters of {{Tl|Infobox/Body}} and some additional values.}} |
− | * | + | }} |
− | * | + | |
− | * | + | For backwards compatibility this template also supports the following properties. It simply calls the apropiate subtemplate. |
− | * | + | * <tt>apoapsis</tt>: {{Tl|BodyData/Apoapsis}} |
− | * | + | * <tt>periapsis</tt>: {{Tl|BodyData/Periapsis}} |
+ | * <tt>parent</tt>: {{Tl|BodyData/Parent}} | ||
+ | * <tt>radius</tt>: {{Tl|BodyData/Radius}} | ||
+ | * <tt>mass</tt>: {{Tl|BodyData/Mass}} | ||
+ | * <tt>pressure</tt>: {{Tl|BodyData/Pressure}} (returns the pressure at 0 m altitude (“sea level”)) | ||
+ | * <tt>scale height</tt>: {{Tl|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: {{Tl|BodyData/Name}} | * Name: {{Tl|BodyData/Name}} | ||
− | |||
− | |||
* Surface gravity: {{Tl|BodyData/Gravity}} | * Surface gravity: {{Tl|BodyData/Gravity}} | ||
* Siderial orbit period: {{Tl|BodyData/Sidereal orbit}} | * Siderial orbit period: {{Tl|BodyData/Sidereal orbit}} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 10:27, 31 August 2013
Returns for each celestial body various data about it.
For backwards compatibility this template also supports the following properties. It simply calls the apropiate subtemplate.
- 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}}