User:Moondyne/Convert

Abridged instructions for the convert template.


 * 1st parameter is the number to convert.
 * 2nd is the unit code.
 * 3rd (optional) is the unit code to convert to. Most units have a logical default unit to convert to and are therefore mostly unnecessary. eg. "km" converts to "mi" unless you override it.  (see example 2)
 * 4th (optional) is the rounding number. ie. 0 = whole number; 1 = tenths; 2 = hundredths. (see examples 3 & 4)

Examples

 * 1)  &rarr; 100 km
 * 2)  &rarr; 100 km -- overriding convert-to unit
 * 3)  &rarr; 100 acre -- rounding to 2 decimals
 * 4)  &rarr; 100 acre -- rounding to 0 decimals

Optional switches

 * &rarr; displays 2 letter abbreviated units
 * &rarr; units are linked
 * &rarr; display significant figures
 * &rarr; for use in tables. Result shows over 2 columns inside a table

More examples

 * 1)  &rarr; 100 acre
 * 2)  &rarr; 33 Tcuft
 * 3)  &rarr; 100 km
 * 4)  &rarr; 100 km
 * 5)  &rarr; 6 ft
 * 6)  &rarr; 60 to(-)