You are not currently logged in. Are you accessing the unsecure (http) portal? Click here to switch to the secure portal. |
Template:Convert/3
10×20×30 Template:Convert/LoffAdefDunitSoff (Template:Convert/LoffAdefDoutput number onlySoff×Template:Convert/LoffAdefDoutput number onlySoff×98 ft)
The converter Template:Convert/3 will convert 3 amounts at once, allowing a mix of different range words between the 3 amounts. However, all 3 amounts are treated as the same unit type. The output unit must be specified, or put "0" for the default output unit.
Usage
- {{convert/3 |5|by|6|by|7|m|ft}}
- {{convert/3 |5|x|6|x|7|m|ft}}
- {{convert/3 |5|-|6|-|7|m|ft}}
- {{convert/3 |7|to|8|by|4.5|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=in or lk=out, and adjective mode adj=on. The separator can also be a semicolon: disp=semi, disp=semicolon, disp=or, disp=comma & 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 a mixture of "by" & "x" or "to" in some conversions:
- {{convert/3 |5|by|6|by|7|m|ft}} gives: 5 by 6 by 7 Template:Convert/LoffAdefDunitSoff (Template:Convert/LoffAdefDoutput number onlySoff by Template:Convert/LoffAdefDoutput number onlySoff by 23 ft)
- {{convert/3 |5|x|6|x|7|m|ft}} gives: 5×6×7 Template:Convert/LoffAdefDunitSoff (Template:Convert/LoffAdefDoutput number onlySoff×Template:Convert/LoffAdefDoutput number onlySoff×23 ft)
- {{convert/3 |7|to|8|to|9|km|mi}} gives: 7 to 8 to 9 Template:Convert/LoffAdefDunitSoff (Template:Convert/LoffAdefDoutput number onlySoff to Template:Convert/LoffAdefDoutput number onlySoff to 5.6 mi)
- {{convert/3 |7|to|8|to|9|km|mi|abbr=on}} gives: 7 to 8 to 9 km (Template:Convert/LoffAdefDoutput number onlySoff to Template:Convert/LoffAdefDoutput number onlySoff to 5.6 mi)
- {{convert/3 |7|to|8|to|9|km|mi|adj=on}} gives: 7-to-8-to-9-Template:Convert/LoffAdefDunitSon (Template:Convert/LoffAdefDoutput number onlySoff-to-Template:Convert/LoffAdefDoutput number onlySoff-to-5.6-mi)
- {{convert/3 |5|to|6|by|7|m|ft}} gives: 5 to 6 by 7 Template:Convert/LoffAdefDunitSoff (Template:Convert/LoffAdefDoutput number onlySoff to Template:Convert/LoffAdefDoutput number onlySoff by 23 ft)
- {{convert/3 |5|by|6|x|7|m|ft}} gives: 5 by 6×7 Template:Convert/LoffAdefDunitSoff (Template:Convert/LoffAdefDoutput number onlySoff by Template:Convert/LoffAdefDoutput number onlySoff×23 ft)
- {{convert/3 |10|-|20|-|30|°C|F|disp=or}} gives: 10–20–30 Template:Convert/LoffAdefDunitSoffT or Template:Convert/LoffAdefDoutput number onlySoffT–Template:Convert/LoffAdefDoutput number onlySoffT–86 °F
- {{convert/3 |11|-|22|-|33|°C|F|disp=semi}} gives: 11–22–33 Template:Convert/LoffAdefDunitSoffT; Template:Convert/LoffAdefDoutput number onlySoffT–Template:Convert/LoffAdefDoutput number onlySoffT–91 °F
- {{convert/3 |40|-|50|-|60|°F|C|lk=on }} gives: 40–50–60 Template:Convert/LonAdefDunitSoffT (Template:Convert/LoffAdefDoutput number onlySoffT–Template:Convert/LoffAdefDoutput number onlySoffT–16 °C)
- {{convert/3 |45|-|55|-|65|°F|C|lk=out}} gives: 45–55–65 Template:Convert/LoutAdefDunitSoffT (Template:Convert/LoffAdefDoutput number onlySoffT–Template:Convert/LoffAdefDoutput number onlySoffT–18 °C)
- {{convert/3 |5+1/2|by|6+1/3|x|7+1/4|m|ft}} gives: 5 by 1⁄26× 1⁄37 1⁄4Template:Convert/LoffAdefDunitSoff (Template:Convert/LoffAdefDoutput number onlySoff by Template:Convert/LoffAdefDoutput number onlySoff×24 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) and disp=b. The results are identical to using Template:Convert for each amount individually.
See also
- Template:Convert/2 - for converting 2 amounts of the same unit
- Template:Convert/4 - for converting 4 amounts of the same unit
The above documentation is transcluded from Template:Convert/3/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |