Template:Convert/doc

Usage
This template shows measurement quantities as primary and converted secondary units (or ranges), with optional rounding, wikilinks, abbreviation, or US spellings, and various separators including: parentheses "", slash, "or", hyphens, comma, "to" or dashes. Styles include: distance "32 m" and "32 m"; temperature "18 °C" or "18 °C"; weight "55.0 kg" or "65 to 80 kg"; etc. For units see: Convert/list of units. Single value:  original_value original_unit 

Range of values (see below for list of range options):  orig_val1 range 


 * Numbers must be entered in unformatted form (without commas). For negative numbers (i.e. temperatures or precision) use a hyphen as the minus sign for the input number.  Values output by the template will be displayed formatted and with a true minus sign where appropriate. To specify with commas, re-code a number as 9,000,500 (becomes 9000500).
 * Optional parameters, in examples below, allow abbreviated units (abbr=on), or US spellings (sp=us for meter), or slash separation (disp=s), or hyphenation (adj=on), etc.
 * For this template many levels of substitution are possible, hence doing this fully, step by step, is cumbersome. Use Special:ExpandTemplates instead.
 * The template has no in-built capacity for dimensional analysis. It is therefore up to the user to ensure that the input and output units are compatible.  Do not, for example, attempt to convert barrels to tonnes (but see bbl to t).  Also beware of units with similar names; the code , for example, is for the avoirdupois ounce (a unit of mass), do not use this if you want fluid ounces.
 * An attempt to convert a unit to itself (e.g. km to km), will result in a template loop.
 * The range functionality is not fully implemented for all units, so experimentation may be required.
 * This documentation page tends to lag behind in terms of what the template can do. For details see the talk page and its archives.

Range of values

 * Note: not yet operational for all units

The following conversions are currently not available as a range of values:
 * Some imperial and US gallon-based units
 * Other fuel-consumption units, except "mpg" or "L100km" shown above.
 * Large scale units (e3, e6, e9)
 * Combination-based units (ft&in, st&lb, lb&oz) due to complexity of the conversion.