Template:Infobox islands/length/doc

This is a subtemplate of undefined, and should not be used directly.

Usage

 * &rarr; 0.5 km
 * &rarr; 0.3 mi
 * &rarr; 500 m
 * &rarr; 1610 ft

Code
The code uses precision to determine the level of precision. The logic is to give preference to km/mi over m/ft. If both km and mi are specified, then no conversion takes place. Similarly, if both m and ft are specified (and km/mi are not specified), then no conversion takes place.