Difference between revisions of "Template:OrbitVelocity"
From Kerbal Space Program Wiki
m (Use Template:G for the gravitational constant.) |
(Add optional "round" and "suffix" arguments.) |
||
Line 9: | Line 9: | ||
--> ) <!-- | --> ) <!-- | ||
--> ) ^ 0.5 <!-- | --> ) ^ 0.5 <!-- | ||
− | --> }} m/s<noinclude> | + | --> {{{round|}}} }} {{{suffix|m/s}}}<noinclude> |
{| class="wikitable" | {| class="wikitable" | ||
Line 15: | Line 15: | ||
|- | |- | ||
| <pre><nowiki>{{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | radius_km=320}}</nowiki></pre> || {{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | radius_km=320}} | | <pre><nowiki>{{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | radius_km=320}}</nowiki></pre> || {{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | radius_km=320}} | ||
+ | |- | ||
+ | | <pre><nowiki>{{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | radius_km=320 | round=round2}}</nowiki></pre> || {{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | radius_km=320 | round=round2}} | ||
+ | |- | ||
+ | | <pre><nowiki>{{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | radius_km=320 | round=round2 | suffix=}}</nowiki></pre> || {{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | radius_km=320 | round=round2 | suffix=}} | ||
|} | |} | ||
Revision as of 23:18, 17 October 2012
Expression error: Unrecognized punctuation character "{". m/s
Usage | Produces |
---|---|
{{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | radius_km=320}} |
0.00 m/s |
{{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | radius_km=320 | round=round2}} |
0.00 m/s |
{{OrbitVelocity | period_s=64980 | mass_kg=4.515e21 | radius_km=320 | round=round2 | suffix=}} |
0.00 m/s |
This template calculates the velocity of an orbit, given the mass of the planet (in kg), the planet's radius (in km), and the period of the orbit (in seconds).