Template:Convert/2/doc

The converter Template:Convert/2 will convert 2 amounts at once, allowing any range words/text between the 2 amounts. However, both amounts are treated as the same unit type. The output unit must be specified, or put "0" for the default output unit.


 * Usage: {&#123;convert/2 |5|by|6|m|ft}}
 * {&#123;convert/2 |5|x|6|m|ft}}
 * {&#123;convert/2 |5.5|up to|6|m|ft}}
 * {&#123;convert/2 |15|rarely|20|km|mi|abbr=on}}

The template has the same parameters as Template:Convert, and so it allows abbreviation abbr=in or abbr=out or abbr=none, wikilinks lk=on, lk=in or lk=out, and adjective mode adj=on. The separator can also be a semicolon: disp=semi, disp=or, disp=comma, disp=x & disp=b (default parentheses). Using optional parameter "warn=yes" will warn when the separator is an unusual word (other than: to, by, and, or, -, +/-, x, xx or comma).

The following examples show various separator text, with p=2 to round the precision to 2 decimal places:
 * Examples
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;

The range-words are: to, by, and, or, -, +/-, x, xx & comma. Display types: disp=comma, disp=semi, disp=or, disp=s, disp=2 (or disp=out), disp=# (or disp=number), disp=x and disp=b. The results are identical to using Template:Convert for each amount individually.