Difference between revisions of "Template:Body data"
From Kerbal Space Program Wiki
m (→Properties: +longer variant "sci landed surf";) |
(+default;) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{{{#ifeq: {{{1}}}|Infobox|Template}}:{{{1}}}/Param|{{{2}}}}}</includeonly><noinclude> | + | <includeonly>{{{{#ifeq: {{{1}}}|Infobox|Template}}:{{{1}}}/Param|{{{2}}}|{{{3|}}}}}</includeonly><noinclude> |
Returns for each [[celestial body]] various data about it. It extracts the value from the page named “<body>/Param” (e.g. [[Duna/Param]]) which needs to exists for this template to work. There is also a [[Template:Infobox/Param]] which is used by {{Tl|Infobox/Body}}. | Returns for each [[celestial body]] various data about it. It extracts the value from the page named “<body>/Param” (e.g. [[Duna/Param]]) which needs to exists for this template to work. There is also a [[Template:Infobox/Param]] which is used by {{Tl|Infobox/Body}}. | ||
Line 5: | Line 5: | ||
{{Parameter Row|1|Name of the body in English. There needs to be a subpage named “Param” available.}} | {{Parameter Row|1|Name of the body in English. There needs to be a subpage named “Param” available.}} | ||
{{Parameter Row|2|The requested property.}} | {{Parameter Row|2|The requested property.}} | ||
+ | {{Parameter Row|3|The default value, if this property doesn't exist.|Not set}} | ||
}} | }} | ||
Revision as of 19:06, 30 June 2014
Returns for each celestial body various data about it. It extracts the value from the page named “<body>/Param” (e.g. Duna/Param) which needs to exists for this template to work. There is also a Template:Infobox/Param which is used by {{Infobox/Body}}.
Properties
The following properties are supported: Template:Parameter Table
There are the following classes available:
Parents which are indented don't need to be set, when the previous non-indented parameter isn't set.
Separate subtemplates
Some special properties can be accessed via a separate sub template. These templates can't be called with the property set like {{BodyData|Kerbin|soi}}.
- Name: {{BodyData/Name}}
- Surface gravity: {{BodyData/Gravity}}
- Siderial orbit period: {{BodyData/Sidereal orbit}}
- Sphere of influence: {{BodyData/SOI}}