ಟೆಂಪ್ಲೇಟು:Convert/3/doc
This is a documentation subpage for ಟೆಂಪ್ಲೇಟು:Convert/3 It may contain usage information, categories and other content that is not part of the original ಟೆಂಪ್ಲೇಟು page. |
The converters Template:Convert/3 and Template:Convert/flip3 will convert 3 amounts at once, allowing a mix of different range words, or any text, between the 3 amounts. However, all 3 amounts are treated as the same unit type. The output unit must be specified, or put blank "| |" for the default output unit. Convert/flip3 will reverse, or flip, the output to show the results on the left-hand side and inputs on the right-hand side.
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 options as Template:Convert, and so it allows abbreviation abbr=in or abbr=out or abbr=off, 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 |4|by|6|rarely|7|m|ft}} gives: ೪ by ೬ rarely ೭ metres (13 by 20 rarely 23 ft)
- {{convert/3 |5|x|6|x|7|m|ft}} gives: ೫ × ೬ × ೭ metres (16 × 20 × 23 ft)
- {{convert/3 |7|to|8|to|9|km|mi|abbr=on}} gives: ೭ to ೮ to ೯ km (4.3 to 5.0 to 5.6 mi)
- {{convert/3 |7|to|8|to|9|km|mi|adj=on}} gives: ೭-to-೮-to-೯-kilometre (4.3-to-5.0-to-5.6 mi)
- {{convert/3 |5|to|6|by|7|m|ft}} gives: ೫ to ೬ by ೭ metres (16 to 20 by 23 ft)
- {{convert/3 |5|by|6|x|7|m|ft}} gives: ೫ by ೬ × ೭ metres (16 by 20 × 23 ft)
- {{convert/3 |10|-|20|-|30|°C|F|disp=or}} gives: ೧೦–೨೦–೩೦ °C or 50–68–86 °F
- {{convert/3 |11|-|22|-|33|°C|F|disp=semi}} gives: ೧೧–೨೨–೩೩ °C; 52–72–91 °F
- {{convert/3 |40|-|50|-|60|°F|C|lk=on }} gives: ೪೦–೫೦–೬೦ °F (4–10–16 °C)
- {{convert/3 |45|-|55|-|65|°F|C|lk=out}} gives: ೪೫–೫೫–೬೫ °F (7–13–18 °C)
- {{convert/3 |5+1/2|by|6+1/3|x|7+1/4|m|ft}} gives: ೫ 1⁄2 by ೬ 1⁄3 × ೭ 1⁄4 metres (18 by 21 × 24 ft)
- {{convert/flip3 |5+1/2|by|6+1/3|x|7+1/4|m|ft}} gives: 18 by 21×24 feet (೫ 1⁄2 by ೬ 1⁄3×೭ 1⁄4 m)
- {{convert/flip3 |7|to|8|to|9|km|mi|disp=x| [or |]}} gives: 4.3 to 5.0 to 5.6 miles [or ೭ to ೮ to ೯ km]
The range-words are: to, by, and, or, -, +/-, x, xx & comma, but any text can be inserted between numbers. 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.
See also
[ಬದಲಾಯಿಸಿ]- Template:Convert/2 – convert 2 amounts with any separator text
- Template:Convert/3 – convert 3 amounts with any separator text
- Template:Convert/4 – convert 4 amounts with any separator text
- Template:Convert/flip2 – converting & flipping 2 amounts with any text
- Template:Convert/flip3 – converting & flipping 3 amounts with any text
- Template:Convert/flip4 – converting & flipping 4 amounts with any text