User:Wikid77/Template:Convert set/doc

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


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

The template supports most of the options which Template:Convert allows, including abbreviation abbr=in or abbr=out or abbr=off, 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
 * {&#123;convert set |5|by|6|m|ft}}    →
 * {&#123;convert set |5|x|6|m|ft|r=2}}    →
 * {&#123;convert set |7,550|rarely|7,600|km|mi}} →
 * {&#123;convert set |7|to|8|km|mi|abbr=on}}    →
 * {&#123;convert set |7|to|8|km|mi|adj=on}}    →
 * {&#123;convert set |7|or|8|km|mi|adj=split}}    →
 * {&#123;convert set |10|-|20|°C|F|disp=or}}    →
 * {&#123;convert set |11|-|22|°C|F|disp=semi}}    →
 * {&#123;convert set |10|&amp;ndash;|15|°F|C}}    →
 * {&#123;convert set |105|-|106|°F|C|lk=on }}   →
 * {&#123;convert set |45|-|55|°F|C|disp=x| in winter (|)}} –
 * {&#123;convert set |700.4|-|700.5|lb|kg}}


 * {&#123;convert set |5+1/2|wide by|6+1/3|m|ft}} –

The standard 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.