Difference between revisions of "Template:Body data"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!no idea how this got removed;)
(*parameters are mandatory; !documentation: Sun/Mün aren't supported anymore (usually);)
Line 8: Line 8:
 
|scale height={{BodyData/ScaleHeight|{{{1}}}}}
 
|scale height={{BodyData/ScaleHeight|{{{1}}}}}
 
|soi={{BodyData/SOI|{{{1}}}|∞}}[[Category:BodyData/SOI]]
 
|soi={{BodyData/SOI|{{{1}}}|∞}}[[Category:BodyData/SOI]]
|#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.
  
 
{{Parameter Table|parameters=
 
{{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|1|Name of the body in English. There needs to be a subpage named “Data” available.}}
 
{{Parameter Row|2|The requested property. Supports all parameters of {{Tl|Infobox/Body}} and some additional values.}}
 
{{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.
+
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.
 
* <tt>apoapsis</tt>: {{Tl|BodyData/Apoapsis}}
 
* <tt>apoapsis</tt>: {{Tl|BodyData/Apoapsis}}
 
* <tt>periapsis</tt>: {{Tl|BodyData/Periapsis}}
 
* <tt>periapsis</tt>: {{Tl|BodyData/Periapsis}}

Revision as of 11:58, 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!

Separate subtemplates

Some special properties can be accessed via a separate sub template