Difference between revisions of "Template:Body data"
From Kerbal Space Program Wiki
(→Separate subtemplates) |
m (*replace 'Parameter Row' and 'ParameterRow' by 'Parameter row';) |
||
Line 3: | Line 3: | ||
{{Parameter Table|parameters= | {{Parameter Table|parameters= | ||
− | {{Parameter | + | {{Parameter row|1|Name of the body in English. There needs to be a subpage named “Param” available.}} |
− | {{Parameter | + | {{Parameter row|2|The requested property.}} |
− | {{Parameter | + | {{Parameter row|3|The default value, if this property doesn't exist.|Not set}} |
}} | }} | ||
Line 11: | Line 11: | ||
The following properties are supported: | The following properties are supported: | ||
{{Parameter Table|name=text|style=hover|parameters= | {{Parameter Table|name=text|style=hover|parameters= | ||
− | {{Parameter | + | {{Parameter row|name|Name of celestial body. Used to determine mass.}} |
− | {{Parameter | + | {{Parameter row|class|Class of celestial body.}} |
− | {{Parameter | + | {{Parameter row|file|Filename to image of the celestial object.}} |
− | {{Parameter | + | {{Parameter row|parent|Parent body of the celestial object. May be an empty string.}} |
− | {{Parameter | + | {{Parameter row|apoapsis|Apoapsis of the orbit in meters measured from the center of the bodies in meters.||1}} |
− | {{Parameter | + | {{Parameter row|periapsis|Periapsis of the orbit in meters measured from the center of the bodies in meters.||1}} |
− | {{Parameter | + | {{Parameter row|orbinc|Orbital inclination in degrees.||1}} |
− | {{Parameter | + | {{Parameter row|pe arg|Argument of periapsis||1}} |
− | {{Parameter | + | {{Parameter row|an arg|Longitude of the ascending node||1}} |
− | {{Parameter | + | {{Parameter row|anomaly|Mean anomaly in radians at 0s UT||1}} |
− | {{Parameter | + | {{Parameter row|radius|Radius of the body in meters}} |
− | {{Parameter | + | {{Parameter row|mass|Mass in kilograms}} |
− | {{Parameter | + | {{Parameter row|sidrot|Sidereal period in seconds}} |
− | {{Parameter | + | {{Parameter row|highest|Highest elevation in meters.|Hidden/Not set}} |
− | {{Parameter | + | {{Parameter row|highest longitude|Longitude of the highest elevation in degrees. Positive is north, negative is south.|Hidden/Not set|1}} |
− | {{Parameter | + | {{Parameter row|highest latitude|Latitude of the highest elevation in degrees. Positive is east, negative is west.|Hidden/Not set|1}} |
− | {{Parameter | + | {{Parameter row|pressure|Pressure of the atmosphere at mean see level in atmospheres. Set to 0 when the body doesn't have an atmosphere.}} |
− | {{Parameter | + | {{Parameter row|scale height|Scale height of the atmosphere in meters||1}} |
− | {{Parameter | + | {{Parameter row|min temp|Lowest temperature in degrees Celsius||1}} |
− | {{Parameter | + | {{Parameter row|max temp|Highest temperature in degrees Celsius||1}} |
− | {{Parameter | + | {{Parameter row|oxygen|Is oxygen present? (Yes/No)||1}} |
− | {{Parameter | + | {{Parameter row|sci landed surf|name2=sci surf|Science multiplier on the surface. <tt>sci landed surf</tt> should be preferred.}} |
− | {{Parameter | + | {{Parameter row|sci splashed surf|Science multiplier on the surface splashed.}} |
− | {{Parameter | + | {{Parameter row|sci lower atmo|Science multiplier in the lower atmosphere.}} |
− | {{Parameter | + | {{Parameter row|sci upper atmo|Science multiplier in the lower atmosphere. Because currently the multiplier for lower and upper atmosphere are identical, lower atmosphere can usually be used solely.}} |
− | {{Parameter | + | {{Parameter row|sci border atmo|Height of the border between lower and upper atmosphere in meters. This is not supported for all, but is not optional.}} |
− | {{Parameter | + | {{Parameter row|sci near space|Science multiplier in near space.}} |
− | {{Parameter | + | {{Parameter row|sci outer space|Science multiplier in outer space. Because currently the multiplier for near and outer space are identical, near space can usually be used solely.}} |
− | {{Parameter | + | {{Parameter row|sci border space|Height of the border between near and outer space in meters. This is not supported for all, but is not optional.}} |
− | {{Parameter | + | {{Parameter row|sci recovery|Science multiplier for recovery.}} |
}} | }} | ||
Revision as of 20:48, 26 November 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: {{Body data/Name}}
- Surface gravity: {{Body data/Gravity}}
- Siderial orbit period: {{Body data/Sidereal orbit}}
- Sphere of influence: {{Body data/SOI}}
Additional templates calculate a property using other body data templates:
- Altitude for a given pressure: {{Body data/alt at pressure}}
- Orbital period at a altitude: {{Body data/orbit period}}