Difference between revisions of "Template:Body data"

From Kerbal Space Program Wiki
Jump to: navigation, search
(*maybe the final test;)
(-test removed (math templates can't be used within this template);)
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={{User:XZise/test|{{{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 26: Line 24:
 
* <tt>scale height</tt>: {{Tl|BodyData/ScaleHeight}}
 
* <tt>scale height</tt>: {{Tl|BodyData/ScaleHeight}}
 
'''The direct usage of those subtemplates is not recommended anymore!'''
 
'''The direct usage of those subtemplates is not recommended anymore!'''
 +
 +
This template don't support math templates directly as parameters like <tt><nowiki>{{BodyData|Kerbin|soi}}</nowiki></tt>. It may also return a value, but it may get removed when it is no longer used by the infobox.
  
 
== Separate subtemplates ==
 
== Separate subtemplates ==

Revision as of 13:29, 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 appropriate subtemplate. They additionally support Sun and Mün instead of Kerbol and Mun.

The direct usage of those subtemplates is not recommended anymore!

This template don't support math templates directly as parameters like {{BodyData|Kerbin|soi}}. It may also return a value, but it may get removed when it is no longer used by the infobox.

Separate subtemplates

Some special properties can be accessed via a separate sub template