Difference between revisions of "Template:Body data"

From Kerbal Space Program Wiki
Jump to: navigation, search
(!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|}}}&#61;|1}}|&#124;|0}}|&#125;&#125;|0}}}}</includeonly><noinclude>The subpages of this template are returning a value for each celestial body.
+
|#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.
  
== [[:Category:BodyData Base Templates|Base templates]] ==
+
{{Parameter Table|parameters=
* Apoapsis: {{Tl|BodyData/Apoapsis}}
+
{{Parameter Row|1|Name of the body in English. Usually Sun can be used instead of Kerbol and Mün instead of Mun.}}
* Periapsis: {{Tl|BodyData/Periapsis}}
+
{{Parameter Row|2|The requested property. Supports all parameters of {{Tl|Infobox/Body}} and some additional values.}}
* Parent: {{Tl|BodyData/Parent}}
+
}}
* Radius: {{Tl|BodyData/Radius}}
+
 
* Mass: {{Tl|BodyData/Mass}}
+
For backwards compatibility this template also supports the following properties. It simply calls the apropiate subtemplate.
* Pressure at 0 m altitude (“sea level”): {{Tl|BodyData/Pressure}}
+
* <tt>apoapsis</tt>: {{Tl|BodyData/Apoapsis}}
* Scale height: {{Tl|BodyData/ScaleHeight}}
+
* <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}}
 
== [[:Category:BodyData Math Templates|Math templates]] ==
 
 
* 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.

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