ढाँचा:Transwiki guide

Template {{convert}} calculates from one measurement unit to another one, and then presents the results formatted. The complete list of unit symbols recognized by the template is at Module:Convert/documentation/conversion data.

For example:

{{convert|2|km|mi}} → २ किलोमिटर (१.२ माइल) (km entered, so converted into mile)
{{convert|7|mi|km}} → ७ माइल (११ किमी) (mi entered, so converted into km)

Numbers can be rounded, units can be abbreviated into symbols:

{{convert|2|km|mi|2|abbr=on}} → २ किमी (१.२४ माइल)
{{convert|7|mi|km|2|abbr=on}} → ७ माइल (११.२७ किमी)

Value ranges can be entered using |to|... or |-|...:

{{convert|2|to|5|km|mi}} → २ देखि ५ किलोमिटर (१.२ देखि ३.१ माइल)
{{convert|2|-|5|km|mi}} → २–५ किलोमिटर (१.२–३.१ माइल)

Combined effect example:

{{convert|2|-|5|km|mi|2|abbr=on}} → २–५ किमी (१.२४–३.११ माइल)
{{convert|2|and|5|km|mi|sigfig=3|abbr=off}} → २ र ५ किलोमिटर (१.२४ र ३.११ माइल)

Enter units to convert from into:

  • {{convert|1|lb|kg}} → १ पाउन्ड (०.४५ किग्रा)
SI units generally accept prefixes, like "m" for milli (10−3), and "M" for mega (106)
For "per" units, use "/" (slash): kg/ha
For three-unit units, etc., see श्रेणी:Convert-like templates

Unit name or symbol (abbreviation): 1 pound or 1 lb?

सम्पादन गर्नुहोस्

By default, the first quantity shows the unit name, the second shows the symbol (or abbreviation):

  • {{convert|1|lb|kg}} → १ पाउन्ड (०.४५ किग्रा)

Using |abbr=in is the reverse behaviour to the default:

  • {{convert|1|lb|kg|abbr=in}} → १ पाउन्ड (०.४५ किलोग्राम)

To abbreviate both or neither:

  • {{convert|1|lb|kg|abbr=on}} → १ पाउन्ड (०.४५ किग्रा)
  • {{convert|1|lb|kg|abbr=off}} → १ पाउन्ड (०.४५ किलोग्राम)

Convenience: {{cvt}} has |abbr=on by default

सम्पादन गर्नुहोस्

Template {{cvt}} is the same as {{convert}}, except that it has |abbr=on as the default behaviour. In {{cvt}}, all other options are available. So:

{{cvt|1|lb|kg}} → १ पाउन्ड (०.४५ किग्रा)

is equivalent to:

{{convert|1|lb|kg|abbr=on}} → १ पाउन्ड (०.४५ किग्रा)

Use |adj=on to produce the adjectival (hyphenated) form:

  • A {{convert|10|mi|km|adj=on}} distance → A १० माइल (१६ किमी) distance.

Default behaviour, for comparison:

  • {{convert|10|mi|km}} to go → १० माइल (१६ किमी) to go.

|adj=on does not produce hyphens with unit symbols, as per :

  • A {{convert|9|in|cm|adj=on|abbr=on}} nail → A ९ इन्च (२३ सेमी) nail.

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.

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 digits, 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}} १२३ फिट (३७ मी) same output as with 0 (below)
{{convert|123|ft|m|0}} १२३ फिट (३७ मी)
{{convert|123|ft|m|1}} १२३ फिट (३७.५ मी)
{{convert|123|ft|m|2}} १२३ फिट (३७.४९ मी) The more-exact value is 37.4904 m or so, which gets converted to 37 m if this parameter is not specified at all.
{{convert|500|ft|m|-1}} ५०० फिट (१५० मी)
{{convert|500|ft|m}} ५०० फिट (१५० मी) same output as with −1 (above), because the conversion factor is between 0.2 and 2 (hence, it should produce same double-zero precision (−2) as in the input value), but the conversion must produce two significant digits at a minimum (hence, a higher single-zero precision (−1) is used)
{{convert|500|ft|m|0}} ५०० फिट (१५२ मी)
{{convert|500|ft|m|1}} ५०० फिट (१५२.४ मी)
{{convert|500|ft|m|2}} ५०० फिट (१५२.४० मी) exact value is 152.4 m
{{convert|500|ft|cm|-3}} ५०० फिट (१५,००० सेमी)
{{convert|500|ft|cm}} ५०० फिट (१५,००० सेमी) same output as with −3 (above), because the conversion factor is between 20 and 200 (hence, it should decrease input value's double-zero precision (−2) by 2), but the conversion must produce two significant digits at a minimum (hence, a higher triple-zero precision (−3) is used)
{{convert|500|ft|cm|0}} ५०० फिट (१५,२४० सेमी)

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 ​110 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= to a value less than 1 is meaningless:

  • {{convert|1200|ft|m|sigfig=0}} → १,२०० फिट (३७० मी) Red XN

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 uses decimal notation:

  • {{convert|5.56|cm|in}} → ५.५६ सेन्टिमिटर (२.१९ इन्च)

Rounding temperatures: °C, °F and K

सम्पादन गर्नुहोस्

In temperatures, the conversion will be rounded either to the 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|100|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 digits 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.

There is limited support for rounding the displayed input number. The rounding takes place after conversion, so the output is based on the full-precision input. This is useful when the input is produced by {{#expr:}} or otherwise available to a higher precision than is usefully displayed, and it's desirable to avoid double-rounding.

To round the input to a specified number of digits after the decimal point, use one of the parameters:

  • |adj=ri0
  • |adj=ri1
  • |adj=ri2
  • |adj=ri3

Note that there is no |adj=ri-1Red XN or similar for rounding above the decimal place. Neither is there support for significant figures, multiples of 5, or any other output-rounding feature.

The default precision is computed based on the input, so an explicit output precision must usually be supplied:

  • {{convert|4.14159|mi|km|adj=ri0}} → ४ माइल (६.६६५२४ किमी) Red XN (precisions are mismatched)
  • {{convert|4.14159|mi|km|0|adj=ri0}} → ४ माइल (७ किमी) Green tickY

In this case, if the input were rounded before conversion, a different result would be obtained:

  • {{convert|{{#expr:4.14159 round 0}}|mi|km|0}} → ४ माइल (६ किमी) Red XN (double rounding)

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:

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

Range indicators are entered as the second parameter (between the values). Range separators can be:
ढाँचा:Convert/doc/range separator list

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}} → ६ मी × १२ मी (२० फिट × ३९ फिट)

Lists of values: 20, 40, or 60 miles

सम्पादन गर्नुहोस्
{{convert|20|,|40|, or|60|mi}} → २०, ४०, वा ६० माइल (३२, ६४, वा ९७ किमी)

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}} → १ फिट ३ इन्च (३८० मिमी)

However, converting metric units into feet and inches with |order=flip can produce the desired output:

  • {{convert|380|x|1040|mm|ftin|order=flip}} → १ फिट ३ इन्च × ३ फिट ५ इन्च (३८० मिमी × १,०४० मिमी)

Spelling of unit name: international metre or US meter?

सम्पादन गर्नुहोस्

Default spelling of units is in the en (generic) locale. To show en-US spelling, use |sp=us:

{{convert|1|m|ft}} → १ मिटर (३.३ फिट)—default
{{convert|1|m|ft|sp=us}} → १ मिटर (३.३ फिट)

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}} → दस माइल (सोह्र thousand मी)

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

  • {{convert|10|mi|m|spell=In}} → दस माइल (१६,००० मी)
  • {{convert|10|mi|m|spell=On}} → दस माइल (सोह्र thousand मी)

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}} → दस माइल (सोह्र thousand मिटर)

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

सम्पादन गर्नुहोस्

Note that two units (in this case, ft and m) are required. Use with just one unit will generate an error message.

{{convert|10|ft|m|adj=mid|-long}} → १० फिट-long (३.० मी)

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|3+1/2|oz|g|spell=in}} → तीन and a half औंस (९९ ग्रा)

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 imperial pint (७१ मिलीलि)
See Help:Convert § Wrapping and line breaking

Spelling out "thousands", "millions", etc.

सम्पादन गर्नुहोस्

Most unit codes accept a prefix of e3 (thousand) or e6 (million) or e9 (billion).

  • {{convert|100|e6mi|e6km}} → १०० मिलियन माइल (१६०×१०^ किमी)
  • {{convert|120|e6acre}} → १२० मिलियन एकड (४,९०,००० किमी)
  • {{convert|120|e6acre|e3km2}} → १२० मिलियन एकड (४९०×१०^ किमी)

To display both input and output in scientific notation, use |abbr=on

  • {{convert|100|e6mi|e6km|abbr=on}} → १००×१०^ माइल (१६०×१०^ किमी)

To spell out "thousands", "millions", etc., |abbr=unit abbreviates the unit; |abbr=off displays both full unit names.

  • {{convert|100|e6mi|e6km|abbr=unit}} → १०० मिलियन माइल (१६०×१०^ किमी)
  • {{convert|100|e6mi|e6km|abbr=off}} → १०० मिलियन माइल (१६० मिलियन किलोमिटर)

Using an SI prefix: gigametre (Gm), or micrometre (μm)

सम्पादन गर्नुहोस्

ढाँचा:Sidebar metric prefixes (small) Units can have an SI prefix like G before the unit: Gm, and giga before the name: gigametre. These are plain multiplication factors.

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

  • १२ गिगामी (१.२×१०१० मी)
  • १२ माइक्रोमी (१.२×१०−५ मी)

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

  • {{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}} → १२ माइक्रोमी (४७० µin)

Engineering notation can be entered as a "prefix" to the unit:

  • {{convert|70|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 १.२३×10−१४. 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}} → १२.३e-१५ atm (१.२३×१०−१४ atm)
  • {{convert|0.00000005|atm|atm|abbr=on}} → ०.०००००००५ atm (५.०×१०−८ atm)

Input with fractions:   इन्च (३८.१ मिमी)

सम्पादन गर्नुहोस्

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

With positive mixed numbers (a positive integer and a fraction), use a + sign

With negative mixed numbers, use a hyphen - and repeat it:

Note that the following cases are not interpreted as mixed numbers:

Horizontal fraction bar: 1/2 inch

सम्पादन गर्नुहोस्

Using a double slash (//) provides a horizontal fraction bar for the original (input) unit:

  • {{convert|1//2|in|mm|1}}/ इन्च (१२.७ मिमी)
  • {{convert|6+3//8|in|mm|1}} / इन्च (१६१.९ मिमी)

Using a negative value for |frac= provides a horizontal fraction bar for the converted (output) unit:

  • {{convert|12.7|mm|frac=-2}} → १२.७ मिलिमिटर (/ इन्च)
  • {{convert|161.9|mm|frac=-8}} → १६१.९ मिलिमिटर ( / इन्च)

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}} → १२,३४,५६७ मिटर (४०,५०,४१७ फिट)

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 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}} → १२,३४,५६७ मिटर (४०,५०,४१७ फिट)

Default behaviour, for comparison:

  • {{convert|1234|m|ft}} → १,२३४ मिटर (४,०४९ फिट)

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 (useful in tables):

  • {{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}} → ५.३९९६ समुद्री माइल; ६.२१३७ माइल (१० किलोमिटर)

Fixed ordering of output units: १०० °से (२१२ °फे; १०० °से; ३७३ के)

सम्पादन गर्नुहोस्

Setting |order=out shows the output-units as ordered; the input unit is skipped:

  • {{convert|100|C|F C K|abbr=on|order=out}} → १०० °से (२१२ °फे; १०० °से; ३७३ के)
  • {{convert|200|PS|kW hp|0|abbr=on|order=out}} → २०० PS (१४७ किलोवॉट; १९७ अश्वशक्ति)

See also: § Displaying parts of the output.

Displaying parts of the result: २ (१.५)

सम्पादन गर्नुहोस्

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

Convert Output Returns
{{convert|2|cuyd|m3}} २ घन गज (१.५ मी3) Regular output (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|disp=out}} २.० घन गज Input (workaround. Note repetition of unit in input)
{{convert|2|cuyd|m3|abbr=~}} २ घन गज (घन गज, १.५ मी3) Input: both name and symbol
{{convert|2|cuyd|m3|disp=unit2}} मी3 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}} १.५ मी3 Output value and unit name
{{convert|2|cuyd|m3|disp=out|abbr=off}} १.५ घन मिटर Output value and unit symbol

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=~}} → २ किलोपास्कल (किलोपास्कल, ०.२९ पाउन्ड/वर्ग इन्च)
  • A {{convert|2|kPa|psi|abbr=~|adj=on}} pressureA २ किलोपास्कल (किलोपास्कल, ०.२९ पाउन्ड/वर्ग इन्च) pressure

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

|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()
१०० किलोमिटर
६२ माइल
१०० किलोमिटर (६२ माइल)

Using {convert} in a table cell, with |disp=table splits the result over two (or more) columns. By default units are not included in the table, however, they can be added using the |abbr= parameter. Multiple-unit outputs, like ftin, always output their units to the table.

{{convert|10|m|ft|disp=table}}

align="right"|१० |align="right"|३३

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

{{convert|20|m|ft|disp=tablecen}}

align="center"|२० |align="center"|६६

The units are added as a column header:

  kilograms pounds stone and pounds
|disp=table १० २२ १ स्टोन ८ पाउन्ड
|disp=table and |abbr=on २० किग्रा ४४ पाउन्ड ३ स्टोन २ पाउन्ड
|disp=table and |abbr=off ३० किलोग्राम ६६ पाउन्ड ४ स्टोन १० पाउन्ड
|disp=tablecen ४० ८८ ६ स्टोन ४ पाउन्ड
|disp=<other> (default) ५० किलोग्राम (११० पाउन्ड; ७ स्टोन १२ पाउन्ड)

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 data-sort-value="7001100000000000000♠"></span>10 metres (33 ft)
showing: 7001100000000000000१० मिटर (३३ फिट).

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

m m ft
A १५.७५मी 7001157500000000000१५  ५२
B १५.५मी 7001155000000000000१५.५ ५१
C १६मी 7001160000000000000१६.० ५२.५
D १६मी 7001160000000000000१६ ५२

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.

The conversion factors and physical constants are sourced here.

Abridged list of units supported by {{Convert}}
Explanation
system unit unit-
code
symbol or
abbrev.
notes conversion factor combination output units
the system(s) to which the unit belongs units listed by name unit-code to use in template symbols shown in output other notes about the units conversion factors used to convert to and from the SI base unit output codes for multiple conversions


LENGTH
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion
factor/m
combination output units
SI megametre Mm Mm US spelling: megameter
१,०००,०००
किलोमिटर km किमी US spelling: kilometer
१,०००
  • km mi
मीटर m मी US spelling: meter
  • m ft
  • m ftin
centimetre cm सेन्टीमिटर US spelling: centimeter
०.०१
  • cm in
millimetre mm मीमी US spelling: millimeter
०.००१
  • mm in
micrometre μm (um) µm US spelling: micrometer
०.०००००१
nanometre nm nm US spelling: nanometer
०.००००००००१
non-SI metric ångström Å
(angstrom)
Å ०.०००००००००१
Imperial
&
US customary
mile mi मी १,६०९.३४४
  • mi km
furlong furlong २०१.१६८
chain chain २०.११६८
rod rd rd For other names of this unit see the full list. ५.०२९२
fathom fathom assumes 1 fathom ≡ 6 ft १.८२८८
yard yd yd assumes the international definition ०.९१४४
foot ft (foot) फिट Code "foot" will show "foot" if plural. ०.३०४८
  • ft m (foot m)

hand अभिव्यक्ति त्रुटि: अज्ञात शब्द "hand"। (
ERROR {Convert}: Invalid parameters: 1=floor(hand)+(hand*10)mod10/4 2=( floor(hand)+(hand*10)mod10/4 )*0.1016 3=0 4= 5= 6= with {u}= n= .
             Try using range: {{convert|floor(hand)+(hand*10)mod10/4 |( floor(hand)+(hand*10)mod10/4 )*0.1016|0...}} to convert a range of numbers.
)

inch in इन्च ०.०२५४
  • in cm
  • in mm
Other nautical mile nmi nmi the international standard nautical mile
For other nautical miles see the full list.
१,८५२
parsec pc pc ३.०८५६७७५८१४६७२000×10^16
light-year ly ly ९.४६०७३०४७२५८०८×10^15
खगोलीय एकाइ AU AU १४९,५९७,८७०,७००


AREA
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/m2 combinations
SI square kilometre km2 किमी US spelling: square kilometer
१,०००,०००
  • km2 sqmi
square metre m2 m2 US spelling: square meter
  • m2 sqft
square centimetre cm2 cm2 US spelling: square centimeter
०.०००१
  • cm2 sqin
square millimetre mm2 mm² US spelling: square millimeter
०.०००००१
  • mm2 sqin
non-SI metric hectare ha हेक्टर १०,०००
Imperial
&
US customary
square mile sqmi वर्ग मी २,५८९,९८८.११०३३६
  • sqmi km2
एकर acre ४,०४६.८५६४२२
square yard sqyd sq yd ०.८३६१२७३६
square foot sqft
(sqfoot)
sq ft Code "sqfoot" will show "square foot" if plural. ०.०९२९०३०४
  • sqft m2 (sqfoot m2)
square inch 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 (४००/१२१)


VOLUME
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/m3 combinations
SI cubic metre m3 m3 US spelling: cubic meter
one kilolitre
cubic centimetre cm3 cm3 US spelling: cubic centimeter
one millilitre
०.०००००१
cc cc
cubic millimetre mm3 mm³ US spelling: cubic millimeter
०.००००००००१
non-SI metric kilolitre kl kl US spelling: kiloliter
one cubic metre
kL kL
litre l l US spelling: liter
one cubic decimetre
Allows triple output units. See: 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 ०.७६४५५४८५७९८४
cubic foot cuft (cufoot) cu ft Code "cufoot" will show "cubic foot" if plural. ०.०२८३१६८४६५९२
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
Allows triple output units. See: 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 bbl
barrel oilbbl bbl 42 US gal ०.१५८९८७२९४९२८
beer barrel USbeerbbl
(usbeerbbl)
US bbl ०.११७३४७७६५३०४
U.S.beerbbl
(usbeerbbl)
U.S. bbl
gallon USgal US gal 231 cubic inches by definition, also
4 US qt or 8 US pt or 128 US fl oz
Allows triple output units. See: 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
Allows triple output units. See: 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


SPEED
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/(m/s) combinations
SI metre per second m/s m/s US spelling: meter per second
  • m/s ft/s (m/s foot/s)
non-SI metric kilometre per hour 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 Code "foot/s" will show "foot per second" if plural. ०.३०४८
  • ft/s m/s
Maritime units knot kn (knot) kn (४.६३/९)
  • kn mph


FORCE
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/N combination output units
SI giganewton GN GN Allows triple output units. See: full list. १,०००,०००,०००
  • GN LT-f
  • GN LTf
  • GN ST-f
  • GN STf
meganewton MN MN Allows triple output units. See: full list. १,०००,०००
  • MN LT-f
  • MN LTf
  • MN ST-f
  • MN STf
kilonewton kN kN Allows triple output units. See: 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
grain-force gr-f grf ०.०००६३५४६०२३०७५१५
grf grf


ENERGY
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/J combinations
SI gigajoule GJ GJ १,०००,०००,०००
megajoule MJ MJ १,०००,०००
kilojoule kJ किजु १,०००
hectojoule hJ hJ १००
decajoule daJ daJ १०
joule J J
decijoule dJ dJ ०.१
centijoule cJ cJ ०.०१
millijoule mJ mJ ०.००१
microjoule μJ (uJ) µJ ०.०००००१
nanojoule nJ nJ ०.००००००००१
cgs megaerg Merg Merg ०.१
kiloerg kerg kerg ०.०००१
erg erg erg ०.००००००१
Watt-hour multiples terawatt-hour TWh TWh ३.६×10^15
TW.h TW·h
gigawatt-hour GWh GWh ३.६×10^12
GW.h GW·h
megawatt-hour MWh MWh ३,६००,०००,०००
MW.h MW·h
kilowatt-hour kWh kWh ३,६००,०००
kW.h kW·h
watt-hour Wh Wh ३,६००
W.h डब्ल्यु.एच
Electron-
volt
multiples
gigaelectronvolt GeV GeV ०.०००००००००१६०२१७६४८७
megaelectronvolt MeV MeV १.६०२१७६४८७×10^−13
kiloelectronvolt keV keV १.६०२१७६४८७×10^−16
electronvolt eV eV १.६०२१७६४८७×10^−19
millielectronvolt meV meV १.६०२१७६४८७×10^−22
Calorie multiples calorie Cal Cal The thermo-chemical calorie is the default definition. For others, see the full list. ४,१८४
megacalorie Mcal Mcal ४,१८४,०००
kilocalorie kcal kcal ४,१८४
calorie cal cal ४.१८४
millicalorie mcal mcal ०.००४१८४
pound/
ounce
-foot/
inch-hour-minute-second
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
British thermal unit British thermal unit Btu Btu The International Steam Table British thermal unit is used. For others, see the full list. १,०५५.०५५८५२६२
BTU BTU
TNT-based units gigatonne of TNT GtTNT ४.१८४×10^18
gigaton of TNT GtonTNT
megatonne of TNT MtTNT ४.१८४×10^15
megaton of TNT MtonTNT Mt
kilotonne of TNT ktTNT ४.१८४×10^12
kiloton of TNT ktonTNT kt
tonne of TNT tTNT ४,१८४,०००,०००
ton of TNT tonTNT
Other
Hartree Eh Eh ४.३५९७४४१७×10^−18
rydberg Ry Ry २.१७९८७४१×10^−18
tonne of oil equivalent toe toe ४१,८६८,०००,०००
barrel of oil equivalent BOE BOE ६,११७,८६३,२००
cubic foot of natural gas cuftnaturalgas (cufootnaturalgas) Unit-code cufootnaturalgas will show "cubic foot of natural gas" if plural. 1,055,055.85262
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


TEMPERATURE
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion
to kelvin
combinations
SI kelvin K K Allows triple output units. See: 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 Example:  {{convert|5|C-change}}
Fahrenheit change F-change Example:  {{convert|10|F-change}}


MASS
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/kg combination output units
SI kilogram kg किलोग्राम Allows triple output units. See: full list.
  • kg lb
  • kg st
gram g ग्राम ०.००१
  • g oz
milligram mg mg ०.०००००१
  • mg gr
microgram μg (ug) µg ०.००००००००१
non-SI metric tonne t t Allows triple output units. See: full list. १,०००
  • t LT
  • t ST
metric ton MT t
  • MT LT
  • MT ST
Avoirdupois long ton LT 2,240 lb
used mostly in the British Commonwealth.
Allows triple output units. See: full list.
१,०१६.०४६९०८८
  • LT t
  • LT MT
  • LT ST
long ton
short ton ST 2,000 lb
used mostly in the US.
Allows triple output units. See: full list.
९०७.१८४७४
  • ST t
  • ST MT
  • ST LT
short ton
stone st st 14 lb
used mostly in the British Commonwealth except Canada.
Allows triple output units. See: full list.
६.३५०२९३१८
  • st kg
  • st lb
pound lb पाउण्ड Allows triple output units. See: 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 ०.०००२


TORQUE
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/N·m combinations
Industrial
SI newton metre Nm N·m Triple combinations are also possible. See the full list. 1
  • Nm kg-m
  • Nm ft-lb
Non-SI metric kilogram-meter kg-m kg-m 9.80665
  • kg-m Nm
  • kg-m ft-lb
Imperial
&
US customary
foot-pound ft-lb ft-lb 1.3558
  • ft-lb Nm
  • ft-lb kg-m
Scientific
SI newton metre N-m N·m Triple combinations are also possible. See the full list. 1
  • N-m kgf-m
  • N-m lbf-ft
Non-SI metric kilogram-force meter kgf-m kgf·m 9.80665
  • kgf-m N-m
  • kgf-m lbf-ft
Imperial
&
US customary
pound-foot lbf-ft lbf·ft 1.3558
  • lbf-ft N-m
  • lbf-ft kgf-m
PRESSURE
unit unit-
code
abbrev-
iation
conversion factor/Pa
gigapascal GPa GPa १,०००,०००,०००
megapascal MPa MPa १,०००,०००
kilopascal kPa kPa १,०००
hectopascal hPa hPa १००
pascal Pa Pa
millipascal ‎mPa‎ mPa ०.००१
millibar mbar mbar १००
mb mb
decibar ‎dbar dbar १०,०००
bar 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 ३,३८६.३८८६४०३४१
pound per square inch psi psi (444,822,161.52605
/ 64,516)
FUEL EFFICIENCY
unit unit-
code
notes combinations
kilometres per litre km/l (km/L) Use km/L to get "km/L"
  • km/l mpgimp
  • km/l mpgus
litres per 100 kilometres l/100 km (L/100 km) Use L/100 km to get "L/100 km"
  • l/100 km mpgimp
  • l/100 km mpgus
litres per kilometre l/km (L/km) Use L/km to get "L/km"
  • l/km impgal/mi
  • l/km usgal/mi
miles per imperial gallon mpgimp
  • mpgimp mpgus
miles per US gallon mpgus (mpgUS, mpgU.S.) Use mpgUS to get "US"

Use mpgU.S. to get "U.S."
mpgus will give "U.S." if spelling is
set to US & "US" otherwise

  • mpgus mpgimp
imperial gallons per mile impgal/mi
  • impgal/mi
US gallons per mile usgal/mi (USgal/mi, U.S.gal/mi) As above with the us vs US vs U.S.
  • usgal/mi
The mpgUS, mpgU.S., USgal/mi vs U.S.gal/mi, km/L, L/100 km and L/km variants work within combinations also (making 36 combinations in total).
POWER
Watts, kilowatts, milliwatts, etc. are supported. As is horsepower (English & metric). Use standard abbreviations as input code (lower case hp for horsepower, for example)
POPULATION DENSITY
unit unit-
code
notes combinations
inhabitants per square kilometre PD/sqkm PD stands for population density, i.e. humans (inhabitants)
  • PD/sqkm PD/sqmi
per square kilometre /sqkm Used when the word 'inhabitants' would be inappropriate.
  • /sqkm /sqmi
inhabitants per hectare PD/ha
  • PD/ha PD/acre
per hectare /ha
  • /ha /acre
inhabitants per square mile PD/sqmi PD stands for population density, i.e. humans (inhabitants)
  • PD/sqmi PD/sqkm
per square mile /sqmi Used when the word 'inhabitants' would be inappropriate.
  • /sqmi /sqkm
inhabitants per acre PD/acre
  • PD/acre PD/ha
per acre /acre
  • /acre /ha
COST PER UNIT MASS
unit unit-
code
notes combinations
dollars per pound $/lb "$" can mean US$, HK$, etc.
  • (none)
dollars per kilogram $/kg
  • (none)
dollars per troy ounce $/ozt 12 troy ounces in 1 troy pound
  • (none)


'per' units: kg/hl, miles per gallon

सम्पादन गर्नुहोस्

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

Population density (inhabitants per square mile) can be converted using

  • {{convert|10|PD/sqmi|PD/km2}} → १० निवासी प्रति वर्ग माइल (३.९ /किमी2)

Vehicular fuel efficiency, commonly expressed in miles per gallon or litres per 100 km can also be converted

  • {{convert|26|mpgUS|l/100km mpgimp}} → २६ माइल प्रति अमेरिकी ग्यालन (०.००९० लि/100 किमी; ३१ माइल/इम्प॰ गैल॰)

Units of difference: Expressing a change or difference in temperature

सम्पादन गर्नुहोस्

We have already discussed standard temperature conversions (°C, °F, K), as shown in these two examples:

  • {{convert|10|C}} → १० °से (५० °फे) (standard temperature conversion)
  • {{convert|10–15|C}} → १०–१५ °से (५०–५९ °फे) (standard temperature range conversion)

When expressing a temperature change (e.g., "The temperature increased by 10 °C"), or when comparing temperatures (e.g., "10 to 15 °C warmer"), we cannot use the standard temperature units (|C, |F and |K), which refer to points on the respective scale. Instead, we must use one of the following "units of difference": |C-change, |F-change and |K-change.

Compare the following two examples with the two above:

  • {{convert|10|C-change}} → १० °से (१८ °फे) increase in temperature
  • {{convert|10–15|C-change}} → १०–१५ °से (१८–२७ °फे) warmer than normal

To produce multiple units in the output:

  • {{convert|10|C-change|F-change K-change}} → १० °से (१८ °फे; १० के) difference

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}} → १ पाउन्ड ५ औंस (६०० ग्रा)

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

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

  • {{convert|10|$/mi|$/km}} → $१० प्रति माइल ($६.२/किमी)
  • {{convert|1500|$/ozt|$/g}} → $१,५०० प्रति troy ounce ($४८/ग्रा)

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: ढाँचा:!mxt Red XN

For usage in template code, like infoboxes, {{Convert}} has these options:

Pre-formatting fraction input
Your template can accept |input=16 7/8 and use {{#invoke:Convert/helper|number|16 7/8}} → Script error: No such module "Convert/helper".
Using a Wikidata property
  • Adding the Wikidata property code, like code |input=P2073, to your template code automatically returns the Wikidata property for that article, and convert it. Both number and unit are read.

Note: to return that property value for an other article, use |qid=.

Example for (P2073): Note: this example uses |qid=Q1056131 (testing for (Q1056131))

For example see template:Infobox Telescope.

Sometimes a property may have more than one value against it in Wikidata. You can use the |qual= parameter to specify which of the values you want to use.

Example for (P2386): Note: this example uses |qid=Q1513315 (testing for (Q1513315))

ढाँचा:Convert/doc/parameter list

ढाँचा:Convert/doc/deprecations list

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template in articles based on this TemplateData.

Convertको कागजात

Converts measurements to other units.

ढाँचा प्यारामिटरहरू

This template prefers inline formatting of parameters.

मापदण्डविवरणप्रकारस्थिति
Value1

The value to convert.

सङ्ख्याआवश्यक
From unit2

The unit for the provided value.

उदाहरण
km
Stringआवश्यक
To units3

The units to convert into. Separate units by a space for multiple outputs. In an output unit, use + for a multiplication space.

उदाहरण
mi nmi
Stringसुझावित
Precision or suffix4

Significant digits after decimal dot or, if negative, exponent of ten.

सङ्ख्यावैकल्पिक
Link unitslk

Indication of what units to apply wikilinks to. Use “on” for all, “in” for the input unit, “out” for the output units, or “off” for none of the units.

पूर्वनिर्धारित
off
उदाहरण
on
Stringवैकल्पिक
Abbreviationabbr

Display for the units: “on” to display all units using their unit symbols, “off” to display all units in full words, “in” to display the unit symbol for the input unit, “out” to display the unit symbols for the output units, “unit” to display unit symbols for both input and output units when using scientific notation, “values” for no units at all (neither unit symbols nor full words of units).

पूर्वनिर्धारित
out
उदाहरण
on, unit, in, out, off
Stringसुझावित
Spellingsp

Spelling of units. Use “us” to display unit names using U.S. spelling.

उदाहरण
us
Stringवैकल्पिक
Adjectiveadj

Whether to use adjectival form. Use “on” for singular unit name appended by a hyphen, “mid” to put conversion at end, or “off” (default) for no adjectival form.

पूर्वनिर्धारित
off
उदाहरण
on
Unbalanced wikitextवैकल्पिक
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
Stringवैकल्पिक
Orderingorder

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

उदाहरण
flip
Stringवैकल्पिक
Significant figuressigfig

Indicates the number of significant figures to be used in rounding.

सङ्ख्यावैकल्पिक
Rounding outputround

The type of rounding. “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 the use of thousands separators in the numbers. “off”: no separator; “gaps”: use space instead of comma as thousands separator; “5”: only add thousands separator when the integral part of the number uses 5 positions or more (10,000 or more; if using comma as thousands separator, 1234 would produce '1234', 12345 would produce '12,345').

पूर्वनिर्धारित
on
उदाहरण
off
Stringवैकल्पिक
Sort keysortable

“on” generates a hidden sort key

उदाहरण
on
Stringवैकल्पिक
Spell numbers?spell

If used, spells input or input and output numbers in words, optionally capitalizing the first

उदाहरण
'in', 'In', 'on', or 'On'
Stringवैकल्पिक
Singular?sing

If 'yes', uses singular form of units (deprecated)

उदाहरण
yes
Stringबहिष्कृत
Fraction?frac

fraction as rounding unit

सङ्ख्यावैकल्पिक
Currency symbol$

sets currency symbol in both units

उदाहरण
$=€ will show " €10 per mile (€6.2/km)"
Stringवैकल्पिक
WD propertyinput

Reads the property value of the item (article), then converts it

उदाहरण
{{convert|input=P2046}} (P2046=area)
Stringवैकल्पिक

ढाँचा:Convert navs