Difference between revisions of "Template:OrbitVelocity"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!defaults period and mass to the given body;)
m (*more specific categories; -old parameters;)
Line 1: Line 1:
<includeonly>{{formatnum|{{OrbitVelocity/Core|{{{1|{{{period|{{{period_s|}}}}}}}}}|{{{2|{{{mass|{{{mass_kg|}}}}}}}}}|b={{{body|{{{b|}}}}}}|f={{{factor|{{{f|}}}}}}|pf={{{period factor|{{{pf|}}}}}}}}|2}}&nbsp;{{Dict|{{{factor|{{{f|}}}}}}}}{{Dict|m}}/{{Dict|s}}{{#if: {{{period_s|}}}{{{mass_kg|}}}{{{round|}}}{{{suffix|}}}|[[Category:OrbitVelocity with old parameters]]}}</includeonly><noinclude>This template calculates the velocity of an orbit. To calculate further with the orbit's velocity use {{Tl|OrbitVelocity/Core}}.
+
<includeonly>{{formatnum|{{OrbitVelocity/Core|{{{1|{{{period|}}}}}}|{{{2|{{{mass|}}}}}}|b={{{body|{{{b|}}}}}}|f={{{factor|{{{f|}}}}}}|pf={{{period factor|{{{pf|}}}}}}}}|2}}&nbsp;{{Dict|{{{factor|{{{f|}}}}}}}}{{Dict|m}}/{{Dict|s}}</includeonly><noinclude>This template calculates the velocity of an orbit. To calculate further with the orbit's velocity use {{Tl|OrbitVelocity/Core}}.
 
 
All usages with the old parameter names will be sorted into the category [[:Category:OrbitVelocity with old parameters]].
 
  
 
== Parameters ==
 
== Parameters ==
  
 
{{Parameter Table|name=both|parameters=
 
{{Parameter Table|name=both|parameters=
{{Parameter Row|period|name2=1|Period of the orbit in seconds (Old parametername: <tt>{{{period_s}}}</tt>)}}
+
{{Parameter Row|period|name2=1|Period of the orbit in seconds}}
{{Parameter Row|mass|name2=2|Mass of central body in kilograms (Old parametername: <tt>{{{mass_kg}}}</tt>)}}
+
{{Parameter Row|mass|name2=2|Mass of central body in kilograms}}
 
{{Parameter Row|factor|name2=f|Factor in which the velocity should be shown. Available values: None (m/s), '''k''' (km/s), '''M''' (Mm/s), '''G''' (Gm/s).|None}}
 
{{Parameter Row|factor|name2=f|Factor in which the velocity should be shown. Available values: None (m/s), '''k''' (km/s), '''M''' (Mm/s), '''G''' (Gm/s).|None}}
 
{{Parameter Row|body|name2=b|Uses the sidereal rotation period and mass as default from the given body. Can be overwritten.|Not set (makes the first two parameters mandatory)}}
 
{{Parameter Row|body|name2=b|Uses the sidereal rotation period and mass as default from the given body. Can be overwritten.|Not set (makes the first two parameters mandatory)}}
Line 22: Line 20:
 
|}
 
|}
  
[[Category:Templates]]</noinclude>
+
[[Category:Calculating templates]]
 +
[[Category:Translating templates]]</noinclude>

Revision as of 16:27, 26 January 2014

This template calculates the velocity of an orbit. To calculate further with the orbit's velocity use {{OrbitVelocity/Core}}.

Parameters

Template:Parameter Table

Examples

Usage Produces
{{OrbitVelocity | period=64980 | mass=4.515e21}}
307.72 m/s
{{OrbitVelocity | 64980 | 4.515e21}}
307.72 m/s