Andoza:Convert/doc

Vikipediya, ochiq ensiklopediya

Misollar[manbasini tahrirlash]

{{convert|2|km|mi}} → 2 kilometr (1.2 mi)
{{convert|7|mi|km}} → 7 milya (11 km)
{{convert|2|km|mi|2|abbr=on}} → 2 km (1.24 mi)
{{convert|7|mi|km|2|abbr=on}} → 7 mi (11.27 km)
{{convert|2|to|5|km|mi}} → 2 to 5 kilometr (1.2 to 3.1 mi)
{{convert|2|-|5|km|mi}} → 2–5 kilometr (1.2–3.1 mi)
{{convert|2|-|5|km|mi|2|abbr=on}} → 2–5 km (1.24–3.11 mi)
{{convert|2|and|5|km|mi|sigfig=3|abbr=off}} → 2 and 5 kilometr (1.24 and 3.11 milya)


Andoza parametrlari[manbasini tahrirlash]

{{Convert}} andozasi uchun andoza parametrlari

Converts measurements to other units.

Andoza parametrlari

This template prefers inline formatting of parameters.

ParametrTavsifTuriStatus
Value1

The value to convert.

Sonrequired
From unit2

The unit for the provided value.

Taklif etilgan qiymatlar
km2 m2 cm2 mm2 ha sqmi acre sqyd sqft sqin km m cm mm mi yd ft in kg g mg lb oz m/s km/h mph K C F m3 cm3 mm3 L mL cuft cuin U.S.gal U.S.oz psi mpgU.S. $/lb $/kg
Namuna
km
Stringrequired
To units3

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

Taklif etilgan qiymatlar
km2 m2 cm2 mm2 ha sqmi acre sqyd sqft sqin km m cm mm mi yd ft in kg g mg lb oz m/s km/h mph K C F m3 cm3 mm3 L mL cuft cuin U.S.gal U.S.oz psi mpgU.S. $/lb $/kg
Namuna
mi nmi
Stringsuggested
Precision or suffix4

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

Sonixtiyoriy
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. For more fine-grained control over which units to link, use the template multiple times.

Taklif etilgan qiymatlar
in out on off
Sukut boʻyicha
off
Namuna
on
Stringixtiyoriy
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).

Taklif etilgan qiymatlar
in off none on out unit values ~
Sukut boʻyicha
out
Namuna
on, unit, in, out, off
Stringsuggested
Spellingsp

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

Namuna
us
Stringixtiyoriy
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.

Taklif etilgan qiymatlar
mid on pre ri0 ri1 ri2 ri3 off
Sukut boʻyicha
off
Namuna
on
Unbalanced wikitextixtiyoriy
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.

Taklif etilgan qiymatlar
b sqbr br comma or number output number only out output only preunit table tablecen unit unit2 x
Namuna
b
Stringixtiyoriy
Orderingorder

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

Taklif etilgan qiymatlar
flip out
Namuna
flip
Stringixtiyoriy
Significant figuressigfig

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

Sonixtiyoriy
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.

Sonixtiyoriy
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').

Sukut boʻyicha
on
Namuna
off
Booleanixtiyoriy
Sort keysortable

“on” generates a hidden sort key

Namuna
on
Booleanixtiyoriy
Spell numbers?spell

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

Taklif etilgan qiymatlar
in In on On
Namuna
'in', 'In', 'on', or 'On'
Stringixtiyoriy
Singular?sing

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

Namuna
yes
Booleandeprecated
Fraction?frac

fraction as rounding unit

Sonixtiyoriy
Currency symbol$

sets currency symbol in both units

Namuna
$=€ will show " €10 per mile (€6.2/km)"
Stringixtiyoriy
Mach altitude (ft)altitude_ft

Mach (speed) depends on altitide

Taklif etilgan qiymatlar
10000
Sonixtiyoriy
Mach altitude (m)altitude_m

Mach (speed) depends on altitude

Sonixtiyoriy
WD propertyinput

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

Namuna
{{convert|input=P2046}} (P2046=area)
Stringixtiyoriy