Revision 4022513 of "Template:Convert/2/doc" on simplewiki{{Documentation subpage}}
The converter '''[[Template:Convert/2]]''' will [[conversion of units|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''': {{convert/2 |5|by|6|m|ft}}
::: {{convert/2 |5|x|6|m|ft}}
::: {{convert/2 |5.5|up to|6|m|ft}}
::: {{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).
; Examples
The following examples show various separator text, with p=2 to round the [[precision]] to 2 decimal places:
* {{convert/2 |5|by|6|m|ft}}{{in5|8}}→ {{convert/2 |5|by|6|m|ft}}
* {{convert/2 |5|x|6|m|ft|p=2}}{{in5}}→ {{convert/2 |5|x|6|m|ft|p=2}}
* {{convert/2 |7,500|rarely|7,600|km|mi}} → {{convert/2 |7,500|rarely|7,600|km|mi}}
* {{convert/2 |7|to|8|km|mi|abbr=on}}{{in5|4}}→ {{convert/2 |7|to|8|km|mi|abbr=on}}
* {{convert/2 |7|to|8|km|mi|adj=on}}{{in5|6}}→ {{convert/2 |7|to|8|km|mi|adj=on}}
* {{convert/2 |10|-|20|°C|F|disp=or}}{{in5|9}}→ {{convert/2 |10|-|20|°C|F|disp=or}}
* {{convert/2 |11|-|22|°C|F|disp=semi}}{{in5}}→ {{convert/2 |11|-|22|°C|F|disp=semi}}
* {{convert/2 |40|-|50|°F|C|lk=on }}{{in5}}→ {{convert/2 |40|-|50|°F|C|lk=on}}
* {{convert/2 |45|-|55|°F|C|disp=x| in winter (|)}}{{in5}}→ {{convert/2 |45|-|55|°F|C|disp=x| in winter (|)}}
* {{convert/2 |5+1/2|by|6+1/3|m|ft}}{{in5|4}}→ {{convert/2 |5+1/2|by|6+1/3|m|ft}}
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.
==Related pages==
* [[Template:Convert/3]] - to convert 3 amounts of the same unit
* [[Template:Convert/4]] - to convert 4 amounts of the same unit
<includeonly>
[[Category:Subtemplates of Template Convert]]
[[Category:2011 Convert unit subtemplates]]
<!--PUT ANY INTERWIKI LINKS BELOW (not in the template) -->
[[bn:টেমপ্লেট:Convert/2/doc]]
[[bn:টেমপ্লেট:Convert/2]]
[[en:Template:Convert/2]]
</includeonly>All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://simple.wikipedia.org/w/index.php?oldid=4022513.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|