Difference between revisions of "Template:Body data"

From Kerbal Space Program Wiki
Jump to: navigation, search
(*restructered;)
(+soi redirect;)
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}}}|∞}}
 
|#default={{#explode:{{#explode:{{#explode:{{msgnw::{{{1|}}}/Data}}|{{{2|}}}&#61;|1}}|&#124;|0}}|&#125;&#125;|0}}}}</includeonly><noinclude>
 
|#default={{#explode:{{#explode:{{#explode:{{msgnw::{{{1|}}}/Data}}|{{{2|}}}&#61;|1}}|&#124;|0}}|&#125;&#125;|0}}}}</includeonly><noinclude>
 
Returns for each [[celestial body]] various data about it.
 
Returns for each [[celestial body]] various data about it.
Line 23: Line 24:
 
* <tt>pressure</tt>: {{Tl|BodyData/Pressure}} (returns the pressure at 0 m altitude (“sea level”))
 
* <tt>pressure</tt>: {{Tl|BodyData/Pressure}} (returns the pressure at 0 m altitude (“sea level”))
 
* <tt>scale height</tt>: {{Tl|BodyData/ScaleHeight}}
 
* <tt>scale height</tt>: {{Tl|BodyData/ScaleHeight}}
 +
* <tt>soi</tt>: {{Tl|BodyData/SOI}} (returns ∞, when the template returns an empty string)
 
'''The direct usage of those subtemplates is not recommended anymore!'''
 
'''The direct usage of those subtemplates is not recommended anymore!'''
  
Line 30: Line 32:
 
* Surface gravity: {{Tl|BodyData/Gravity}}
 
* Surface gravity: {{Tl|BodyData/Gravity}}
 
* Siderial orbit period: {{Tl|BodyData/Sidereal orbit}}
 
* Siderial orbit period: {{Tl|BodyData/Sidereal orbit}}
 +
* Sphere of influence: {{Tl|BodyData/SOI}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 10:41, 11 September 2013

Returns for each celestial body various data about it.

Template:Parameter Table

For backwards compatibility this template also supports the following properties. It simply calls the apropiate subtemplate.

The direct usage of those subtemplates is not recommended anymore!

Separate subtemplates

Some special properties can be accessed via a separate sub template