![]() | এই সাহায্য পাতাটি একটি কীভাবে করবেন ধরনের নির্দেশিকা। এটি উইকিপিডিয়ার কিছু নিয়ম ও পদ্ধতির বিশদ বর্ণনা করে। এটি উইকিপিডিয়ার কোনো নীতিমালা বা নির্দেশাবলী নয়। |
Template {{convert}} is used to convert a value from one unit of measurement to another. This page provides an overview of the options available when using the template.
By default, the name of the input unit is shown, while the output is abbreviated using the unit's symbol. If wanted, names or symbols can be used, and the output precision can be specified.
{{convert|123.4|ft|m}}
→ ১২৩.৪ ফুট (৩৭.৬ মিটার){{convert|123.4|ft|m|abbr=on}}
→ ১২৩.৪ ফু (৩৭.৬ মি){{convert|123.4|ft|m|abbr=off}}
→ ১২৩.৪ ফুট (৩৭.৬ মিটার){{convert|123.4|ft|m|abbr=off|sp=us}}
→ ১২৩.৪ ফুট (৩৭.৬ মিটার){{convert|123.4|ft|m|0}}
→ ১২৩.৪ ফুট (৩৮ মিটার){{convert|123.4|ft|m|3}}
→ ১২৩.৪ ফুট (৩৭.৬১২ মিটার)To avoid overlinking, units are not normally linked, but they can be when needed.
{{convert|12300|m2|rood|abbr=off|lk=on}}
→ ১২,৩০০ বর্গমিটার (১২.২ rood){{convert|12300|m2|rood|abbr=off|lk=out}}
→ ১২,৩০০ বর্গমিটার (১২.২ rood)A convert can be used in an adjectival phrase, and user-specified text can be inserted.
{{convert|1500|ft|m|adj=on}}
→ ১,৫০০-ফুট (৪৬০-মিটার){{convert|1500|ft|m|adj=mid|-long}}
→ ১,৫০০-ফুট-long (৪৬০-মিটার)If no output unit is specified, a default is used.
{{convert|123.4|ft}}
→ ১২৩.৪ ফুট (৩৭.৬ মিটার){{convert|123.4|ft|abbr=on}}
→ ১২৩.৪ ফু (৩৭.৬ মি){{convert|1500|ft||adj=mid|-long}}
→ ১,৫০০-ফুট-long (৪৬০-মিটার)The last example used ||
to explicitly show that the output unit has been omitted. If that is not done, the result is an error, and holding the mouse over the error message shows that "-long
" is misinterpreted as the output unit.
{{convert|1500|ft|adj=mid|-long}}
→ ১,৫০০-ফুট ([রূপান্তর: অজানা একক])The input and outputs can be "flipped". When flipped, an option such as |lk=out
means "link the right-hand side".
{{convert|12300|m2|rood|abbr=off|lk=out}}
→ ১২,৩০০ বর্গমিটার (১২.২ rood){{convert|12300|m2|rood|abbr=off|lk=out|disp=flip}}
→ ১২.২ rood (১২,৩০০ বর্গমিটার){{convert|12300|m2|rood|abbr=off|lk=in|disp=flip}}
→ ১২.২ rood (১২,৩০০ বর্গমিটার)The input value can be spelled.
{{convert|5|mi|km|spell=in|0}}
→ পাঁচ মাইল (৮ কিলোমিটার){{convert|5|mi|km|spell=In|0}}
→ পাঁচ মাইল (৮ কিলোমিটার)Ranges of values are supported.
{{convert|3|-|6|ft}}
→ ৩–৬ ফুট (০.৯১–১.৮৩ মিটার){{convert|3|to|6|ft|abbr=off|sp=us}}
→ ৩ থেকে ৬ ফুট (০.৯১ থেকে ১.৮৩ মিটার)A range can use more than two values.
{{convert|100|x|120|x|210|mm|in}}
→ ১০০ বাই ১২০ বাই ২১০ মিলিমিটার (৩.৯ বাই ৪.৭ বাই ৮.৩ ইঞ্চি){{convert|100|xx|120|xx|210|mm|in}}
→ ১০০ × ১২০ × ২১০ মিলিমিটার (৩.৯ × ৪.৭ × ৮.৩ ইঞ্চি){{convert|100|x|120|x|210|mm|in|abbr=on}}
→ ১০০ মিমি × ১২০ মিমি × ২১০ মিমি (৩.৯ ইঞ্চি × ৪.৭ ইঞ্চি × ৮.৩ ইঞ্চি){{convert|100|*|120|*|210|mm|in|abbr=on}}
→ ১০০×১২০×২১০ মিমি (৩.৯×৪.৭×৮.৩ ইঞ্চি)Some input units consist of multiple components.
{{convert|5|ft|8|in}}
→ ৫ ফুট ৮ ইঞ্চি (১.৭৩ মিটার){{convert|11|st|3|lb|kg}}
→ ১১ স্টোন ৩ পাউন্ড (৭১ কিলোগ্রাম)An output can be a combination of several units.
{{convert|123|nmi|km mi}}
→ ১২৩ নটিক্যাল মাইল (২২৮ কিলোমিটার; ১৪২ মাইল){{convert|123|hPa|psi inHg|abbr=on|lk=on}}
→ ১২৩ হেPa (১.৭৮ psi; ৩.৬ inHg)Some outputs consist of multiple units.
{{convert|123.4|m|ydftin}}
→ ১২৩.৪ মিটার (১৩৪ গজ ২ ফুট ১০ ইঞ্চি){{convert|123.4|kg|stlb}}
→ ১২৩.৪ কিলোগ্রাম (১৯ স্টোন ৬ পাউন্ড)By default, the output value is rounded to adjust its precision to match that of the input. An input such as 1234 is interpreted as 1234 ± 0.5, while 1200 is interpreted as 1200 ± 50, and the output value is displayed accordingly, taking into account the scale factor used in the conversion.
If the default is not wanted, the precision of output values can be specified using:
|N
(where N
is a number) to specify the number of digits to be displayed after the decimal mark (round output to N decimal places).|-N
(where -N
is a negative number) to specify the number of digits before the decimal mark that should be replaced with zero (round output to nearest 10N).|sigfig=N
(where N
is a positive number) to specify the number of significant digits (round output to N significant figures).|disp=5
to round the output to the nearest multiple of 5.Examples:
{{convert|1234|ft|m}}
→ ১,২৩৪ ফুট (৩৭৬ মিটার){{convert|1234|ft|m|2}}
→ ১,২৩৪ ফুট (৩৭৬.১২ মিটার){{convert|1234|ft|m|-1}}
→ ১,২৩৪ ফুট (৩৮০ মিটার){{convert|1234|ft|m|disp=5}}
→ ১,২৩৪ ফুট (৩৭৫ মিটার)*{{convert|1234|ft|m|sigfig=2}}
→ ১,২৩৪ ফুট (৩৮০ মিটার){{convert|1234|ft|m|sigfig=4}}
→ ১,২৩৪ ফুট (৩৭৬.১ মিটার){{convert|1230|ft|m}}
→ ১,২৩০ ফুট (৩৭০ মিটার){{convert|1230|ft|m|0}}
→ ১,২৩০ ফুট (৩৭৫ মিটার){{convert|1230|ft|m|1}}
→ ১,২৩০ ফুট (৩৭৪.৯ মিটার){{convert|5670|sqft}}
→ ৫,৬৭০ বর্গফুট (৫২৭ বর্গমিটার){{convert|5670|sqft|-2}}
→ ৫,৬৭০ বর্গফুট (৫০০ বর্গমিটার)Use |sp=us
to specify that unit names should be displayed with US spelling:
{{convert|6|km}}
→ ৬ কিলোমিটার (৩.৭ মাইল){{convert|6|km|sp=us}}
→ ৬ কিলোমিটার (৩.৭ মাইল)Use |spell=in
to specify that the input value should be spelled in words, or |spell=In
(uppercase "I
") to start with an uppercase letter:
{{convert|5|mi|km|spell=in}}
→ পাঁচ মাইল (৮.০ কিলোমিটার){{convert|5|mi|km|spell=in|abbr=off|0}}
→ পাঁচ মাইল (৮ কিলোমিটার){{convert|5|mi|km|spell=In|0}}
→ পাঁচ মাইল (৮ কিলোমিটার){{convert|5|mi|km|spell=In|abbr=off|0}}
→ পাঁচ মাইল (৮ কিলোমিটার){{convert|2+1/4|mi|km|abbr=off|0|spell=In}}
→ দুই and a quarter মাইল (৪ কিলোমিটার){{convert|2+1/4|mi|km|abbr=off|0|spell=In|sp=us}}
→ দুই and a fourth মাইল (৪ কিলোমিটার)The input and output can be "flipped", as shown in these examples which assume that it is reasonable to round the output to the nearest integer:
{{convert|5|mi||0|disp=flip|spell=in}}
→ আট কিলোমিটার (৫ মাইল){{convert|5|mi||0|disp=flip|spell=In|abbr=off}}
→ আট কিলোমিটার (৫ মাইল)The "||
" provides an empty output unit to mean "use the default".
An input value can be specified as a fraction.
{{convert|1/2|in|mm|1}}
→ ১⁄২ ইঞ্চি (১২.৭ মিলিমিটার){{convert|1/2|in|mm|1|adj=on}}
→ ১⁄২-ইঞ্চি (১২.৭-মিলিমিটার){{convert|2+1/2|in|mm|1}}
→ ২+১⁄২ ইঞ্চি (৬৩.৫ মিলিমিটার){{convert|-2-1/4|in|mm|1}}
→ −২+১⁄৪ ইঞ্চি (−৫৭.২ মিলিমিটার){{convert|1/2|in|mm|1|spell=in}}
→ one-half ইঞ্চি (১২.৭ মিলিমিটার)If two slashes are used, a horizontal fraction bar is used.
{{convert|1//2|in|mm|1}}
→ ১/২ ইঞ্চি (১২.৭ মিলিমিটার){{convert|2+1//2|in|mm|1}}
→ ২+১/২ ইঞ্চি (৬৩.৫ মিলিমিটার)An output can be expressed with a fraction using |frac=N
where N is the denominator. For example, |frac=8
rounds the output to the nearest eighth.
{{convert|219|mm|in|abbr=on}}
→ ২১৯ মিমি (৮.৬ ইঞ্চি){{convert|219|mm|in|abbr=on|frac=2}}
→ ২১৯ মিমি (৮+১⁄২ ইঞ্চি){{convert|219|mm|in|abbr=on|frac=4}}
→ ২১৯ মিমি (৮+১⁄২ ইঞ্চি){{convert|219|mm|in|abbr=on|frac=8}}
→ ২১৯ মিমি (৮+৫⁄৮ ইঞ্চি){{convert|222|mm|in|abbr=on|frac=8}}
→ ২২২ মিমি (৮+৩⁄৪ ইঞ্চি)A fraction is applied to the output unit (if there is only one), or to non-SI units (if using a combination), except that if a precision is also specified, the fraction only applies to the hand unit.
{{convert|18.45|in|m|frac=2}}
→ ১৮.৪৫ ইঞ্চি (১⁄২ মিটার){{convert|18.45|in|ft in hand cm|frac=2}}
→ ১৮.৪৫ ইঞ্চি (১+১⁄২ ফুট; ১৮+১⁄২ ইঞ্চি; ৪.২+১⁄২ hand; ৪৬.৯ সেন্টিমিটার){{convert|18.45|in|ft in hand cm|frac=2|1}}
→ ১৮.৪৫ ইঞ্চি (১.৫ ফুট; ১৮.৫ ইঞ্চি; ৪.২+১⁄২ hand; ৪৬.৯ সেন্টিমিটার)The |disp=
("display") option may be used to "join" the input and output, as shown in the following examples.
Convert | Output | Description |
---|---|---|
{{convert|2.4|m|ft}} |
২.৪ মিটার (৭.৯ ফুট) | default |
{{convert|2.4|m|ft|disp=b}} |
২.৪ মিটার (৭.৯ ফুট) | brackets (same as default) |
{{convert|2.4|m|ft|disp=sqbr}} |
২.৪ মিটার [৭.৯ ফুট] | square brackets |
{{convert|2.4|m|ft|disp=or}} |
২.৪ মিটার অথবা ৭.৯ ফুট | or |
{{convert|2.4|m|ft|disp=comma}} |
২.৪ মিটার, ৭.৯ ফুট | comma |
{{convert|2.4|m|ft|disp=slash}} |
২.৪ মিটার (৭.৯ ফুট)* | slash |
{{convert|2.4|m|ft|disp=slash|abbr=on}} |
২.৪ মি (৭.৯ ফু)* | slash (not spaced) |
{{convert|2.4|m|ft|disp=br}} |
২.৪ মিটার ৭.৯ ফুট |
"<br />", line break |
A range of values can be specified, as shown in the following examples.
Convert | Output |
---|---|
{{convert|3|-|6|ft}} |
৩–৬ ফুট (০.৯১–১.৮৩ মিটার) |
{{convert|3|–|6|ft}} |
৩–৬ ফুট (০.৯১–১.৮৩ মিটার) |
{{convert|3|and|6|ft}} |
৩ এবং ৬ ফুট (০.৯১ এবং ১.৮৩ মিটার) |
{{convert|3|or|6|ft}} |
৩ অথবা ৬ ফুট (০.৯১ অথবা ১.৮৩ মিটার) |
{{convert|3|to|6|ft}} |
৩ থেকে ৬ ফুট (০.৯১ থেকে ১.৮৩ মিটার) |
{{convert|3|to(-)|6|ft}} |
৩ থেকে ৬ ফুট (০.৯১–১.৮৩ মিটার) |
{{convert|3|to about|6|ft}} |
৩ প্রায় ৬ ফুট (০.৯১ প্রায় ১.৮৩ মিটার) |
{{convert|3|+/-|6|ft}} |
৩ ± ৬ ফুট (০.৯১ ± ১.৮৩ মিটার) |
{{convert|3|±|6|ft}} |
৩ ± ৬ ফুট (০.৯১ ± ১.৮৩ মিটার) |
{{convert|3|by|6|ft}} |
৩ বাই ৬ ফুট (০.৯১ বাই ১.৮৩ মিটার) |
{{convert|3|x|6|ft}} |
৩ বাই ৬ ফুট (০.৯১ বাই ১.৮৩ মিটার) |
{{convert|3|xx|6|ft}} |
৩ × ৬ ফুট (০.৯১ × ১.৮৩ মিটার) |
{{convert|3|*|6|ft}} |
৩×৬ ফুট (০.৯১×১.৮৩ মিটার) |
{{convert|3|+|6|ft}} |
৩ + ৬ ফুট (০.৯১ + ১.৮৩ মিটার) |
{{convert|3|,|6|ft}} |
৩, ৬ ফুট (০.৯১, ১.৮৩ মিটার) |
{{convert|3|, and|6|ft}} |
৩, এবং ৬ ফুট (০.৯১, এবং ১.৮৩ মিটার) |
{{convert|3|, or|6|ft}} |
৩, অথবা ৬ ফুট (০.৯১, অথবা ১.৮৩ মিটার) |
The following ranges provide different output when units are abbreviated.
Convert | Output |
---|---|
{{convert|3|to(-)|6|ft|abbr=on}} |
৩ থেকে ৬ ফু (০.৯১–১.৮৩ মি) |
{{convert|3|x|6|ft|abbr=on}} |
৩ ফু × ৬ ফু (০.৯১ মি × ১.৮৩ মি) |
Some options provide text that is included in the output, as shown in the following examples.
Convert | Output | Description |
---|---|---|
{{convert|4|ft||adj=mid|-long}} |
৪-ফুট-long (১.২-মিটার) | adjectival with mid-text between input and output |
{{convert|40|acre||adj=pre|planted}} |
৪০ planted একর (১৬ hectare) | text before the input unit |
{{convert|4|m||disp=preunit|+ }} |
৪+ মিটার (১৩+ ফুট) | same text before the input and output units |
{{convert|4|m||disp=preunit|+ |or more }} |
৪+ মিটার (১৩ or more ফুট) | different text before the input and output units |
{{convert|20|impfloz||disp=x|, approximately }} |
২০ imperial fluid ounce, approximately ৫৭০ মিলিলিটার; ১৯ US fluid ounce | text before the output (replaces the join) |
{{convert|100|m||disp=x|/day (|/day)}} |
১০০ মিটার/day (৩৩০ ফুট/day) | text before and after the output (replaces the join) |
In each of the above examples, "||
" provides an empty output unit which causes the default output to be used. An output unit, possibly empty, must be specified to avoid the template interpreting the extra text as the output unit. For example, using {{convert|4|ft|adj=mid|-long}}
has the same effect as using {{convert|4|ft|-long|adj=mid}}
, namely that an error would occur because "-long
" would be used as the output unit. The following illustrates the error (hover the mouse over the error text to see that the problem is due to "-long
" ) and how it may be avoided.
{{convert|4|ft|adj=mid|-long}}
→ ৪-ফুট ([রূপান্তর: অজানা একক]){{convert|4|ft||adj=mid|-long}}
→ ৪-ফুট-long (১.২-মিটার){{convert|4|ft| |adj=mid|-long}}
→ ৪-ফুট-long (১.২-মিটার){{convert|4|ft|m|adj=mid|-long}}
→ ৪-ফুট-long (১.২-মিটার)The following examples show how to display only some of the result of a convert.
Convert | Output | Description |
---|---|---|
{{convert|2|cuyd}} |
২ cubic yard (১.৫ ঘনমিটার) | normal convert |
{{convert|2|cuyd|disp=unit}} |
cubic yard | input unit |
{{convert|2|cuyd|disp=unit|adj=on}} |
cubic-yard | input unit, adjectival (hyphenated) |
{{convert|2|cuyd|disp=unit2}} |
ঘনমিটার | output unit (symbol) |
{{convert|2|cuyd|disp=unit2|abbr=off}} |
ঘনমিটার | output unit (name) |
{{convert|2|cuyd|disp=unit2|abbr=off|sp=us}} |
ঘনমিটার | output unit (name, US spelling) |
{{convert|2|cuyd|abbr=values}} |
২ (১.৫) | input and output values |
{{convert|2|cuyd|disp=number}} |
১.৫ | output value |
{{convert|2|cuyd|disp=out}} |
১.৫ ঘনমিটার | output value and unit |
{{convert|9+5/8|cuyd|cuyd|disp=number|frac=8}} |
৯+৫⁄৮ | input value |
{{convert|9+5/8|cuyd|cuyd|abbr=off|disp=out|frac=8}} |
৯+৫⁄৮ cubic yard | input value and unit |
The following parameters are intended for use in tables.
Parameter | Description |
---|---|
|disp=table |
for a table cell with align="right"
|
|disp=tablecen |
for a table cell with align="center"
|
|sortable=on |
output a numeric hidden sort field for a sortable table |
The following shows the wikitext output by some example converts.
Convert | Resulting wikitext |
---|---|
{{convert|47.5|kg|lb}} |
47.5 kilograms (105 lb) |
{{convert|47.5|kg|lb|disp=table}} |
align="right"|47.5 |align="right"|105 |
{{convert|47.5|kg|lb|disp=tablecen}} |
align="center"|47.5 |align="center"|105 |
{{convert|47.5|kg|lb|sortable=on}} |
<span style="display:none">7001475000000000000</span>47.5 kilograms (105 lb) |
This wikitext:
{|class="wikitable" ! align=right, rowspan="2" | !colspan="2"| Length !colspan="2"| Weight |- style="vertical-align:bottom;" !metres !!ft in !!kg !!lb |- ! Lorem ipsum | {{convert|28.1|m|ftin|disp=table}} | {{convert|47.5|kg|lb|disp=table}} |- ! Dolor sit amet | {{convert|9.9|m|ftin|disp=table}} | {{convert|74.1|kg|lb|disp=table}} |- ! Consectetur | {{convert|38.2|m|ftin|disp=table}} | {{convert|31.5|kg|lb|disp=table}} |- ! Adipisicing elit | {{convert|18.7|m|ftin|disp=table}} | {{convert|52.7|kg|lb|disp=table}} |}
produces this table:
Length | Weight | |||
---|---|---|---|---|
metres | ft in | kg | lb | |
Lorem ipsum | ২৮.১ | ৯২ ফুট ২ ইঞ্চি | ৪৭.৫ | ১০৫ |
Dolor sit amet | ৯.৯ | ৩২ ফুট ৬ ইঞ্চি | ৭৪.১ | ১৬৩ |
Consectetur | ৩৮.২ | ১২৫ ফুট ৪ ইঞ্চি | ৩১.৫ | ৬৯ |
Adipisicing elit | ১৮.৭ | ৬১ ফুট ৪ ইঞ্চি | ৫২.৭ | ১১৬ |
This wikitext:
{|class="wikitable sortable" ! align=right, rowspan="2" | !colspan="2"| Length !colspan="2"| Weight |- style="vertical-align:bottom;" !metres !!ft in !!kg !!lb |- ! Lorem ipsum | {{convert|28.1|m|ftin|disp=table|sortable=on}} | {{convert|47.5|kg|lb|disp=table|sortable=on}} |- ! Dolor sit amet | {{convert|9.9|m|ftin|disp=table|sortable=on}} | {{convert|74.1|kg|lb|disp=table|sortable=on}} |- ! Consectetur | {{convert|38.2|m|ftin|disp=table|sortable=on}} | {{convert|31.5|kg|lb|disp=table|sortable=on}} |- ! Adipisicing elit | {{convert|18.7|m|ftin|disp=table|sortable=on}} | {{convert|52.7|kg|lb|disp=table|sortable=on}} |}
produces this table:
Length | Weight | |||
---|---|---|---|---|
metres | ft in | kg | lb | |
Lorem ipsum | ২৮.১ | ৯২ ফুট ২ ইঞ্চি | ৪৭.৫ | ১০৫ |
Dolor sit amet | ৯.৯ | ৩২ ফুট ৬ ইঞ্চি | ৭৪.১ | ১৬৩ |
Consectetur | ৩৮.২ | ১২৫ ফুট ৪ ইঞ্চি | ৩১.৫ | ৬৯ |
Adipisicing elit | ১৮.৭ | ৬১ ফুট ৪ ইঞ্চি | ৫২.৭ | ১১৬ |
The following options are available.
Option | Description |
---|---|
|abbr=comma |
No comma in input or output numbers. |
|abbr=in |
Use symbol for LHS unit. |
|abbr=off |
Use name for all units. |
|abbr=on |
Use symbol for all units. |
|abbr=out |
Use symbol for RHS unit (default). |
|abbr=values |
Show only input and output numbers, not units. |
|abbr=~ |
Show input unit symbol as well as name. |
|adj=1 |
Unit name is singular when value is 1 or less, but not zero. |
|adj=flip |
Reverse order of input/output. |
|adj=j |
Join value and unit name using " " instead of a space. |
|adj=mid |
Same as adj=on with user-specified text after input unit.
|
|adj=nocomma |
No comma in input or output numbers. |
|adj=on |
Unit name is singular and hyphenated. |
|adj=pre |
User-specified text before input unit. |
|adj=ri1 |
Round input with precision 1. |
|adj=ri2 |
Round input with precision 2. |
|adj=ri3 |
Round input with precision 3. |
|disp=/ |
Join input/output using "/". |
|disp=2 |
Display only output value and symbol/name. |
|disp=5 |
Round output value to nearest 5. |
|disp=b |
Join input/output using "(...)". |
|disp=br |
Join input/output using "<br/>". |
|disp=comma |
Join input/output using ",". |
|disp=flip |
Reverse order of input/output. |
|disp=flip5 |
Same as disp=flip with disp=5 .
|
|disp=nocomma |
No comma in input or output numbers. |
|disp=number |
Display output value only. |
|disp=or |
Join input/output using "or". |
|disp=out |
Same as disp=2 .
|
|disp=output number only |
Same as disp=number .
|
|disp=output only |
Same as disp=2 .
|
|disp=preunit |
User-specified text before input and output units. |
|disp=s |
Same as disp=/ .
|
|disp=slash |
Same as disp=/ .
|
|disp=sqbr |
Join input/output using "[...]". |
|disp=table |
Output is suitable for a table cell with align="right". |
|disp=tablecen |
Output is suitable for a table cell with align="center". |
|disp=u2 |
Display output symbol/name (not input; not output value). |
|disp=unit |
Display input symbol/name (not output; not input value). |
|disp=unit2 |
Same as disp=u2 .
|
|disp=x |
Join input/output using user-specified text. |
|comma=5 |
Only use comma grouping if 5 or more digits. |
|comma=gaps |
Use gaps, not comma, to separate groups of digits. |
|comma=gaps5 |
Use gaps, but only if 5 or more digits. |
|debug=yes |
Make the normally hidden sort key visible. |
|lk=in |
Link LHS unit name or symbol. |
|lk=on |
Link all unit names or symbols (but not twice for the same unit). |
|lk=out |
Link RHS unit name or symbol. |
|sigfig=N |
Round output value to N significant figures (N is a positive integer). |
|sortable=on |
Output numeric hidden sort field for use in a sortable table. |
|sp=us |
Use U.S. spelling (like "meter" instead of default "metre"). |
|spell=in |
Spell input value in words. |
|spell=In |
Spell input value in words with first letter uppercase. |
Examples of number grouping:
{{convert|1234|m|ft}}
→ ১,২৩৪ মিটার (৪,০৪৯ ফুট){{convert|1234|m|ft|comma=5}}
→ ১২৩৪ মিটার (৪০৪৯ ফুট){{convert|12345|m|ft|comma=5}}
→ ১২,৩৪৫ মিটার (৪০,৫০২ ফুট){{convert|1234|m|ft|comma=gaps}}
→ ১২৩৪ মিটার (৪০৪৯ ফুট){{convert|1234|m|ft|comma=gaps5}}
→ ১,২৩৪ মিটার (৪,০৪৯ ফুট)*{{convert|123,456,789|m|ft|comma=gaps5}}
→ ১২,৩৪,৫৬,৭৮৯ মিটার (৪০,৫০,৪১,৯৫৯ ফুট)*Examples of spelling input values:
{{convert|10|mi|km|spell=in}}
→ দশ মাইল (১৬ কিলোমিটার){{convert|10|mi|km|spell=In}}
→ দশ মাইল (১৬ কিলোমিটার){{convert|1/3|mi|km|adj=on|spell=in}}
→ one-third-মাইল (০.৫৪-কিলোমিটার)Before December 2013, {{convert}} was implemented by a series of templates, not a module. Following are some differences between the new and old convert implementations.
{{subst:convert|...}}
works with the module.{{convert|123|m|m}}
.disp=flip
, should work with all units.e6USgal
are not predefined. With some exceptions, all units accept prefixes e3, e6, e9, e12, e15.0
to mean "use the default unit", as in {{convert|4|ft||adj=mid|-long}}
(it is also possible to use {{convert|4|ft|0|adj=mid|-long}}
, but that sets the output precision to zero).{{convert/3}}
and {{convert/4}}
is handled by the module, except that the module does not support arbitrary text to separate items in a range. Furthermore, the predefined separator words such as "by" and "to" behave in exactly the same manner as they do for standard converts, so a conversion like {{convert/3|2|x|4|x|6|m|ft}}
would need to use the new *
separator rather than x
to produce exactly the same output with the module.This is a list of features that the module may be expected to support, but which will not work.
Composite units cannot be used in a range:
{{convert|2|ft|6|in|to|3|ft|9|in}}
→ ২ ফুট ৬ ইঞ্চি ([রূপান্তর: অজানা একক])*If an expression is wanted, it has to use {{#expr:...}}
:
{{convert|3*12|ft|mm}}
→ ৩×১২ ফুট (৯১০×৩,৬৬০ মিলিমিটার){{convert|{{#expr:3*12}}|ft|mm}}
→ ৩৬ ফুট (১১,০০০ মিলিমিটার)