Jump to content

ଛାଞ୍ଚ:Convert/3

ଉଇକିପିଡ଼ିଆ‌ରୁ

୧୦×୨୦×୩୦ metres (33×66×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" to default.
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 as parentheses) and "disp=output only".

The following examples show a mixture of "by" & "x" or "to" in some conversions:

  • {{convert/3 |5|by|6|by|7|m|ft}}     gives: ୫ by ୬ by ୭ metres (16 by 20 by 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}}                gives: ୭ to ୮ to ୯ kilometres (4.3 to 5.0 to 5.6 mi)
  • {{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: ୧୦–୨୦–୩୦ degrees Celsius or 50–68–86 °F
  • {{convert/3 |11|-|22|-|33|°C|F|disp=semi}}     gives: ୧୧–୨୨–୩୩ degrees Celsius; 52–72–91 °F
  • {{convert/3 |40|-|50|-|60|°F|C|lk=on }}     gives: ୪୦–୫୦–୬୦ degrees Fahrenheit (4–10–16 °C)
  • {{convert/3 |45|-|55|-|65|°F|C|lk=out}}     gives: ୪୫–୫୫–୬୫ degrees Fahrenheit (7–13–18 °C)

The range-words are: to, -, and, or, by, x, xx. Display types: disp=comma, disp=semi, disp=or, disp=output only, disp=s and disp=b. The numeric results are identical to using Template:Convert for each amount individually.

Common problems

[ସମ୍ପାଦନା]

Note the name of this template is "convert/3" and omitting the suffix "/3" can cause the error message: "Template loop detected: Template:Convert/x". Be sure to put a range-word (such as "x") between each of the 3 amounts, to avoid error "Convert/3 - Invalid parameter 2".

The 3 amounts, with 2 range-words, are followed by a unit-code (such as "m") as the 6th parameter. The output unit-code can be "0" as the 7th parameter, to allow the default output unit to be triggered.