Шаблон:Convert/flip4

Мавод аз Википедиа — донишномаи озод

33×66×98×130 фут (10×20×30×40 м)

Ҳуҷҷатгузорӣ

The converters Template:Convert/4 and Template:Convert/flip4 will convert 4 amounts at once, allowing a mix of different range words or any text between the 4 amounts. However, all 4 amounts are treated as the same unit type. The output unit must be specified, or put blank "| |" for the default output unit. Convert/flip4 will reverse, or flip, the output to show the results on the left-hand side and inputs on the right-hand side.

Usage

{{convert/4 |5|by|6|by|7|or even|8|m|ft}}
{{convert/4 |5|x|6|x|7|x|8|m|ft}}
{{convert/4 |5|-|6|-|7|-|11|m|ft}}
{{convert/4 |7|to|8| by |4+1/2|to|4+3/4|km|mi|abbr=on}}
{{convert/flip4 |5|by|6|by|7|x|8|m|ft}}

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/4 |5|by|6|by|7|to|8|m|ft}}     gives: 5 by 6 by 7 to 8 метр (16 by 20 by 23 to 26 ft)
  • {{convert/4 |5|x|6|x|7|x|8|m|ft}}          gives: 5×6×7×8 метр (16×20×23×26 ft)
  • {{convert/4 |6|to|7|to|8|to|9|km|mi|abbr=on}}    gives: 6 to 7 to 8 to 9 км (3.7 to 4.3 to 5.0 to 5.6 mi)
  • {{convert/4 |6|to|7|to|8|to|9|km|mi|adj=on}}      gives: 6-to-7-to-8-to-9-километр (3.7-to-4.3-to-5.0-to-5.6 mi)
  • {{convert/4 |10|-|20|-|30|-|40|°C|F|disp=or}}          gives: 10–20–30–40 °C or 50–68–86–104 °F
  • {{convert/4 |11|-|22|-|33|-|44|°C|F|disp=semi}}     gives: 11–22–33–44 °C; 52–72–91–111 °F
  • {{convert/4 |40|-|50|-|60|-|70|°F|C|lk=on }}     gives: 40–50–60–70 °F (4–10–16–21 °C)
  • {{convert/4 |45|-|55|or|65|-|69|°F|C|lk=out}}     gives: 45–55 or 65–69 °F (7–13 or 18–21 °C)
  • {{convert/4 |5+1/2|x|6+1/3|or|7+1/4|x|8+1/5|m|ft}}       gives: 5 12×6 13 or 7 14×8 15 метр (18×21 or 24×27 ft)
  • {{convert/flip4 |5+1/2|x|6+1/3|or|7+1/4|x|8+1/5|m|ft}}   gives: 18×21 or 24×27 фут (5 12×6 13 or 7 14×8 15 м)

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) and disp=b. The results are identical to using Template:Convert for each amount individually.

See also