ढाँचा:Convert
| This template is used on approximately १,२५०,००० pages, or roughly 1121% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
| This template can only be edited by administrators because it is transcluded onto one or more cascade-protected pages. |
| See this information on copying this template and modifying it for use on another wiki. |
| This template uses Lua: |
Template {{convert}} calculates a measurement value (number × unit) into the same measurement by a different unit, and then presents the results, formatted. See also the unit symbols recognized by this template.
For example:
{{convert|2|km|mi}}→ २ किलोमिटर (१.२ माइल) (km entered, converted into miles){{convert|7|mi|km}}→ ७ माइल (११ किमी) (mi entered, 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}}→ २ to ५ किलोमिटर (१.२ to ३.१ माइल){{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}}→ २ and ५ किलोमिटर (१.२४ and ३.११ माइल)
Units to convert
[सम्पादन गर्नुहोस्]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 (see § 'per' units: kg/ha and § Currency per unit: $/km)
- 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 shows the symbol for first (left-hand side) unit, and the name instead of the symbol for the second unit:
{{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 behavior. In {{cvt}}, all other options are available. So:
{{cvt|1|lb|kg}}→ १ पाउन्ड (०.४५ किग्रा)
is equivalent to:
{{convert|1|lb|kg|abbr=on}}→ १ पाउन्ड (०.४५ किग्रा)
Adjective: a 10-mile distance
[सम्पादन गर्नुहोस्]Use |adj=on to produce the adjectival (hyphenated) form:
A {{convert|10|mi|km|adj=on}} distance→ A १०-माइल (१६ किमी) distance.
Default behavior, 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.
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 digits, whichever is more precise. An exception to this is rounding temperatures (see below).
Convert supports four types of rounding:
Round to a given precision: use a precision number
[सम्पादन गर्नुहोस्]Specify the desired precision with an integer as 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 1⁄10 to the power of this integer. For instance, if the result is 8621 and the rounding parameter is "−2", 8600 will be displayed. If the result is "123.456" and the parameter is "0", 123 will be displayed. Essentially a positive or zero rounding parameter specifies the number of decimal places; a negative value specifies the number of trailing zeroes.
| 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}} |
१२३ फिट (३७.४९ मी) | 123 feet is exactly 37.4904 m which is rounded 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}} |
५०० फिट (१५,२४० सेमी) | |
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 behavior, for comparison:
{{convert|1200|ft|m}}→ १,२०० फिट (३७० मी)
Setting |sigfig= to a value less than 1 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 behavior, 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}}→ १० by २०० by ३,००० मिटर (३३ फिट × ६५६ फिट × ९,८४३ फिट){{convert|10 x 200 x 3000|m|ft|round=each}}→ १० by २०० by ३,००० मिटर (३३ फिट × ६६० फिट × ९,८०० फिट)
Round to a multiple of a given fraction: 2 3⁄16 inch
[सम्पादन गर्नुहोस्]Specify the desired denominator using |frac=<some positive integer>. (Denominator is the below-the-slash number, for example the 3 in 1⁄3).
{{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 behavior 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.
{{convert|10,000|C|F K}}→ १०,००० °से (१८,००० °फे; १०,३०० के){{convert|10,000.1|C|F K}}→ १०,०००.१ °से (१८,०३२.२ °फे; १०,२७३.२ के){{convert|-272|C|F K}}→ −२७२ °से (−४५७.६० °फे; १.१५ के){{convert|-272|C}}→ −२७२ °से (−४५७.६० °फे){{convert|100|C|F K}}→ १०० °से (२१२ °फे; ३७३ के){{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 six now, 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 the 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.
Rounding input
[सम्पादन गर्नुहोस्]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 it is not possible to round above the decimal place (|adj=ri-1
is invalid). Neither is there support for significant figures, multiples of a number, 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}}→ ४ माइल (६.६६५२४ किमी)
(precisions are mismatched){{convert|4.14159|mi|km|0|adj=ri0}}→ ४ माइल (७ किमी)
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}}→ ४ माइल (६ किमी)
(rounds intermediate calculation, giving a different result)
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:
- For multiple-unit options like 1 ft 5 in, see § In input and § In output.
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:
ढाँचा:Convert/doc/range separator list
Multiple dimensions: ६ मी × १२ मी (२० फिट × ३९ फिट)
[सम्पादन गर्नुहोस्]Use by:
{{convert|6|by|12|ft|m}}→ ६ by १२ फिट (१.८ by ३.७ मी)
Use ×, multiplication sign, or x, letter:
{{convert|6|x|12|m|ft}}→ ६ by १२ मिटर (२० फिट × ३९ फिट)
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}}→ २०, ४०, or ६० माइल (३२, ६४, or ९७ किमी)
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:
{{convert|1|ft|3|in|x|3|ft|5|in|mm}}→ १ फिट ३ इन्च ([convert: unknown unit])*
Default behavior, 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}}→ १ फिट ३ इन्च by ३ फिट ५ इन्च (३८० मिमी × १,०४० मिमी)
Words
[सम्पादन गर्नुहोस्]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}}→ १ मिटर (३.३ फिट)
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}}→ दस माइल (सोह्र thousand मिटर)
To make the first letter a capital, use |spell=In, |spell=On
{{convert|10|mi|m|spell=In}}→ दस माइल (१६,००० मी){{convert|10|mi|m|spell=On}}→ दस माइल (सोह्र 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 (३.० मी)
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 "foot" instead of "ft" 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 (७१ mलि)
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}}→ १०० million माइल (१६०×१०६ किमी){{convert|120|e6acre}}→ १२० million एकड (४,९०,००० किमी२){{convert|120|e6acre|e3km2}}→ १२० million एकड (४९०×१०३ किमी२)
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}}→ १०० million माइल (१६० million किमी){{convert|100|e6mi|e6km|abbr=off}}→ १०० million माइल (१६० million किलोमिटर)
Numbers
[सम्पादन गर्नुहोस्]Using an SI prefix: gigametre (Gm), or micrometre (μm)
[सम्पादन गर्नुहोस्]| Text | Symbol | Factor |
|---|---|---|
| quetta | Q | 1030 |
| ronna | R | 1027 |
| 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) | 1 | |
| deci | d | 10−1 |
| centi | c | 10−2 |
| milli | m | 10−3 |
| micro | μ | 10−6 |
| nano | n | 10−9 |
| pico | p | 10−12 |
| femto | f | 10−15 |
| atto | a | 10−18 |
| zepto | z | 10−21 |
| yocto | y | 10−24 |
| ronto | r | 10−27 |
| quecto | q | 10−30 |
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:
- १२ Gमी (१.२×१०१० मी)
- १२ μमी (१.२×१०−५ मी)
The prefix can be added before the SI unit (here: unit m for metre):
{{convert|12|Gm|mi|abbr=on}}→ १२ Gमी (७५,००,००० माइल)Mm: १२ Mमी (७,५०० माइल)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}}→ १२,००० माइल (१९ Mमी){{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: 7 million km
[सम्पादन गर्नुहोस्]Engineering notation can be entered with a prefix to the unit:
{{convert|70|e6m}}→ ७० million मिटर (२३,००,००,००० फिट){{convert|70|e6m|abbr=on}}→ ७०×१०६ मी (२३,००,००,००० फिट)
The same is possible for the output unit:
{{convert|230,000,000|ft|e6m}}→ २३,००,००,००० फिट (७०×१०६ मी)
The prefixes are:
e3(thousand)e6(million)e9(billion)e12(trillion)e15(quadrillion)
Engineering notation may use "e" or "E", for example, e3km or E3km. Using uppercase E3km displays the factor as a word ("thousand") rather than as ×103. Using lowercase e3km displays the word if abbr=unit is used, or if abbr=off applies to the unit.
{{convert|70|e6m|e6ft}}→ ७० million मिटर (२३०×१०६ फिट){{convert|70|e6m|e6ft|abbr=off}}→ ७० million मिटर (२३० million फिट){{convert|70|e6m|e6ft|abbr=unit}}→ ७० million मी (२३० million फिट){{convert|70|E6m|e6ft|abbr=in}}→ ७० million मी (२३० million फिट)
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}}→ १२.३×१०−१५ 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:
{{convert|1/2|in|mm|1}}→ १⁄२ इन्च (१२.७ मिमी){{convert|1⁄2|in|mm|1}}→ १⁄२ इन्च (१२.७ मिमी)
With positive mixed numbers (a positive integer and a fraction), use a + sign
{{convert|2+1⁄2|in|mm|1}}→ २+१⁄२ इन्च (६३.५ मिमी)
With negative mixed numbers, use a hyphen - and repeat it:
{{convert|-2-1⁄2|in|mm|1}}→ −२+१⁄२ इन्च (−६३.५ मिमी)
Note that the following cases are not interpreted as mixed numbers:
{{convert|2-1⁄2|in|mm|1}}→ २–१⁄२ इन्च (५०.८–१२.७ मिमी). This is interpreted as a range from 2 inches to 1⁄2 inch.{{convert|-2+1⁄2|in|mm|1}}→ [convert: अवैध सङ्ख्या]
This is neither a mixed number nor a range, and mathematical expressions requiring calculations are not allowed here.{{convert|2+½|in|mm|1}}→ [convert: अवैध सङ्ख्या]
Fractions consisting of a single Unicode character are not allowed either.
Horizontal fraction bar: ११/२ 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 behavior, 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 behavior, 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, semicolon, or, br, br(), x|…:
{{convert|10|m|ft|disp=sqbr}}→ १० मिटर [३३ फिट]{{convert|10|m|ft|disp=comma}}→ १० मिटर, ३३ फिट{{convert|10|m|ft|disp=semicolon}}→ १० मिटर; ३३ फिट{{convert|10|m|ft|disp=or}}→ १० मिटर or ३३ फिट
Default behavior, 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 )
Flipping (reordering) the two measurements: १,६०९.३ मिटर (१ माइल)
[सम्पादन गर्नुहोस्]Setting |order=flip will flip (swap) the two measurements:
{{convert|1|mi|m|order=flip}}→ १,६०९.३ मिटर (१ माइल)
Default behavior, 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}}→ १४७ kवॉट (१९७ अश्वशक्ति)
See also: § Displaying parts of the output.
Displaying parts of the result: २ (१.५)
[सम्पादन गर्नुहोस्]It is possible to display only parts of the conversion result: The following examples show how to display only a part of the result.
- Note: in Convert, abbr is synonym for unit symbol
| Convert | Returns | Components |
|---|---|---|
{{convert|2|cuyd|m3}}
|
२ घन गज (१.५ मी3) | all (default conversion) |
{{convert|2|cuyd|m3|abbr=on}}
|
२ घन गज (१.५ मी3) | all (default conversion, abbr) |
{{convert|2|cuyd|m3ढाँचा:Bg}}
|
२ (१.५) | numbers only |
{{convert|2|cuydढाँचा:Bg}}
|
२.० घन गज | input value (workaround) |
{{convert|2|cuydढाँचा:Bg}}
|
२.० घन गज | input value abbr (workaround) |
{{convert|2|cuyd|m3ढाँचा:Bg}}
|
घन गज | input unit |
{{convert|2|cuyd|m3ढाँचा:Bg}}
|
घन-गज | input unit, adjectival (hyphenated) |
{{convert|2|cuyd|m3ढाँचा:Bg}}
|
घन गज | input unit, adjectival (abbr so not hyphenated) |
{{convert|2|cuyd|m3ढाँचा:Bg}}
|
घन गज | input unit abbr |
{{convert|2|cuyd|m3ढाँचा:Bg}}
|
१.५ मी3 | output value, symbols |
{{convert|2|cuyd|m3ढाँचा:Bg}} |
१.५ घन मिटर | output value, names |
{{convert|2|cuyd|m3ढाँचा:Bg}} |
१.५-घन-मिटर | output, adjective |
{{convert|2|cuyd|m3ढाँचा:Bg}} |
१.५ | output number |
{{convert|2|cuyd|m3ढाँचा:Bg}} |
मी3 | output unit (abbr by default) |
{{convert|2|cuyd|m3ढाँचा:Bg}} |
घन मिटर | output unit (name) |
{{convert|2|cuyd|m3ढाँचा:Bg}} |
मी3 | output unit (abbr) |
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=~}}→ २ kiloपास्कल [kपास्कल] (०.२९ पाउन्ड/वर्ग इन्च)A {{convert|2|kPa|psi|abbr=~|adj=on}} pressure→ A २-kiloपास्कल [kपास्कल] (०.२९ पाउन्ड/वर्ग इन्च) 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
[सम्पादन गर्नुहोस्]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}}→
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:
kilograms pounds stone and pounds |disp=table१० २२ १ स्टोन ८ पाउन्ड |disp=tableand|abbr=on२० किग्रा ४४ पाउन्ड ३ स्टोन २ पाउन्ड |disp=tableand|abbr=off३० किलोग्राम ६६ पाउन्ड ४ स्टोन १० पाउन्ड |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 data-sort-value="7001100000000000000♠"></span>10 metres (33 ft)- showing: १० मिटर (३३ फिट).
Use both |disp=table and |sortable=on together to produce table columns (pipe symbols) for each value in sortable columns:
m 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
[सम्पादन गर्नुहोस्]The conversion factors and physical constants are sourced here.
All units
[सम्पादन गर्नुहोस्]| 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 |
१,००० |
| |
| मीटर | m | मी | US spelling: meter |
१ |
| |
| centimetre | cm | सेन्टीमिटर | US spelling: centimeter |
०.०१ |
| |
| millimetre | mm | मीमी | US spelling: millimeter |
०.००१ |
| |
| micrometre | μm (um) | µm | US spelling: micrometer |
०.०००००१ | ||
| nanometre | nm | nm | US spelling: nanometer |
०.००००००००१ | ||
| non-SI metric | ångström | Å (angstrom) |
Å | ०.०००००००००१ | ||
| Imperial & US customary |
mile | mi | मी | १,६०९.३४४ |
| |
| 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. | ०.३०४८ |
hand अभिव्यक्ति त्रुटि: अज्ञात शब्द "hand"। ( | |
| inch | in | इन्च | ०.०२५४ |
| ||
| Other | nautical mile | nmi | nmi | the international standard nautical mile For other nautical miles see the full list. |
१,८५२ | |
| parsec | pc | pc | ३.०८५६७७५८१४६७२000×1016 | |||
| light-year | ly | ly | ९.४६०७३०४७२५८०८×1015 | |||
| खगोलीय एकाइ | AU | AU | १४९,५९७,८७०,७०० |
| ||
| AREA (Full list) | ||||||
| system | unit | unit- code |
abbrev- iation |
notes | conversion factor/m2 | combinations |
| SI | square kilometre | km2 | किमी२ | US spelling: square kilometer |
१,०००,००० |
|
| square metre | m2 | m2 | US spelling: square meter |
१ |
| |
| square centimetre | cm2 | cm2 | US spelling: square centimeter |
०.०००१ |
| |
| square millimetre | mm2 | mm² | US spelling: square millimeter |
०.०००००१ |
| |
| non-SI metric | hectare | ha | हेक्टर | १०,००० | ||
| Imperial & US customary |
square mile | sqmi | वर्ग मी | २,५८९,९८८.११०३३६ |
| |
| एकर | acre | ४,०४६.८५६४२२ | ||||
| square yard | sqyd | sq yd | ०.८३६१२७३६ | |||
| square foot | sqft (sqfoot) |
sq ft | Code "sqfoot" will show "square foot" if plural. | ०.०९२९०३०४ |
| |
| square inch | sqin | sq in | ०.०००६४५१६ |
| ||
| 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 | L |
| ||||
| centilitre | cl | cl | US spelling: centiliter |
०.००००१ | ||
| cL | cL | |||||
| millilitre | ml | ml | US spelling: milliliter one cubic centimetre |
०.०००००१ |
| |
| mL | mL |
| ||||
| 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. |
०.००४५४६०९ |
| |
| 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 | ०.००००२८४१३०६२५ |
| |
| 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. |
०.००३७८५४११७८४ |
| |
| U.S.gal | U.S. gal |
| ||||
| 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 | ०.००००२९५७३५२९५६२५ |
| |
| U.S.oz (U.S.floz) |
U.S. fl oz |
| ||||
| 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. |
०.००४४०४८८३७७०८६ |
| |
| U.S.drygal | U.S. dry gal |
| ||||
| 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 |
१ |
|
| non-SI metric | kilometre per hour | km/h | किमी/घण्टा | US spelling: kilometer per hour |
(५/१८) |
|
| Imperial & US customary |
mile per hour | mph | mph | ०.४४७०४ |
| |
| foot per second | ft/s (foot/s) | ft/s | Code "foot/s" will show "foot per second" if plural. | ०.३०४८ |
| |
| Maritime units | knot | kn (knot) | kn | (४.६३/९) |
| |
| 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. | १,०००,०००,००० |
|
| meganewton | MN | MN | Allows triple output units. See: full list. | १,०००,००० |
| |
| kilonewton | kN | kN | Allows triple output units. See: full list. | १,००० |
| |
| newton | N | N | १ |
| ||
| millinewton | mN | mN | ०.००१ |
| ||
| micronewton | μN (uN) | µN | ०.०००००१ |
| ||
| nanonewton | nN | nN | ०.००००००००१ |
| ||
| 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 | ९,९६४.०१६४१८१८३५२ |
| ||
| LTf | LTf |
| ||||
| short ton-force | ST-f | STf | ८,८९६.४४३२३०५२१ |
| ||
| STf | STf |
| ||||
| 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 | ३.६×1015 | ||
| TW.h | TW·h | |||||
| gigawatt-hour | GWh | GWh | ३.६×1012 | |||
| 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 | ४.१८४×1018 | |||
| gigaton of TNT | GtonTNT | |||||
| megatonne of TNT | MtTNT | ४.१८४×1015 | ||||
| megaton of TNT | MtonTNT | Mt | ||||
| kilotonne of TNT | ktTNT | ४.१८४×1012 | ||||
| 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] |
|
| degree सेल्सियस | °C (C) | °से | ([°C]+273.15) |
| ||
| Imperial & US customary |
degree Rankine | °R (R) | °R | ([°R]/1.8) |
| |
| degree फेहरनहाइट | °F (F) | °फे | (([°F]+459.67)/1.8) |
| ||
| 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. | १ |
|
| gram | g | ग्राम | ०.००१ |
| ||
| milligram | mg | mg | ०.०००००१ |
| ||
| microgram | μg (ug) | µg | ०.००००००००१ | |||
| non-SI metric | tonne | t | t | Allows triple output units. See: full list. | १,००० |
|
| metric ton | MT | t |
| |||
| Avoirdupois | long ton | LT | 2,240 lb used mostly in the British Commonwealth. Allows triple output units. See: full list. |
१,०१६.०४६९०८८ |
| |
| long ton | ||||||
| short ton | ST | 2,000 lb used mostly in the US. Allows triple output units. See: full list. |
९०७.१८४७४ |
| ||
| short ton | ||||||
| stone | st | st | 14 lb used mostly in the British Commonwealth except Canada. Allows triple output units. See: full list. |
६.३५०२९३१८ |
| |
| pound | lb | पाउण्ड | Allows triple output units. See: full list. | ०.४५३५९२३७ |
| |
| ounce | oz | oz | ०.०२८३४९५२३ |
| ||
| 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 |
|
| Non-SI metric | kilogram-meter | kg-m | kg-m | 9.80665 |
| |
| Imperial & US customary |
foot-pound | ft-lb | ft-lb | 1.3558 |
| |
| Scientific | ||||||
| SI | newton metre | N-m | N·m | Triple combinations are also possible. See the full list. | 1 |
|
| Non-SI metric | kilogram-force meter | kgf-m | kgf·m | 9.80665 |
| |
| Imperial & US customary |
pound-foot | lbf-ft | lbf·ft | 1.3558 |
| |
| 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"
|
| |||
| litres per 100 kilometres | l/100 km (L/100 km) | Use L/100 km to get "L/100 km"
|
| |||
| litres per kilometre | l/km (L/km) | Use L/km to get "L/km"
|
| |||
| miles per imperial gallon | mpgimp |
| ||||
| miles per US gallon | mpgus (mpgUS, mpgU.S.) | Use mpgUS to get "US"Use |
| |||
| imperial gallons per mile | impgal/mi |
| ||||
| US gallons per mile | usgal/mi (USgal/mi, U.S.gal/mi) | As above with the us vs US vs U.S.
|
| |||
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)
|
| |||
| per square kilometre | /sqkm | Used when the word 'inhabitants' would be inappropriate. |
| |||
| inhabitants per hectare | PD/ha |
| ||||
| per hectare | /ha |
| ||||
| inhabitants per square mile | PD/sqmi | PD stands for population density, i.e. humans (inhabitants)
|
| |||
| per square mile | /sqmi | Used when the word 'inhabitants' would be inappropriate. |
| |||
| inhabitants per acre | PD/acre |
| ||||
| per acre | /acre |
| ||||
| COST PER UNIT MASS | ||||||
| unit | unit- code |
notes | combinations | |||
| dollars per pound | $/lb | "$" can mean US$, HK$, etc. |
| |||
| dollars per kilogram | $/kg |
| ||||
| dollars per troy ounce | $/ozt | 12 troy ounces in 1 troy pound |
| |||
'per' units: kg/ha, miles per gallon
[सम्पादन गर्नुहोस्]When using a slash (/), a unit like kg/ha is recognized as kilograms per hectare and will be converted in to other mass/area units. A unit in the numerator is not required.
{{convert|1000|kg/ha}}→ १,००० किलोग्राम प्रति हेक्टर (८९० पाउन्ड/एकड){{convert|350|/in2}}→ ३५० per square inch (५४/cm2)
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
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 behavior, for comparison:
{{convert|2|m}}→ २ मिटर (६ फिट ७ इन्च)
See also:
Currency per unit: $/mi → $/km
[सम्पादन गर्नुहोस्]Using currency symbols in a $ per unit value, you can convert the per-unit:
{{convert|3.39|$/USgal|$/L}}→ Lua error in मोड्युल:Convert at line 670: attempt to index field 'per_unit_fixups' (a nil value).{{convert|10000|€/ha|€/acre}}→ Lua error in मोड्युल:Convert at line 670: attempt to index field 'per_unit_fixups' (a nil value).{{convert|10|¢/mi|¢/km}}→ १० ¢/mi[convert: unknown unit]{{convert|1500|¥/lb|¥/kg}}→ Lua error in मोड्युल:Convert at line 670: attempt to index field 'per_unit_fixups' (a nil value).
You can also set the currency in both values using |$=€:
{{convert|10|$/mi|$/km|$=€}}→ €१० प्रति माइल (€६.२/किमी)
It is not possible to convert the currency:
{{convert|10|$/lb|€/kg}}→ Lua error in मोड्युल:Convert at line 670: attempt to index field 'per_unit_fixups' (a nil value).
So, this result (mixed currencies) is not possible: $15 per mile (€8.6/km)
Using convert inside templates
[सम्पादन गर्नुहोस्]For usage in template code, like infoboxes, {{Convert}} has these options:
- Pre-formatting fraction input
- Module:Convert/helper can read regular input and pre-format it into {{Convert}}-accepted input. Note this function does not have the full capabilities of the Convert template; it only converts fractions (and horse race distances)
- Your template can accept
|input=16 7/8and use {{#invoke:Convert/helper|number|16 7/8}} → 16+7/8
- 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 vehicle range (P2073) of [[d:Special:EntityPage/Qढाँचा:Get QID| (Qढाँचा:Get QID)]]:
{{convert|input=P2073|qid={{get QID|Cessna 208 Caravan}}|ftin|abbr=on}}→ The ID "ढाँचा:Get QID" is unknown to the system. Please use a valid entity ID.{{convert|input=P2073|qid=Q1056131|km|abbr=on}}→{{convert|input=P2073|qid=Q1056131|km|abbr=on|disp=out}}→
- 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 diameter (P2386):
Note: this example uses |qid=Q1513315 (testing for South Pole Telescope (Q1513315))
- primary mirror (Q613628):
{{convert|input=P2386|qual=Q613628|ft|abbr=on}}→ १०.० मी (३२.८ फिट) - secondary mirror (Q1395645):
{{convert|input=P2386|qual=Q1395645|ft|abbr=on}}→ १ मी (३.३ फिट)
Parameter list
[सम्पादन गर्नुहोस्]ढाँचा:Convert/doc/parameter list
Deprecated options
[सम्पादन गर्नुहोस्]ढाँचा:Convert/doc/deprecations list
TemplateData
[सम्पादन गर्नुहोस्]TemplateData for Convert
Converts measurements to other units.
| मापदण्ड | विवरण | प्रकार | स्थिति | |
|---|---|---|---|---|
| Value | 1 | The value to convert. | सङ्ख्या | आवश्यक |
| From unit | 2 | The unit for the provided value.
| String | आवश्यक |
| To units | 3 | The units to convert into. Separate units by a space for multiple outputs. In an output unit, use + for a multiplication space.
| String | सुझावित |
| Precision or suffix | 4 | Significant digits after decimal dot or, if negative, exponent of ten. | सङ्ख्या | वैकल्पिक |
| Link units | lk | 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. For more fine-grained control over which units to link, use the template multiple times.
| String | वैकल्पिक |
| Abbreviation | abbr | 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).
| String | सुझावित |
| Spelling | sp | Spelling of units. Use “us” to display unit names using U.S. spelling.
| String | वैकल्पिक |
| Adjective | adj | 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.
| Unbalanced wikitext | वैकल्पिक |
| Conversion | disp | 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.
| String | वैकल्पिक |
| Ordering | order | “flip” returns converted value first, input value second.
| String | वैकल्पिक |
| Significant figures | sigfig | Indicates the number of significant figures to be used in rounding. | सङ्ख्या | वैकल्पिक |
| Rounding output | round | 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 separator | comma | 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').
| बुलियन | वैकल्पिक |
| Sort key | sortable | “on” generates a hidden sort key
| बुलियन | वैकल्पिक |
| Spell numbers? | spell | If used, spells input or input and output numbers in words, optionally capitalizing the first
| String | वैकल्पिक |
| Singular? | sing | If 'yes', uses singular form of units (deprecated)
| बुलियन | बहिष्कृत |
| Fraction? | frac | fraction as rounding unit | सङ्ख्या | वैकल्पिक |
| Currency symbol | $ | sets currency symbol in both units
| String | वैकल्पिक |
| Mach altitude (ft) | altitude_ft | Mach (speed) depends on altitude
| सङ्ख्या | वैकल्पिक |
| Mach altitude (m) | altitude_m | Mach (speed) depends on altitude | सङ्ख्या | वैकल्पिक |
| WD property | input | Reads the property value of the item (article), then converts it
| String | वैकल्पिक |