Difference between revisions of "Template:Body data/Gravity"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{#expr: {{BodyData/Mass|{{{1}}}}} * {{G}}/({{BodyData/Radius|{{{1}}}}}^2)}}</includeonly><noinclude>Returns the surface gravity of a [[Celestials|celestial body]...")
 
(*use new bodydata template;)
Line 1: Line 1:
<includeonly>{{#expr: {{BodyData/Mass|{{{1}}}}} * {{G}}/({{BodyData/Radius|{{{1}}}}}^2)}}</includeonly><noinclude>Returns the surface gravity of a [[Celestials|celestial body]] in meters/second². It uses {{Tl|BodyData/Mass}} and {{Tl|BodyData/Radius}} for the given planet.
+
<includeonly>{{#expr: {{BodyData|{{{1}}}|mass}} * {{G}}/({{BodyData|{{{1}}}|radius}}^2)}}</includeonly><noinclude>Returns the surface gravity of a [[celestial body]] in meters/second². It uses {{Tl|BodyData}} with the properties <tt>mass</tt> and <tt>radius</tt> for the given body.
 
:<math>g = \frac{M \cdot G}{R}</math>
 
:<math>g = \frac{M \cdot G}{R}</math>
  
[[Category:Templates|BodyData/Gravity]]
+
[[Category:Templates]]
 
[[Category:BodyData Math Templates|Gravity]]</noinclude>
 
[[Category:BodyData Math Templates|Gravity]]</noinclude>

Revision as of 15:08, 14 September 2013

Returns the surface gravity of a celestial body in meters/second². It uses {{BodyData}} with the properties mass and radius for the given body.