الگو:Convert/توضیحات ۲


Template {{convert}} calculates measurements from one unit (you can enter) to another one, and then presents the results. For example:

{{convert|2|km|mi}} → ۲ کیلومتر (۱٫۲ مایل)
{{convert|7|mi|km}} → ۷ مایل (۱۱ کیلومتر)

The available units are listed below. Units are always case-sensitive (kW, not KW or kw). Multiple formatting and calculation options are listed below.

Unit name or symbol (abbreviation): 1 pound or 1 lb? ویرایش

By default, the first value shows unit name spelled out, the second the symbol (or abbreviation). Use |abbr=on/off to change this behaviour:

  • {{convert|1|lb|kg}} → ۱ پوند (۰٫۴۵ کیلوگرم)

To abbreviate both:

  • {{convert|1|lb|kg|abbr=on}} → ۱ پوند (۰٫۴۵ کیلوگرم)
  • {{convert|1|lb|kg|abbr=off}} → ۱ پوند (۰٫۴۵ کیلوگرم)

|abbr=in is the reverse behaviour to the default, |abbr=out:

  • {{convert|1|lb|kg|abbr=in}} → ۱ پوند (۰٫۴۵ کیلوگرم)

When using scientific notation, the default is for the second (converted) value to display with scientific notation:

  • {{convert|100|e6mi|e6km}} → ۱۰۰ میلیون مایل (۱۶۰ میلیون کیلومتر)

To display thousands, millions, etc., while abbreviating both input and output units use |abbr=unit:

  • {{convert|100|e6mi|e6km|abbr=unit}} → ۱۰۰ میلیون مایل (۱۶۰ میلیون کیلومتر)

Convenience: {{cvt}} has |abbr=on by default ویرایش

Template {{cvt}} is similar to {{convert}}, but has |abbr=on as the default behaviour. In {{cvt}}, all other options are available. So:

{{cvt|1|lb|kg}} → ۱ پوند (۰٫۴۵ کیلوگرم)

is equal to:

{{convert|1|lb|kg|abbr=on}} → ۱ پوند (۰٫۴۵ کیلوگرم)

Adjective: a 10-mile distance ویرایش

Use |adj=on to produce the adjective form:

  • A {{convert|10|mi|km|adj=on}} distance → A ۱۰-مایل (۱۶-کیلومتر) distance.

Default behaviour, for comparison:

  • {{convert|10|mi|km}} to go → ۱۰ مایل (۱۶ کیلومتر) to go.

This option does not work with |abbr=on.

Rounding: 100 ft is 30 m or 30.5 m or 30.48 m? ویرایش

By definition, 100 ft equals ۳۰٫۴۸ متر. In practical use, it is common to round the calculated metric number. With that, there are several possibilities.

Default rounding ویرایش

By {{Convert}} default, the conversion result will be rounded either to precision comparable to that of the input value (the number of digits after the decimal point—or the negative of the number of non-significant zeroes before the point—is increased by one if the conversion is a multiplication by a number between 0.02 and 0.2, remains the same if the factor is between 0.2 and 2, is decreased by 1 if it is between 2 and 20, and so on) or to two significant figures, whichever is more precise. An exception to this is rounding temperatures (see below).

Examples of rounding
Input Displays as Note
{{convert|123|ft|m|-1}} ۱۲۳ فوت (۴۰ متر)
{{convert|123|ft|m|0}} ۱۲۳ فوت (۳۷ متر)
{{convert|123|ft|m|1}} ۱۲۳ فوت (۳۷٫۵ متر)
{{convert|550|ft|m}} ۵۵۰ فوت (۱۷۰ متر)
{{convert|550|ft|m|1}} ۵۵۰ فوت (۱۶۷٫۶ متر) Rounds to 170
{{convert|500|ft|m|2}} ۵۰۰ فوت (۱۵۲٫۴۰ متر) Exact value (by definition) is 152.4 m
{{convert|500|ft|m|3}} ۵۰۰ فوت (۱۵۲٫۴۰۰ متر) Rounds to 150

Convert supports four types of rounding:

Round to a given precision: use a precision number ویرایش

Specify the desired precision with the fourth unnamed parameter (or third unnamed parameter if the "convert to" parameter is omitted; or fifth unnamed parameter if a range is specified; or fourth unnamed parameter again if a range is specified and the "convert to" parameter is omitted; needs to be replaced with a "precision" named parameter). The conversion is rounded off to the nearest multiple of ۱10 to the power of this number. For instance, if the result is 8621 and the round number is "-2", the result will be 8600. If the result is "234.0283043" and the round number is "0", the result will be 234.

Round to a given number of significant figures: |sigfig= ویرایش

To specify the output number to be with n significant figures use |sigfig=<number>:

  • {{convert|1200|ft|m|sigfig=4}} → ۱٬۲۰۰ فوت (۳۶۵٫۸ متر)
  • {{convert|1200|ft|m|sigfig=3}} → ۱٬۲۰۰ فوت (۳۶۶ متر)
  • {{convert|1200|ft|m|sigfig=2}} → ۱٬۲۰۰ فوت (۳۷۰ متر)
  • {{convert|1200|ft|m|sigfig=1}} → ۱٬۲۰۰ فوت (۴۰۰ متر)

Default behaviour, for comparison:

  • {{convert|1200|ft|m}} → ۱٬۲۰۰ فوت (۳۷۰ متر)

Setting |sigfig= is meaningless

  • {{convert|1200|ft|m|sigfig=0}} → ۱٬۲۰۰ فوت (۳۷۰ متر)*

Round to a multiple of 5: 15, 20, 25, ... ویرایش

Using |round=5 rounds the outcome to a multiple of 5.

  • {{convert|10|m|ft}} → ۱۰ متر (۳۳ فوت)
  • {{convert|10|m|ft|round=5}} → ۱۰ متر (۳۵ فوت)

Similar: using |round=25 rounds the outcome to a multiple of 25.

  • {{convert|10|m|ft}} → ۱۰ متر (۳۳ فوت)
  • {{convert|10|m|ft|round=25}} → ۱۰ متر (۲۵ فوت)

Default behaviour, for comparison:

  • {{convert|10|m|ft|sigfig=4}} → ۱۰ متر (۳۲٫۸۱ فوت)

In a range, one can round each value individually to the default. Use |round=each:

  • {{convert|10 x 200 x 3000|m|ft}} → ۱۰ در ۲۰۰ در ۳٬۰۰۰ متر (۳۳ در ۶۵۶ در ۹٬۸۴۳ فوت)
  • {{convert|10 x 200 x 3000|m|ft|round=each}} → ۱۰ در ۲۰۰ در ۳٬۰۰۰ متر (۳۳ در ۶۶۰ در ۹٬۸۰۰ فوت)

Round to a multiple of a given fraction: 2+316 inch ویرایش

Specify the desired denominator using |frac=<some positive integer>. (Denominator is the below-the-slash number, for example the 3 in 13).

  • {{convert|5.56|cm|in|frac=16}} → ۵٫۵۶ سانتیمتر (۲ ۳۱۶ اینچ)
  • {{convert|8|cm|in|frac=4}} → ۸ سانتیمتر (۳ ۱۴ اینچ)

The fraction is reduced when possible:

  • {{convert|8|cm|in|frac=100}} → ۸ سانتیمتر (۳ ۳۲۰ اینچ)

Default behaviour, for comparison:

  • {{convert|8|cm|in}} → ۸ سانتیمتر (۳٫۱۵۰ اینچ)

In temperatures: rounding °C, °F and K ویرایش

In temperatures, the conversion will be rounded either to precision comparable to that of the input value or to that which would give three significant figures when expressed in kelvins, whichever is more precise.

  1. {{convert|10,000|C|F K}} ← ۱۰٬۰۰۰ درجه سلسیوس (۱۸٬۰۰۰ درجه فارنهایت؛ ۱۰٬۳۰۰ کلوین)
  2. {{convert|10,000.1|C|F K}} ← ۱۰٬۰۰۰٫۱ درجه سلسیوس (۱۸٬۰۳۲٫۲ درجه فارنهایت؛ ۱۰٬۲۷۳٫۲ کلوین)
  3. {{convert|-272|C|F K}} ← −۲۷۲ درجه سلسیوس (−۴۵۷٫۶۰ درجه فارنهایت؛ ۱٫۱۵ کلوین)
  4. {{convert|-272|C}} ← −۲۷۲ درجه سلسیوس (−۴۵۷٫۶۰ درجه فارنهایت)
  5. {{convert|-300|C|F K}} ← −۳۰۰ درجه سلسیوس (−۵۰۸٫۰ درجه فارنهایت؛ −۲۶٫۹ کلوین)
  6. {{convert|0|C|F K}} ← ۰ درجه سلسیوس (۳۲ درجه فارنهایت؛ ۲۷۳ کلوین)

The precision of the input number in example (1) is one digit, but the precision of its Kelvins expression is three, so the precision of the Fahrenheit conversion is made three (made 180...) . (1) and (2) seem to belie the fact that a ۰٫۱ تغییر درجه سلسیوس is a ۰٫۱۸ تغییر درجه فارنهایت, and make the 32 degrees difference shown in (1) begin to seem off somehow. Result (1) seems off until you set the significant figures yourself with |sigfig=:

{{convert|10000|C|sigfig=5}} ← ۱۰٬۰۰۰ درجه سلسیوس (۱۸٬۰۳۲ درجه فارنهایت)

or you set the precision positionally, relative to the decimal point (zero being at the decimal point):

{{convert|10000|C|0}} ← ۱۰٬۰۰۰ درجه سلسیوس (۱۸٬۰۳۲ درجه فارنهایت)

The precision of the input number in example (2) is six, so the precision of the Fahrenheit output is, whereas before, Kelvins had determined it to be three. Examples (3) and (4) show how this can be hidden and generate questions, but it occurs there because the Kelvins conversion generated two fractional parts. (Before it was the input number that generated the fractional part.) In example (3) the three input digits converted into five significant output digits because of the two numbers after the decimal point, generated by the Kelvins conversion. This happened again in (5), but in (6) decimal fractions were neither given as input nor induced by the Kelvins conversion.

Into multiple units: ۱۰ درجه سلسیوس (۵۰ درجه فارنهایت؛ ۲۸۳ کلوین) ویرایش

Separate the multiple output units by a space:

  • {{convert|10|C|F K}} → ۱۰ درجه سلسیوس (۵۰ درجه فارنهایت؛ ۲۸۳ کلوین)
  • {{convert|5|km|mi nmi}} → ۵ کیلومتر (۳٫۱ مایل؛ ۲٫۷ مایل دریایی)

If the output unit names contain spaces, use + as the separator.

See also:

Ranges of values ویرایش

A range converts two values and separates them by your choice of words and punctuation.

A range: 6 to 17 kg (13 to 37 lb) ویرایش

Range indicators are entered as the second parameter (between the values). Range separators can be:

Range separators in {{convert}}
Separator Convert Result Notes
- {{convert|3|-|6|ft}} ۳–۶ فوت (۰٫۹۱–۱٫۸۳ متر) Input can be hyphen (-) or en&nbsp;dash (–), output uses en&nbsp;dash
&ndash;&nbsp;&amp;ndash; (en&nbsp;dash) {{convert|3|–|6|ft}} ۳–۶ فوت (۰٫۹۱–۱٫۸۳ متر)
and {{convert|3|and|6|ft}} ۳ و ۶ فوت (۰٫۹۱ و ۱٫۸۳ متر)
and(-) {{convert|3|and(-)|6|ft}} ۳ و ۶ فوت (۰٫۹۱–۱٫۸۳ متر) |abbr=on abbreviates the first unit
and(-)&#x7c;abbr=on {{convert|3|and(-)|6|ft|abbr=on}} ۳ و ۶ فوت (۰٫۹۱–۱٫۸۳ متر)
or {{convert|3|or|6|ft}} ۳ یا ۶ فوت (۰٫۹۱ یا ۱٫۸۳ متر)
to {{convert|3|to|6|ft}} ۳ تا ۶ فوت (۰٫۹۱ تا ۱٫۸۳ متر)
to(-) {{convert|3|to(-)|6|ft}} ۳ تا ۶ فوت (۰٫۹۱–۱٫۸۳ متر) |abbr=on abbreviates the first unit
to(-)&#x7c;abbr=on {{convert|3|to(-)|6|ft|abbr=on}} ۳ تا ۶ فوت (۰٫۹۱–۱٫۸۳ متر)
to about {{convert|3|to&nbsp;about|6|ft}} ۳ تا حدود ۶ فوت (۰٫۹۱ تا حدود ۱٫۸۳ متر)
+/- {{convert|3|+/-|6|ft}} ۳ ± ۶ فوت (۰٫۹۱ ± ۱٫۸۳ متر)
±&nbsp;&amp;plusmn; {{convert|3|±|6|ft}} ۳ ± ۶ فوت (۰٫۹۱ ± ۱٫۸۳ متر)
+ {{convert|3|+|6|ft}} ۳ + ۶ فوت (۰٫۹۱ + ۱٫۸۳ متر)
, {{convert|3|,|6|ft}} ۳, ۶ فوت (۰٫۹۱, ۱٫۸۳ متر)
, and {{convert|3|, and|6|ft}} ۳، و ۶ فوت (۰٫۹۱، و ۱٫۸۳ متر)
, or {{convert|3|, or|6|ft}} ۳، یا ۶ فوت (۰٫۹۱، یا ۱٫۸۳ متر)
by {{convert|3|by|6|ft}} ۳ در ۶ فوت (۰٫۹۱ در ۱٫۸۳ متر)
x {{convert|3|x|6|ft}} ۳ در ۶ فوت (۰٫۹۱ در ۱٫۸۳ متر) |abbr=on abbreviates and repeats the first unit
&times;&nbsp;&amp;times; {{convert|3|&times;|6|ft}} ۳ &times;[ابزار تبدیل: یکای ناشناخته]
x&#x7c;abbr=on {{convert|3|x|6|ft|abbr=on}} ۳ در ۶ فوت (۰٫۹۱ در ۱٫۸۳ متر)
xx &#x7c;xx&#x7c; is deprecated. Use &#x7c;x&#x7c; instead
* &#x7c;*&#x7c; is deprecated. Use &#x7c;x&#x7c; instead

Multiple dimensions: ۶ در ۱۲ متر (۲۰ در ۳۹ فوت) ویرایش

Use by:

  • {{convert|6|by|12|ft|m}} → ۶ در ۱۲ فوت (۱٫۸ در ۳٫۷ متر)

Use ×, multiplication sign, or x, letter:

  • {{convert|6|x|12|m|ft}} → ۶ در ۱۲ متر (۲۰ در ۳۹ فوت)

In science, the formal way is to set |x| and |abbr=on (keeping dimensions right, like in area = x km2):

  • {{convert|6|x|12|m|ft|abbr=on}} → ۶ در ۱۲ متر (۲۰ در ۳۹ فوت)

About feet, inch in ranges and multiples ویرایش

While it is possible to enter feet, inch in a simple conversion, this is not possible for ranges:

Default behaviour, for comparison:

  • {{convert|1|ft|3|in|mm}} → ۱ فوت ۳ اینچ (۳۸۰ میلیمتر)

Words ویرایش

Spelling of unit name: UK metre or US meter? ویرایش

Default spelling of units is en-UK. To show en-US spelling, use |sp=us:

{{convert|1|m|ft}} → ۱ متر (۳٫۳ فوت)—default
{{convert|1|m|ft|sp=us}} → ۱ متر (۳٫۳ فوت)

Spell out numbers: ten miles ویرایش

To write a number in words, use |spell=in:

  • {{convert|10|mi|m|spell=in}} → ده مایل (۱۶٬۰۰۰ متر)

To spell out both in and out values, use |spell=on:

  • {{convert|10|mi|m|spell=on}} → ده مایل (شانزده هزار متر)

To make first letter a capital, use |spell=In, |spell=On

  • {{convert|10|mi|m|spell=In}} → ده مایل (۱۶٬۰۰۰ متر)
  • {{convert|10|mi|m|spell=On}} → ده مایل (شانزده هزار متر)

Remember that the spelling of the units (ft, m) is independently set by |abbr=. To the extreme:

  • {{convert|10|mi|m|spell=on|abbr=off|sp=us}} → ده مایل (شانزده هزار متر)

Inserted before units: 4 planted acres ویرایش

  • {{convert|4|acre||adj=pre|planted}} → ۴ planted جریب فرنگی (۱٫۶ هکتار)

disp=preunit is similar, but has no separator after the specified text, and can have different text for the output value:

  • {{convert|4|acre||disp=preunit|planted }} → ۴ planted جریب فرنگی (۱٫۶ planted هکتار)
  • {{convert|4|acre||disp=preunit|planted |reforested-}} → ۴ planted جریب فرنگی (۱٫۶ reforested-هکتار)

After adjective unit: A ۱۰-فوت-long corridor ویرایش

{{convert|10|ft|m|adj=mid|-long}} → ۱۰-فوت-long (۳٫۰-متر)

Plurals: 1 inch, 2 inches ویرایش

The unit symbol is singular always. Depending on the preceding number only, a unit name can be shown plural.

  • {{convert|1|metre}} → ۱ متر (۳ فوت ۳ اینچ)
  • {{convert|2|metre}} → ۲ متر (۶ فوت ۷ اینچ)
  • {{convert|2|metre|abbr=on}} → ۲ متر (۶ فوت ۷ اینچ)
Exception

Entering the unit spelled |foot| forces singular output "foot", whatever the number is.

  • {{convert|100|foot|abbr=off}} → ۱۰۰ فوت (۳۰ متر)

Fractions: one-eighth of an imperial pint ویرایش

The convert template also supports spelling out fractions.

  • {{convert|1/4|oz|g|spell=in}} → one-quarter اونس (۷٫۱ گرم)

Any additional words needed for the fraction can also be added at the end of the template.

  • {{convert|1/8|imppt|mL|spell=in|adj=pre|of an}} → one-eighth of an پینت بریتانیایی (۷۱ میلیلیتر)

Numbers ویرایش

Using an SI prefix: gigameter (Gm), or micrometer (μm) ویرایش

پیشوندهای اس‌آیes
Text Symbol Factor
yotta Y 1024
zetta Z 1021
exa E 1018
peta P 1015
tera T 1012
giga G 109
mega M 106
kilo k 103
hecto h 102
deca da 101
(none) (none) &nbsp;1
deci d 10&minus;1
centi c 10&minus;2
milli m 10&minus;3
micro μ 10&minus;6
nano n 10&minus;9
pico p 10&minus;12
femto f 10−15
atto a 10&minus;18
zepto z 10&minus;21
yocto y 10−24

Units can have an پیشوندهای اس‌آی like G before the unit: Gm, and giga before the name: gigameter. These are plain multiplication factors.

To illustrate, these are trivial calculations (from meter to meter), showing the multiplication factor:

  • ۱۲ گیگامتر (۱٫۲×۱۰۱۰ متر)
  • ۱۲ میکرومتر (۱٫۲×۱۰−۵ متر)

The prefix can be added before the SI unit (here: unit m for meter):

  • {{convert|12|Gm|mi|abbr=on}} → ۱۲ گیگامتر (۷٬۵۰۰٬۰۰۰ مایل)
  • Mm: ۱۲ مگامتر (۷٬۵۰۰ مایل)
  • km: ۱۲ کیلومتر (۳۹٬۰۰۰ فوت)
  • mm: ۱۲ میلیمتر (۰٫۴۷ اینچ)
  • μm: ۱۲ میکرومتر (۰٫۰۱۲ میلیمتر)
  • um: ۱۲ میکرومتر (۰٫۰۱۲ میلیمتر) (letter "u" can be used for "μ" here)

The prefix can be used in the output unit:

  • {{convert|12000|mi|Mm|abbr=on}} → ۱۲٬۰۰۰ مایل (۱۹ مگامتر)
  • {{convert|12|in|μm|abbr=on}} → ۱۲ اینچ (۳۰۰٬۰۰۰ میکرومتر)

As an exception, the non-SI unit "inch" can have the "μ" prefix too)

  • {{convert|12|μm|μin|abbr=on}} → ۱۲ میکرومتر (۴۷۰ میکرواینچ)

Engineering notation: 7 × 106 m ویرایش

In the unit: e6m ویرایش

Engineering number notations like 7E6 (for 7 × 106) can be entered as a "prefix" to the unit:

  • {{convert|7|e6m}} → ۷ میلیون متر (۲۳٬۰۰۰٬۰۰۰ فوت)

The same is possible for the output unit:

  • {{convert|23,000,000|ft|e6m}} → ۲۳٬۰۰۰٬۰۰۰ فوت (۷٫۰ میلیون متر)

Any standard unit (not a combination, multiple, or built-in unit) can have such a prefix:

  • e3 (thousand),
  • e6 (million),
  • e9 (billion),
  • e12 (trillion),
  • e15 (quadrillion).

Scientific notation: 1.23×10−14 ویرایش

In scientific notation, a number is written like ۱٫۲۳×۱۰−۱۴. The plain number has exactly one digit before the decimal point.

With {{convert}}, the input can be in e-notation such as 12.3e4. This value is displayed as a power of ten, and the output is displayed in scientific notation, except that an output value satisfying 0.01 <= v < 1000 is shown as a normal number. In addition, if the output value is 1000 and sigfig=4 is used, the value is displayed as a normal number.

  • {{convert|12.3e-15|atm|atm|abbr=on}} → ۱۲٫۳×۱۰−۱۵ اتمسفر استاندارد (۱٫۲۳×۱۰−۱۴ اتمسفر استاندارد)
  • {{convert|0.00000005|atm|atm|abbr=on}} → ۰٫۰۰۰۰۰۰۰۵ اتمسفر استاندارد (۵٫۰×۱۰−۸ اتمسفر استاندارد)

Input with fractions: ۱ ۱۲ اینچ (۳۸٫۱ میلیمتر) ویرایش

The number to convert can be written in fractions. Both / (keyboard slash) and (fraction slash) are accepted:

  • {{convert|1/2|in|mm|1}}۱۲ اینچ (۱۲٫۷ میلیمتر)
  • {{convert|1⁄2|in|mm|1}}۱۲ اینچ (۱۲٫۷ میلیمتر)

With integers, use a + sign

  • {{convert|2+1⁄2|in|mm|1}}۲ ۱۲ اینچ (۶۳٫۵ میلیمتر)

When negative, use a hyphen - and repeat it:

  • {{convert|-2-1⁄2|in|mm|1}}−۲ ۱۲ اینچ (−۶۳٫۵ میلیمتر)
  • {{convert|2-1⁄2|in|mm|1}} → ۲–۱۲ اینچ (۵۰٫۸–۱۲٫۷ میلیمتر) Note: this is read as a range
  • {{convert|-2+1⁄2|in|mm|1}}[ابزار تبدیل: invalid number] Red XN Should be a number, not an expression (do not require a calculation)

Output with horizontal fraction bar in: 1/2 inch ویرایش

Using a double slash (//) returns a horizontal bar fraction:

  • {{convert|1//2|in|mm|1}}۱/۲ اینچ (۱۲٫۷ میلیمتر)
  • {{convert|2+1//2|in|mm|1}}۲ ۱/۲ اینچ (۶۳٫۵ میلیمتر)

Thousands separator: 1,000 mi or 1000 mi ویرایش

In input, a comma for thousands separator is accepted but not required; a gap (space) is not accepted. In output, by default, the thousand separator is the comma:

  • {{convert|1234567|m|ft}} → ۱٬۲۳۴٬۵۶۷ متر (۴٬۰۵۰٬۴۱۷ فوت)
  • {{convert|1,234,567|m|ft}} → ۱٬۲۳۴٬۵۶۷ متر (۴٬۰۵۰٬۴۱۷ فوت)
  • {{convert|1 234 567|m|ft}}[ابزار تبدیل: invalid number] Red XN

Set |comma=off to remove the separator from the output:

  • {{convert|1234567|m|ft|comma=off}} → ۱۲۳۴۵۶۷ متر (۴۰۵۰۴۱۷ فوت)

Use |comma=gaps to use digit grouping by gap (thin space) as a thousands separator:

  • {{convert|1234567|m|ft|comma=gaps}}۱۲۳۴۵۶۷ متر (۴۰۵۰۴۱۷ فوت)

Default behaviour, for comparison:

  • {{convert|1234567|m|ft}} → ۱٬۲۳۴٬۵۶۷ متر (۴٬۰۵۰٬۴۱۷ فوت)

Setting |comma=5 or |comma=gaps5 will only add the separator when the number of digits is 5 or more:

  • {{convert|1234|m|ft|comma=5}} → ۱۲۳۴ متر (۴۰۴۹ فوت)
  • {{convert|1234567|m|ft|comma=5}} → ۱٬۲۳۴٬۵۶۷ متر (۴٬۰۵۰٬۴۱۷ فوت)
  • {{convert|1234|m|ft|comma=gaps5}}۱۲۳۴ متر (۴۰۴۹ فوت)*
  • {{convert|1234567|m|ft|comma=gaps5}}۱۲۳۴۵۶۷ متر (۴۰۵۰۴۱۷ فوت)*

Default behaviour, for comparison:

  • {{convert|1234|m|ft}} → ۱٬۲۳۴ متر (۴٬۰۴۹ فوت)

Output manipulation ویرایش

Brackets and separators: 10 m [33 ft] ویرایش

Punctuation that distinguishes the two measurements is set by |disp=.
Options are: b (the default), sqbr, comma, or, br, x|…:

  • {{convert|10|m|ft|disp=sqbr}} → ۱۰ متر [۳۳ فوت]
  • {{convert|10|m|ft|disp=comma}} → ۱۰ متر، ۳۳ فوت
  • {{convert|10|m|ft|disp=or}} → ۱۰ متر یا ۳۳ فوت

Default behaviour, for comparison:

  • {{convert|10|m|ft}} → ۱۰ متر (۳۳ فوت)

Setting |disp=br will force a new line (<br/>)

  • {{convert|10|m|ft|disp=br}} → ۱۰ متر
    ۳۳ فوت

Also |disp=br() will force a new line, and keep the brackets:

  • {{convert|10|m|ft|disp=br()}} → ۱۰ متر
    (۳۳ فوت)

Setting |disp=x|… allows any text as separator:

  • {{convert|10|m|ft|disp=x|_MyText_}} → ۱۰ متر_MyText_۳۳ فوت—(To display spaces, use &nbsp;)

Flipping (reordering) the two measurements: ۱٬۶۰۹٫۳ متر (۱ مایل) ویرایش

Setting |order=flip will flip (swap) the two measurements:

  • {{convert|1|mi|m|order=flip}} → ۱٬۶۰۹٫۳ متر (۱ مایل)

Default behaviour, for comparison:

  • {{convert|1|mi|m}} → ۱ مایل (۱٬۶۰۹٫۳ متر)

When converting to multiple units, the effect is:

  • {{convert|10|km|mi nmi|order=flip}} → ۶٫۲۱۳۷ مایل؛ ۵٫۳۹۹۶ مایل دریایی (۱۰ کیلومتر)
  • {{convert|10|km|nmi mi|order=flip}} → ۵٫۳۹۹۶ مایل دریایی؛ ۶٫۲۱۳۷ مایل (۱۰ کیلومتر)

Displaying parts of the result: ۲ (۱٫۵) ویرایش

It is possible to display only parts of the conversion result:

Convert Output Description
{{convert|2|cuyd|m3}} ۲ یارد مکعب (۱٫۵ متر مکعب) Default behaviour, for comparison
{{convert|2|cuyd|m3|abbr=values}} ۲ (۱٫۵) Input and output numbers
{{convert|2|cuyd|m3|disp=unit}} یارد مکعب Input unit
{{convert|2|cuyd|m3|disp=unit|adj=on}} یارد-مکعب Input unit, adjective (hyphenated)
{{convert|2|cuyd|cuyd|0|disp=out|abbr=off}} ۲ یارد مکعب Input (workaround)
{{convert|2|cuyd|m3|abbr=~}} ۲ یارد مکعب [cu yd] (۱٫۵ متر مکعب) Input: both name and symbol
{{convert|2|cuyd|m3|disp=unit2}} متر مکعب Output unit (symbol)
{{convert|2|cuyd|m3|disp=unit2|abbr=off}} متر مکعب Output unit (name)
{{convert|2|cuyd|m3|disp=number}} ۱٫۵ Output value
{{convert|2|cuyd|m3|disp=out}} ۱٫۵ متر مکعب Output value and unit
{{convert|2|cuyd|m3|disp=out|abbr=off}} ۱٫۵ متر مکعب Output value and unit

Display both input name and symbol: 2 kilopascals [kPa] ویرایش

Setting |abbr=~ returns both name and symbol of the first (input) unit:

  • {{convert|2|kPa|psi|abbr=~}} → ۲ کیلوپاسکال [kPa] (۰٫۲۹ پوند بر اینچ مربع)
  • A {{convert|2|kPa|psi|abbr=~|adj=on}} pressureA ۲-کیلوپاسکال [kPa] (۰٫۲۹-پوند-بر-اینچ-مربع) pressure

Table options ویرایش

For the wikitable structure, there are three options: add a line-break, split the result over columns and make the table sortable.

Enforced line break ویرایش

|disp=br adds a line-break and omits brackets.

|disp=br() adds a line-break and does add brackets to the converted value. This may be useful in tables:

|disp=br |disp=br()
۱۰۰ کیلومتر
۶۲ مایل
۱۰۰ کیلومتر
(۶۲ مایل)

Table columns showing numbers only ویرایش

Using {convert} in a table cell, with |disp=table splits the result over two columns:

{{convert|10|m|ft|disp=table}}
style="text-align:right;"|۱۰

|style="text-align:right;"|۳۳

|disp=tablecen does the same, and also centers the text:

{{convert|20|m|ft|disp=tablecen}}
style="text-align:center;"|۲۰

|style="text-align:center;"|۶۶

The units are added as a column header:

  m ft
|disp=table ۱۰ ۳۳
|disp=tablecen ۲۰ ۶۶
|disp=<other> (default) ۳۰ متر (۹۸ فوت)

Sorting ویرایش

Use |sortable=on to include a hidden numerical sortkey in the output, suitable for use in a table with sortable columns. Technically, this places a hidden string before the actual displayed values:

{{convert|10|m|ft|sortable=on}} → <span style="display:none">7001100000000000000</span>10 metres (33&nbsp;ft)

Use both |disp=table and |sortable=on together to produce table columns (pipe symbols) for each value in sortable columns:

m ft
A ۱۵ ۳۴ ۵۲
B ۱۵٫۵ ۵۱
C ۱۶٫۰ ۵۲٫۵
D ۱۶ ۵۲

The generated sortkey is calculated in a consistent way based on both the value and its unit as passed to the convert template. In most cases convert uses the passed value converted to SI base units. It is therefore not necessarily the displayed value or other alternate units and is calculated regardless of output format options. Using different units or different order of units in individual rows should therefore not lead to incorrect sorting, although variations in rounding can give surprising results, since an unrounded number is used for the sortkey.

Units ویرایش

All units ویرایش

فهرست واحدهای اندازه گیریی که با الگوی{{تبدیل}} قابل محاسبه میباشند
سیستم یکای اندازه‌گیری کلید واژه
اختصار توضیحات ضریب تبدیل بر اساس کلوین ترکیب
سیستم‌ها یا دسته بندی یکان‌ها یکان‌ها بر اساس نام واژه‌هایی که هنگام کار می‌توانید استفاده کنید نشانه‌ها یا حروف اختصاری که برای {{تبدیل}} تعریف شده‌است توضیحات در مورد یکان‌هایی که در {الگو|تبدیل}ممکن است وابسته یا کلی باشند ضریب تبدیل بر اساس واحد‌های اس‌آی کلید واژه برای تبدیل‌های چندگانه


طول
(فهرست کامل)
دستگاه یکا کد یکا کوته‌نوشت توضیحات ضریب تبدیل به متر یکاهای خروجی ترکیب
اس‌آی مگامتر Mm Mm US spelling: megameter
۱٬۰۰۰٬۰۰۰
کیلومتر km کیلومتر US spelling: kilometer
۱٬۰۰۰
  • km mi
متر m متر US spelling: meter
۱
  • m ft
  • m ftin
سانتی‌متر cm سانتی‌متر US spelling: centimeter
۰٫۰۱
  • cm in
میلی‌متر mm mm US spelling: millimeter
۰٫۰۰۱
  • mm in
میکرون μm (um) µm US spelling: micrometer
۰٫۰۰۰۰۰۱
نانومتر nm nm US spelling: nanometer
۰٫۰۰۰۰۰۰۰۰۱

'متن مورب'

متریک غیر اس‌آی آنگستروم Å
(angstrom)
Å ۰٫۰۰۰۰۰۰۰۰۰۱
امپراطوری
و
مرسوم امریکا
مایل mi مایل ۱٬۶۰۹٫۳۴۴
  • mi km
فورلانگ furlong ۲۰۱٫۱۶۸
زنجیر (یکا) chain ۲۰٫۱۱۶۸
راد rd rd For other names of this unit see the full list. ۵٫۰۲۹۲
فاتوم fathom assumes 1 fathom ≡ 6 ft ۱٫۸۲۸۸
یارد yd yd assumes the international definition ۰٫۹۱۴۴
پا ft (foot) پا The foot code will produce foot as the plural form. ۰٫۳۰۴۸
  • ftin (feet and inches)
  • ft m (foot m)
اینچ in in ۰٫۰۲۵۴
  • in cm
  • in mm
دیگر موارد مایل دریایی nmi nmi the استاندارد بین‌المللی nautical mile
For other nautical miles see the full list.
۱٬۸۵۲
پارسک pc pc ۳٫۰۸۵۶۷۷۵۸۱۴۶۷۲×۱۰^۱۶
سال نوری ly ly ۹٫۴۶۰۷۳۰۴۷۲۵۸۰۸×۱۰^۱۵
یکای کیهانی AU AU ۱۴۹٬۵۹۷٬۸۷۰٬۷۰۰
مساحت
(فهرست کامل)
سیستم یکای اندازه‌گیری کلید واژه
اختصار توضیحات ضریب تبدیل بر اساس مترمربع ترکیب
SI کیلومتر مربع km2 کیلومترمربع US spelling: square kilometer
۱٬۰۰۰٬۰۰۰
  • km2 sqmi
متر مربع m2 m۲ US spelling: square meter
۱
  • m2 sqft
سانتی‌متر مربع cm2 cm۲ US spelling: square centimeter
۰٫۰۰۰۱
  • cm2 sqin
میلی‌متر مربع mm2 mm² US spelling: square millimeter
۰٫۰۰۰۰۰۱
  • mm2 sqin
non-SI metric هکتار ha هکتار ۱۰٬۰۰۰
Imperial
&
US customary
مایل‌مربع sqmi مایل‌مربع ۲٬۵۸۹٬۹۸۸٫۱۱۰۳۳۶
  • sqmi km2
جریب acre ۴٬۰۴۶٫۸۵۶۴۲۲
یارد مربع sqyd یارد مربع ۰٫۸۳۶۱۲۷۳۶
فوت مربع sqft
(sqfoot)
sq ft The sqfoot code will produce square foot as the plural form. ۰٫۰۹۲۹۰۳۰۴
  • sqft m2 (sqfoot m2)
اینچ مربع sqin sq in ۰٫۰۰۰۶۴۵۱۶
  • sqin cm2
Other square nautical mile sqnmi sq nmi ۳٬۴۲۹٬۹۰۴
dunam dunam For alternative spellings and definitions see the full list ۱٬۰۰۰
tsubo tsubo (۴۰۰/۱۲۱)
حجم
(فهرست کامل)
سیستم یکای اندازه‌گیری کلید واژه
اختصار توضیحات ضریب تبدیل بر اساس مترمکعب ترکیب
SI متر مکعب m3 متر مکعب US spelling: cubic meter
one kilolitre
۱
سانتی‌متر مکعب cm3 cm۳ US spelling: cubic centimeter
one millilitre
۰٫۰۰۰۰۰۱
cc cc
میلی‌متر مکعب mm3 mm³ US spelling: cubic millimeter
۰٫۰۰۰۰۰۰۰۰۱
non-SI metric kilolitre kl kL US spelling: kiloliter
one cubic metre
۱
kL kl
لیتر l l US spelling: liter
one cubic decimetre
Triple combinations are also possible. See the full list.
۰٫۰۰۱
  • l impgal
  • l USgal
  • l U.S.gal
  • l USdrygal
  • l U.S.drygal
L L
  • L impgal
  • L USgal
  • L U.S.gal
  • L USdrygal
  • L U.S.drygal
centilitre cl cL US spelling: centiliter
۰٫۰۰۰۰۱
cL cL
millilitre ml ml US spelling: milliliter
one cubic centimetre
۰٫۰۰۰۰۰۱
  • ml impoz
  • ml USoz
  • ml U.S.oz
mL mL
  • mL impoz
  • mL USoz
  • mL U.S.oz
Imperial
&
US customary
cubic yard cuyd cu yd ۰٫۷۶۴۵۵۴۸۵۷۹۸۴
فوت مکعب cuft (cufoot) cu ft The cufoot code will produce cubic foot as the plural form. ۰٫۰۲۸۳۱۶۸۴۶۵۹۲
cubic inch cuin cu in ۰٫۰۰۰۰۱۶۳۸۷۰۶۴
Imperial barrel impbbl imp bbl 36 imp gal ۰٫۱۶۳۶۵۹۲۴
bushel impbsh imp bsh 8 imp gal ۰٫۰۳۶۳۶۸۷۲
impbu imp bu
gallon impgal imp gal 4.54609 litres by definition, also
4 imp qt or 8 imp pt or 160 imp fl oz
Triple combinations are also possible. See the full list.
۰٫۰۰۴۵۴۶۰۹
  • impgal l
  • impgal L
  • impgal USgal
  • impgal U.S.gal
  • impgal USdrygal
  • impgal U.S.drygal
quart impqt imp qt 1/4 imp gal or 40 imp fl oz ۰٫۰۰۱۱۳۶۵۲۲۵
pint imppt imp pt 1/8 imp gal or 20 imp fl oz ۰٫۰۰۰۵۶۸۲۶۱۲۵
fluid ounce impoz(impfloz) imp fl oz 1/160 imp gal ۰٫۰۰۰۰۲۸۴۱۳۰۶۲۵
  • impoz USoz
  • impoz U.S.oz
  • impoz ml
  • impoz mL
US customary
liquid measure
barrel USbbl US bbl 31½ US gal
used for liquids except for oil and beer (see the full list)
۰٫۱۱۹۲۴۰۴۷۱۱۹۶
U.S.bbl U.S. bbl
[[بشکه نفت|بشکه نفت]] oilbbl بشکه نفت 42 US gal ۰٫۱۵۸۹۸۷۲۹۴۹۲۸
beer barrel USbeerbbl
(usbeerbbl)
US bbl ۰٫۱۱۷۳۴۷۷۶۵۳۰۴
U.S.beerbbl
(usbeerbbl)
U.S. bbl
گالون USgal US گالون 231 cubic inches by definition, also
4 US qt or 8 US pt or 128 US fl oz
Triple combinations are also possible. See the full list.
۰٫۰۰۳۷۸۵۴۱۱۷۸۴
  • USgal l
  • USgal L
  • USgal impgal
U.S.gal U.S. gal
  • USgal l
  • USgal L
  • USgal impgal
quart USqt US qt 1/4 US gal or 32 US fl oz ۰٫۰۰۰۹۴۶۳۵۲۹۴۶
U.S.qt U.S. qt
pint USpt US pt 1/8 US gal or 16 US fl oz ۰٫۰۰۰۴۷۳۱۷۶۴۷۳
U.S.pt U.S. pt
fluid ounce USoz
(USfloz)
US fl oz 1/128 US gal ۰٫۰۰۰۰۲۹۵۷۳۵۲۹۵۶۲۵
  • USoz ml
  • USoz mL
  • USoz impoz
U.S.oz
(U.S.floz)
U.S. fl oz
  • U.S.oz ml
  • U.S.oz mL
  • U.S.oz impoz
US customary
dry measure
barrel USdrybbl US bbl 105/32 US bsh ۰٫۱۱۵۶۲۸۱۹۸۹۸۵۰۸
U.S.drybbl U.S. bbl
bushel USbsh US bsh 2150.42 cubic inches by definition ۰٫۰۳۵۲۳۹۰۷۰۱۶۶۸۸
USbu U.S. bu
U.S.bsh U.S. bsh
U.S.bu U.S. bu
dry gallon USdrygal US dry gal 1/8 US bsh
Triple combinations are also possible. See the full list.
۰٫۰۰۴۴۰۴۸۸۳۷۷۰۸۶
  • USdrygal l
  • USdrygal L
  • USdrygal impgal
U.S.drygal U.S. dry gal
  • U.S.drygal l
  • U.S.drygal L
  • U.S.drygal impgal
dry quart USdryqt US dry qt 1/32 US bsh ۰٫۰۰۱۱۰۱۲۲۰۹۴۲۷۱۵
U.S.dryqt U.S. dry qt
dry pint USdrypt US dry pt 1/32 US bsh ۰٫۰۰۰۵۵۰۶۱۰۴۷۱۳۵۷۵
U.S.drypt U.S. dry pt
سرعت
(فهرست کامل)
سیستم یکای اندازه‌گیری کلید واژه
اختصار توضیحات ضریب تبدیل بر اساس متر بر ثانیه ترکیب
SI metre per second m/s m/s US spelling: meter per second
۱
  • m/s ft/s (m/s foot/s)
non-SI metric کیلومتر در ساعت km/h km/h US spelling: kilometer per hour
(۵/۱۸)
  • km/h mph
Imperial
&
US customary
mile per hour mph mph ۰٫۴۴۷۰۴
  • mph km/h
  • mph kn
foot per second ft/s (foot/s) ft/s The foot/s code will produce foot per second as the plural form. ۰٫۳۰۴۸
  • ft/s m/s
Maritime units گره kn (knot) kn (۴٫۶۳/۹)
  • kn mph


نیرو
(فهرست کامل)
سیستم یکای اندازه‌گیری کلید واژه
اختصار توضیحات ضریب تبدیل بر اساس متر ترکیب
SI گیگانیوتن GN GN Triple combinations are also possible. See the full list. ۱٬۰۰۰٬۰۰۰٬۰۰۰
  • GN LT-f
  • GN LTf
  • GN ST-f
  • GN STf
meganewton MN MN Triple combinations are also possible. See the full list. ۱٬۰۰۰٬۰۰۰
  • MN LT-f
  • MN LTf
  • MN ST-f
  • MN STf
kilonewton kN kN Triple combinations are also possible. See the full list. ۱٬۰۰۰
  • kN LT-f
  • kN LTf
  • kN ST-f
  • kN STf
newton N N ۱
  • N lb-f
  • N lbf
  • N oz-f
  • N ozf
millinewton mN mN ۰٫۰۰۱
  • mN oz-f
  • mN ozf
  • mN gr-f
  • mN grf
micronewton μN (uN) µN ۰٫۰۰۰۰۰۱
  • μN gr-f
  • μN grf
nanonewton nN nN ۰٫۰۰۰۰۰۰۰۰۱
  • nN gr-f
  • nN grf
cgs megadyne Mdyn Mdyn ۱۰
kilodyne kdyn kdyn ۰٫۰۱
dyne dyn
(dyne)
dyn ۰٫۰۰۰۰۱
millidyne mdyn mdyn ۰٫۰۰۰۰۰۰۰۱
Metric gravitational units tonne-force t-f tf ۹٬۸۰۶٫۶۵
tf tf
kilogram-force kg-f kgf ۹٫۸۰۶۶۵
kgf kgf
gram-force g-f gf ۰٫۰۰۹۸۰۶۶۵
gf gf
milligram-force mg-f mgf ۰٫۰۰۰۰۰۹۸۰۶۶۵
mgf mgf
Avoirdupois-based units poundal pdl pdl ۰٫۱۳۸۲۵۴۹۵۴۳۷۶
long ton-force LT-f LTf ۹٬۹۶۴٫۰۱۶۴۱۸۱۸۳۵۲
  • LT-f ST-f
LTf LTf
  • LTf STf
short ton-force ST-f STf ۸٬۸۹۶٫۴۴۳۲۳۰۵۲۱
  • ST-f LT-f
STf STf
  • STf LTf
pound-force lb-f lbf ۴٫۴۴۸۲۲۱۶۱۵۲۶۰۵
lbf lbf
ounce-force oz-f ozf ۰٫۲۷۸۰۱۳۸۲۰۳۰۹۵۳۷۸۰۰۰
ozf ozf
grain-force gr-f grf ۰٫۰۰۰۶۳۵۴۶۰۲۳۰۷۵۱۵
grf grf
انرژی
(فهرست کامل)
سیستم یکای اندازه‌گیری کلید واژه
اختصار توضیحات ضریب تبدیل بر اساس ژول ترکیب
SI gigajoule GJ GJ ۱٬۰۰۰٬۰۰۰٬۰۰۰
[[ژول|مگاژول]] MJ MJ ۱٬۰۰۰٬۰۰۰
[[ژول|کیلوژول]] kJ kJ ۱٬۰۰۰
hectojoule hJ hJ ۱۰۰
decajoule daJ daJ ۱۰
[[ژول|ژول]] J J ۱
decijoule dJ dJ ۰٫۱
centijoule cJ cJ ۰٫۰۱
megajoule mJ MJ ۱٬۰۰۰٬۰۰۰
microjoule μJ (uJ) µJ ۰٫۰۰۰۰۰۱
nanojoule nJ nJ ۰٫۰۰۰۰۰۰۰۰۱
cgs

{{convert/list of units/rowtop|Merg|{{{2

kiloerg kerg kerg ۰٫۰۰۰۱
erg erg erg ۰٫۰۰۰۰۰۰۱
کیلووات ساعت multiples terawatt-hour TWh TWh ۳٫۶×۱۰^۱۵
TW.h TW·h
gigawatt-hour GWh GWh ۳٫۶×۱۰^۱۲
GW.h GW·h
megawatt-hour MWh MWh ۳٬۶۰۰٬۰۰۰٬۰۰۰
MW.h MW·h
[[کیلووات ساعت|کیلووات ساعت]] kWh kW·h ۳٬۶۰۰٬۰۰۰
kW.h kW·h
[[وات‌ساعت|وات‌ساعت]] Wh Wh ۳٬۶۰۰
W.h W·h
الکترون‌ولت multiples
gigaelectronvolt GeV GeV ۰٫۰۰۰۰۰۰۰۰۰۱۶۰۲۱۷۶۴۸۷
megaelectronvolt MeV MeV ۱٫۶۰۲۱۷۶۴۸۷×۱۰^−۱۳
kiloelectronvolt keV keV ۱٫۶۰۲۱۷۶۴۸۷×۱۰^−۱۶
electronvolt eV eV ۱٫۶۰۲۱۷۶۴۸۷×۱۰^−۱۹
millielectronvolt meV meV ۱٫۶۰۲۱۷۶۴۸۷×۱۰^−۲۲
کالری multiples [[کالری|کالری]] Cal کالری The thermochemical calorie is the default definition. For other definitions see the full list. ۴٬۱۸۴
megacalorie Mcal Mcal ۴٬۱۸۴٬۰۰۰
کیلوکالری kcal kcal ۴٬۱۸۴
Calorie cal Cal ۴٬۱۸۴
millicalorie mcal mcal ۰٫۰۰۴۱۸۴
پوند-نیرو-foot/
اینچ-ساعت (زمان)-دقیقه-ثانیه
foot-poundal ftpdl ft·pdl ۰٫۰۴۲۱۴۰۱۱۰۰۹۳۸۰۴۸
foot-pound (energy) ftlbf ft·lbf ۱٫۳۵۵۸۱۷۹۴۸۳۳۱۴۰۰۳
ftlb-f ft·lbf
inch-pound force inlbf in·lbf ۰٫۱۱۲۹۸۴۸۲۹۰۲۷۶۱۶۷
inlb-f in·lbf
inch-ounce force inozf in·ozf ۰٫۰۰۷۰۶۱۵۵۱۸۱۴۲۲۶۰۴۳۵۰
inoz-f in·ozf
horsepower-hour hph hp·h 2,684,519.537696172792
یکای بریتانیایی حرارت Btu Btu Btu The International Steam Table British thermal unit is the default definition. For other definitions see the full list. ۱٬۰۵۵٫۰۵۵۸۵۲۶۲
BTU BTU
TNT-based units gigatonne of TNT GtTNT ۴٫۱۸۴×۱۰^۱۸
gigaton of TNT GtonTNT
megatonne of TNT MtTNT ۴٫۱۸۴×۱۰^۱۵
megaton of TNT MtonTNT Mt
kilotonne of TNT ktTNT ۴٫۱۸۴×۱۰^۱۲
kiloton of TNT ktonTNT kt
tonne of TNT tTNT ۴٬۱۸۴٬۰۰۰٬۰۰۰
ton of TNT tonTNT
Other
Hartree Eh Eh ۴٫۳۵۹۷۴۴۱۷×۱۰^−۱۸
rydberg Ry Ry ۲٫۱۷۹۸۷۴۱×۱۰^−۱۸
tonne of oil equivalent toe toe ۴۱٬۸۶۸٬۰۰۰٬۰۰۰
barrel of oil equivalent BOE BOE ۶٬۱۱۷٬۸۶۳٬۲۰۰
cubic foot of natural gas cuftnaturalgas
(cufootnaturalgas)
The cufootnaturalgas code will produce cubic foot of natural gas as the plural form. ۱٬۰۵۵٬۰۵۵٫۸۵۲۶۲
litre-atmosphere latm l·atm ۱۰۱٫۳۲۵
Latm L·atm
gallon-atmosphere impgalatm imp gal·atm ۴۶۰٫۶۳۲۵۶۹۲۵
gallon-atmosphere USgalatm
(usgalatm)
US gal·atm ۳۸۳٫۵۵۶۸۴۹۰۱۳۸
U.S.galatm
(usgalatm)
U.S. gal·atm
دما
(فهرست کامل)
سیستم یکای اندازه‌گیری کلید واژه
اختصار توضیحات ضریب تبدیل بر اساس کلوین ترکیب
SI کلوین K K Triple combinations are also possible. See the full list. [K]
  • K °C (K)C
  • K °R (K)R
  • K °F (K)F
[[سانتیگراد|degree سانتیگراد]] °C (C) سانتیگراد ([°C]+273.15)
  • °C K (C)K
  • °C °R (C)R
  • °C °F (C)F
Imperial
&
US customary
degree Rankine °R (R) °R ([°R]/1.8)
  • °R K (R) K
  • °R °C (R) C
  • °R °F (R) F
[[فارنهایت|degree فارنهایت]] °F (F) فارنهایت (([°F]+459.67)/1.8)
  • °F K (F) K
  • °F °C (F) C
  • °F °R (F) R
Celsius change C-change مثال:   {{تبدیل|5|C-change}}
Fahrenheit change F-change مثال:  {{تبدیل|10|F-change}}


جرم
(فهرست کامل)
سیستم یکای اندازه‌گیری کلید واژه
اختصار توضیحات ضریب تبدیل بر اساس متر ترکیب
SI کیلوگرم kg کیلوگرم Triple combinations are also possible. See the full list. ۱
  • kg lb
  • kg st
گرم g g ۰٫۰۰۱
  • g oz
milligram mg mg ۰٫۰۰۰۰۰۱
  • mg gr
microgram μg (ug) µg ۰٫۰۰۰۰۰۰۰۰۱
non-SI metric تن t t Triple combinations are also possible. See the full list. ۱٬۰۰۰
  • t LT
  • t ST
تن متریک MT t
  • MT LT
  • MT ST
اویردوپیز تن بزرگ LT 2,240 lb
used mostly in the British Commonwealth
Triple combinations are also possible. See the full list.
۱٬۰۱۶٫۰۴۶۹۰۸۸
  • LT t
  • LT MT
  • LT ST
long ton
short ton ST 2,000 lb
used mostly in the US
Triple combinations are also possible. See the full list.
۹۰۷٫۱۸۴۷۴
  • ST t
  • ST MT
  • ST LT
short ton
short ton st 14 lb
used mostly in the British Commonwealth except Canada
Triple combinations are also possible. See the full list.
۹۰۷٫۱۸۴۷۴
  • st kg
  • st lb
پوند lb پوند Triple combinations are also possible. See the full list. ۰٫۴۵۳۵۹۲۳۷
  • lb kg
  • lb st
ounce oz oz ۰٫۰۲۸۳۴۹۵۲۳
  • oz g
drachm drachm ۰٫۰۰۱۷۷۱۸۴۵۱۹۵
drachm dram
grain gr gr equivalent to the troy grain ۰٫۰۰۰۰۶۴۷۹۸۹۱
Troy troy ounce ozt ozt ۰٫۰۳۱۱۰۳۴۷۶۸
other carat carat ۰٫۰۰۰۲
گشتاور
(فهرست کامل)
سیستم یکای اندازه‌گیری کلید واژه
اختصار توضیحات ضریب تبدیل بر اساس N·m ترکیب
صنعتی
SI نیوتون-متر Nm N·m سه ترکیب ممکن است. full list را بنگرید. 1
  • Nm kg-m
  • Nm ft-lb
غیر SI کیلوگرم-نیرو kg-m kg-m 9.80665
  • kg-m Nm
  • kg-m ft-lb
متعارف پادشاهی
و
ایالات متحده
پوند-فوت ft-lb ft-lb 1.3558
  • ft-lb Nm
  • ft-lb kg-m
علمی
SI نیوتون-متر N-m N·m سه ترکیب ممکن است. full list را بنگرید. 1
  • N-m kgf-m
  • N-m lbf-ft
غیر SI کیلوگرم-نیرو kgf-m kgf·m 9.80665
  • kgf-m N-m
  • kgf-m lbf-ft
پادشاهی
و
متعارف ایالات متحده
پوند-فوت lbf-ft lbf·ft 1.3558
  • lbf-ft N-m
  • lbf-ft kgf-m
فشار
یکان کد واژه اختصاری ضریب تبدیل بر اساس pa
gigapascal GPa GPa ۱٬۰۰۰٬۰۰۰٬۰۰۰
megapascal MPa MPa ۱٬۰۰۰٬۰۰۰
کیلوپاسکال kPa kPa ۱٬۰۰۰
hectopascal hPa hPa ۱۰۰
pascal Pa Pa ۱
millipascal ‎mPa‎ mPa ۰٫۰۰۱
millibar mbar mbar ۱۰۰
mb mb
decibar ‎dbar dbar ۱۰٬۰۰۰
بار bar bar ۱۰۰٬۰۰۰
kilobarye kBa kBa ۱۰۰
barye ‎Ba Ba ۰٫۱
standard atmosphere atm atm ۱۰۱٬۳۲۵
torr Torr Torr (۲۰٬۲۶۵/۱۵۲)
millimetre of mercury mmHg mmHg ۱۳۳٫۳۲۲۳۸۷۴۱۵
inch of mercury inHg inHg ۳٬۳۸۶٫۳۸۸۶۴۰۳۴۱
پاوند بر اینچ مربع psi psi (۴۴۴،۸۲۲،۱۶۱.۵۲۶۰۵
/ ۶۴،۵۱۶)
بازده سوخت
یکان
واژه اختصاری
توضیحات ترکیب
کیلومتر درهر لیتر km/l (km/L) استفاده از km/Lبرای "km/L"
  • km/l mpgimp
  • km/l mpgus
لیتر در هر ۱۰۰ کیلومتر l/۱۰۰ km (L/۱۰۰ km) استفاده از L/۱۰۰ km برای "L/۱۰۰ km"
  • l/۱۰۰ km mpgimp
  • l/۱۰۰ km mpgus
لیتر بر کیلومتر l/km (L/km) استفاده از L/km برای "L/km"
  • l/km impgal/mi
  • l/km usgal/mi
مایل برهر گالون پادشاهی mpgimp
  • mpgimp mpgus
مایل بر هر گالون ایالات متحده mpgus (mpgUS، mpgU.S.) استفاده از mpgUS برای "US"

استفاده از mpgU.S. برای "U.S."
mpgus خواهد داد "U.S." اگر املا
US را می‌نشاند و در غیر این صورت "US"

  • mpgus mpgimp
گالون پادشاهی در هر مایل impgal/mi
  • impgal/mi
گالون ایالات متحده در هر مایل usgal/mi (USgal/mi، U.S.gal/mi) مانند بالا با us دربرابر US دربرابر U.S.
  • usgal/mi
The mpgUS، mpgU.S.، USgal/mi دربرابر U.S.gal/mi، km/L، L/۱۰۰ km و L/km همچنین به صورت مرکب کار می‌کنند. (روی هم رفته ۳۶ ترکیب می‌سازند).
توان
وات، کیلووات، میلی‌وات و غیره پشتیبانی می‌شوند، همچنین اسب بخار (در سیستم انگلیسی و متریک). از کدهای اختصاری استاندارد به عنوان ورودی استفاده کنید (مانند hp کد معرف اسب بخار (به انگلیسی: horsepower) در جدول زیر)
تراکم جمعیت
یکان
(واژه اختصاری)
توضیحات ترکیب
سکنه در هر کیلومتر مربع PD/sqkm PD مخفف تراکم جمعیت (به انگلیسی: population density)می‌باشد.
  • PD/sqkm PD/sqmi
در هر کیلومتر مربع /sqkm زمانی که واژهٔ سکنه نامناسب باشد.
  • /sqkm /sqmi
سکنه در هر هکتار PD/ha
  • PD/ha PD/acre
در هر هکتار /ha
  • /ha /acre
سکنه در هر مایل مربع PD/sqmi PD مخفف تراکم جمعیت (به انگلیسی: population density)می‌باشد.
  • PD/sqmi PD/sqkm
در هر مایل مربع /sqmi زمانی که واژهٔ سکنه نامناسب باشد.
  • /sqmi /sqkm
سکنه در هر جریب فرنگی PD/acre
  • PD/acre PD/ha
هر جریب فرنگی /acre
  • /acre /ha

'per' units: kg/hl ویرایش

When using a slash (/), a unit like kg/hl is recognized as kilograms per hectolitre and will be converted with other mass/volume units.

  • {{convert|1000|kg/hl}} → ۱٬۰۰۰ کیلوگرم بر هکتالیتر (۱۰۰ پوند بر گالون بریتانیایی)

Units of difference: 10 °C higher; how much in °F ویرایش

When a number is the measurement for a difference, one conversion is done. This may occur in temperatures (°C, °F, K). Compare this to a range, when two conversions are done.

The only available units of difference are: |C-change=, |F-change= and |K-change=.

  • {{convert|10|C}} ← ۱۰ درجه سلسیوس (۵۰ درجه فارنهایت), regular temperature
  • {{convert|10|C-change}} ← ۱۰ تغییر درجه سلسیوس (۱۸ تغییر درجه فارنهایت), difference (e.g., "The temperature changed from 30 into 40 °C")
  • {{convert|10-15|C}} ← ۱۰–۱۵ درجه سلسیوس (۵۰–۵۹ درجه فارنهایت), range (e.g., "The temperature is between 10 and 15 °C")

Consistently, into multiple units:

  • A rise of {{convert|10|C-change|F-change K-change}} → A rise of ۱۰ تغییر درجه سلسیوس (۱۸ تغییر درجه فارنهایت؛ ۱۰ تغییر کلوین)

Multiple units: 1 ft 5 in ویرایش

In input ویرایش

Base document § Input multiples lists options for multiple unit input (like ft,in). It can catch predefined sets only (units that can be subdivided; e.g., yd into ft):

  • {{convert|1|yd|2|ft|3|in}} → ۱ یارد ۲ فوت ۳ اینچ (۱٫۶۰ متر)
  • {{convert|2|ft|3|in|cm}} → ۲ فوت ۳ اینچ (۶۹ سانتیمتر)
  • {{convert|1|lb|5|oz|g}} → ۱ پوند ۵ اونس (۶۰۰ گرم)

In output ویرایش

Available multiple-unit output options predefined, like ftin and ydftin. The full list is at § Output multiples.

  • {{convert|2|m|ftin}} → ۲ متر (۶ فوت ۷ اینچ)
  • {{convert|2|m|ft in}} → ۲ متر (۶٫۶ فوت؛ ۷۹ اینچ), using a space, returns the decimal point

Default behaviour, for comparison:

  • {{convert|2|m}} → ۲ متر (۶ فوت ۷ اینچ)

See also:

  • {{hands}} a length used to measure horses
  • {{Long ton}} a weight in ton, cwt, qr and lb

Currency per unit: $/mi → $/km ویرایش

Using currency symbols in a $ per unit value, you can convert the per-unit:

  • {{convert|10|$/mi|$/km}} → $۱۰ بر مایل ($۶٫۲ بر کیلومتر)

You can set the currency in both values using |$=€:

  • {{convert|10|$/mi|$/km|$=€}} → €۱۰ بر مایل (€۶٫۲ بر کیلومتر)

It is not possible to convert the currency. So, this result (mixed currencies) is not possible: $15 per mile (€8.6/km) Red XN

Parameter list ویرایش

Parameter options for {{convert}}
Parameter Value Description Note
&#124;abbr=in in Use symbol for first (left-hand side) unit Unit display
&#124;abbr=off off Use name for all units Unit display
&#124;abbr=none none
&#124;abbr=on on Use symbol for all units Unit display
&#124;abbr=out out Use symbol for right-hand side unit (default) Unit display
&#124;abbr=unit unit Use symbol for all units when using scientific notation Unit display
&#124;abbr=values values Omit both the input and output units: show only the numbers Unit display
&#124;abbr=~ ~ Shows both unit name and symbol Unit display
&#124;adj=mid&#124;… mid User-specified text after the input unit; sets adj=on (adjective). Expects 1 unnamed parameter. Word adding, adjective
&#124;adj=on on Unit name is adjective (singular and hyphenated) Grammar, adjective
&#124;adj=pre&#124;… pre User-specified text before input unit. Expects 1 unnamed parameter. Word adding
&#124;adj=ri0 ri0 Round input with precision 0 Input precision
&#124;adj=ri1 ri1 Round input with precision 1 Input precision
&#124;adj=ri2 ri2 Round input with precision 2 Input precision
&#124;adj=ri3 ri3 Round input with precision 3 Input precision
&#124;comma=5 5 Only use comma for thousands separator if 5 or more digits Number format
&#124;comma=gaps gaps Use gaps (space), not comma, for thousands separator Number format
&#124;comma=off off No thousands separator Number format
&#124;disp=b b Join input and output using "&nbsp;(...)" (default) Join values
&#124;disp=sqbr sqbr Join input and output using "&nbsp;[...]" Join values
&#124;disp=br br Join input and output using "&lt;br/>" Join values
&#124;disp=comma comma Join input and output using ",&nbsp;" Join values
&#124;disp=or or Join input and output using "&nbsp;or&nbsp;" Join values
&#124;disp=number number Display output number only Parts only
&#124;disp=output number only output number only
&#124;disp=out out Display only output number and name/symbol Parts only
&#124;disp=output only output only
&#124;disp=preunit&#124;…[&#124;…] preunit Text to be inserted after value and before units, for both input and output, with optionally different text for output. Expects 1 or 2 unnamed parameters. Word adding
&#124;disp=table table Output is suitable for a table cell with align="right" Table columns
&#124;disp=tablecen tablecen Output is suitable for a table cell with align="center" Table columns
&#124;disp=unit unit Display input name/symbol only (not input number, not output) Parts only
&#124;disp=unit2 unit2 Display output name/symbol only (not input; not output number) Parts only
&#124;disp=x&#124;… x Join input and output using user-specified text Word adding
&#124;frac=N N Show imperial number in fractions, denominator=N Number format, fraction
&#124;input=P2048 P2048 (e.g.) Reads and converts Wikidata property Inside template
&#124;lk=in in Link left-hand side unit name or symbol Unit link
&#124;lk=on on Link all unit names or symbols (but not twice for the same unit) Unit link
&#124;lk=out out Link right-hand side unit name or symbol Unit link
&#124;order=flip flip Inverts order of input, output measurements (conversion first) Order
&#124;qid=Q1056131 Q1056131 (e.g.) Reads Wikidata property from Wikidata item Inside template; testing
&#124;round=5 5 Rounds calculation to the nearest multiple of 5 Output precision
&#124;round=25 25 Rounds calculation to the nearest multiple of 25 Output precision
&#124;round=each each In a range, each number is rounded by the default rounding Output precision
&#124;sigfig=N N Round output number to N significant figures (N is a positive integer) Output precision
&#124;sortable=on on Adds invisible sort key Table sort
&#124;sp=us us Use U.S. spelling ("meter" instead of default "metre") Spelling U.S.&nbsp;names
&#124;spell=in in Spell input number in words Spelling numbers
&#124;spell=In In Spell input number in words with first letter uppercase Spelling numbers
&#124;spell=on on Spell input and output numbers in words Spelling numbers
&#124;spell=On On Spell input and output numbers in words with first letter uppercase Spelling numbers
&#124;$=&euro; &euro; Replace $-sign with a currency sign, for example in $/acre (no currency conversion happens) Cost per unit
&#124;debug=yes yes Debugging only. In a sortable table: show the normally hidden sort key Table sort
&#124;disp=flip flip Deprecated. Use &#x7c;order=flip Order
&#124;sing= Deprecated. Use &#x7c;adj= Plurals

Deprecated options ویرایش

This list:&nbsp;

Deprecated options should not be used. They may produce incorrect or undesired results and there is no guarantee that they will be supported in the future.

  • disp=flip is deprecated. Use order=flip instead
  • sing= is deprecated in any situation. Use adj= instead
  • Range separator |xx| is deprecated (not MOS compliant). Use |x| instead
  • Range separator |*| is deprecated (not MOS compliant). Use |x| instead

TemplateData ویرایش

این، توضیحاتِ الگوداده است که توسط TemplateWizard، ویرایشگر دیداری و دیگر ابزارها استفاده می‌شود. گزارش خطای ماهیانه برای این الگو را ببینید.

الگوداده Convert

Converts measurements to other units.

پارامترهای الگو[ویرایش داده‌های الگو]

پارامترتوضیحاتنوعوضعیت
value1

the value to convert

شمارهاختیاری
from unit2

خطاختیاری
to units3

the unit to convert into

خطاختیاری
precision or suffix4

significant digits after decimal dot or, if negative, exponent of ten

شمارهاختیاری
link unitslk

“on” all, “in” input, “out” output or “off” no units

پیش‌فرض
off
خطاختیاری
abbreviationabbr

display for the units: “on” unit symbols, “off” all unit names in full words, “in” input unit symbol, “out” abbreviated output units, “unit” both input and output units abbreviated when using scientific notation, “values” no units at all

پیش‌فرض
out
خطاختیاری
spellingsp

“us” display U.S. spelling of unit names

خطاختیاری
adjectiveadj

adjective form (singular unit name appended by hyphen) “on” or “mid” to put conversion at end

خطاختیاری
conversiondisp

display conversion result: “or” after ‘or’, “x” with custom prefix and suffix, “b” in parentheses, “table”/“tablecen”, “output only” alone, “output number only” alone and without unit, “unit” not at all but input unit; if the value is a number it is used as precision

پیش‌فرض
b
خطاختیاری
orderingorder

“flip” returns converted value first, input value second.

خطاختیاری
significant figuressigfig

number that sets the number of significant figures

شمارهاختیاری
rounding outputround

“5” rounds the output number to nearest multiple of 5, “25” to nearest multiple of 25, “each” rounds each number in a range

خطاختیاری
thousands separatorcomma

Sets or suppresses thousand separator in the numbers. “off” = no separator; “gaps”: use space not comma; “5” and “gaps5”: only add separator when number > 5 positions (10,000 or more)

پیش‌فرض
on
خطاختیاری
sort keysortable

“on” generates a hidden sort key

خطاختیاری

See also ویرایش