Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Difference between revisions of "User:Johan G/convert"

From FlightGear wiki
Jump to: navigation, search
(adding mph -> kt and kt -> mph formulas... hope i've done it right by copying an existing one and changing the div to mul for multiplying...)
(adding ft -> m and ft -> NM conversion formulas)
Line 24: Line 24:
       | mm = {{error|Conversion not implemented}}
       | mm = {{error|Conversion not implemented}}
       | in = {{error|Conversion not implemented}}
       | in = {{error|Conversion not implemented}}
       | m = {{error|Conversion not implemented}}
       | m = {{#expr: {{{1}}} mul 0.3048 round {{{4|0}}}}} {{#if: {{{5|}}}||m}}
       | km = {{error|Conversion not implemented}}
       | km = {{error|Conversion not implemented}}
       | mi = {{error|Conversion not implemented}}
       | mi = {{error|Conversion not implemented}}
       | NM = {{error|Conversion not implemented}}
       | NM = {{#expr: {{{1}}} mul 0.00016457883 round {{{4|0}}}}} {{#if: {{{5|}}}||NM}}
       | #default = {{error|Parameter '''to-unit''' missing or not supported}}
       | #default = {{error|Parameter '''to-unit''' missing or not supported}}

Revision as of 13:27, 5 August 2018

Parameter value missing

The following template description is not displayed when the template is inserted in an article.


This template can be used to...

Adding this template to a page will automatically add Category:... to that page.

Caution Caution that might help prevent lost work, very complicated debugging etc...

Note Note that might be helpful or lead the reader in the right direction.



The parameters value, from-unit and to-unit are mandatory, and the other optional

Value to be converted from one unit to another.
Unit to be converted from
Unit to be converted to
Number of decimals. If empty, no decimals will be shown
If not empty the unit will not be shown in the result


Examples using different options.

Supported units

Conversion between some of these units have been implemented.

Units of length

mm millimeter
in inches
ft feet
m meters
km kilometers
mi statute miles
NM nautical miles

Units of velocity

ft/s feet per second
m/s meters per second
km/h kilometers per hour
mph statute miles per hour
kt knots

Units of time

s seconds
min minutes
h hours
d days

Known issues

Known issues and workarounds if such are known.

Related templates