Mô đun:Convert/doc/conversion data

Conversions
The following tables define the standard units that are available for a conversion.

Absorbed radiation dose

Acceleration

Area

Area per unit area

Cent

Charge

Chemical amount

CO2 per unit volume

Concentration

Density

Energy

Energy per chemical amount

Energy per unit length

Energy per unit mass

Energy per unit volume

Equivalent radiation dose

Exhaust emission

Flow

Force

Fuel efficiency

Fracture gradient

Gradient

Length

Linear density

Magnetic field strength

Magnetizing field

Mass

Mass per unit power

Mass per unit time

Molar rate

Per unit area

Per unit volume

Power

Power per unit mass

Pressure

Radioactivity

Speed

Temperature

Temperature change

Time

Torque

Transportation

Volume

Volume per unit area

Volume per unit length

Input multiples
The following tables define composite input units consisting of multiple unit codes. A composite must consist of two unit codes where the second is a subdivision of the first. In addition, a default output must be specified. Optionally, an alternate unit code or name can be specified. An alternate unit must have the same scale as that of the subdivision, but may have a different name or symbol.

If both an alternate unit and name are provided, the unit will be used when the input consists of only two components, and the alternate name will be used with three or more (generally, the alternate name would be shorter than the unit's standard name or symbol, and that may be desirable when three or more units make up an input composite).

If an alternate name is used, it replaces the unit's symbol and name and plural name. In other words, the same alternate name applies regardless of whether the unit is abbreviated, and regardless of the number of units.

If the unit yd allows ft as a subdivision, and ft allows in, then the input to a conversion can use all three units (for example, &123;{convert|1|yd|2|ft|3|in}} which specifies the input as 1&nbsp;yard, 2&nbsp;feet, 3&nbsp;inches). There is no limit to the number of units that can be used in an input multiple.

To simplify processing by the script which extracts data from this wikitext, a unit code is required in the first column; that unit code is not used. This section is read after all units and combinations are defined, so the unit codes may refer to items defined anywhere on this page.

Area

Length

Mass

Output multiples
The following tables define the "multiple" unit codes that can be used for an output unit. Using a multiple code for the output means that the conversion result contains multiple components (for example, a length expressed in yards, feet, inches).

Length

Mass

Combinations
The following tables list predefined "combination" unit codes that can be used for an output unit. Using a combination code for the output means that the input value is converted to more than one unit. In addition to the combinations listed here, units may be combined by separating unit codes with a space or plus character.

Force

Fuel efficiency

Mass

Pressure

Volume

Defaults
The following tables define default outputs for unit codes that use an SI prefix or an engineering notation prefix, where the default output is different from that of the base unit.

Area

Energy

Flow

Force

Length

Mass

Radioactivity

Time

Temperature

Volume

Links
The following tables define links for unit codes that use an SI prefix, where the linked article is different from that of the base unit.

Area

Energy

Length

Mass

Power

Time

Volume

Automatic per units
The following table defines equivalent unit types for some of the types that can be generated automatically for unit codes of the form x/y (x per y). For example, the unit code kg/hl is not defined, so if it were used, it would be regarded as kilograms per hectolitre with unit type mass/volume; the following table would translate that to density so the unit could be converted with other density units. If "Density" is specified in the Link column, the unit name or symbol would be linked to Density if is used.

In addition, a scale multiplier can be specified; that allows mass/area units to be converted to pressure units on the assumption that the mass refers to the force due to the "weight" of an object.

Overrides
The following tables define "override" unit codes which conflict with another unit when it is combined with one of the SI prefixes. The script which processes this page rejects unit codes that duplicate a known entry, however, that checking is not performed for the unit codes listed here. The Comment field documents the conflict, but is otherwise ignored.

Area

Mass

Pressure

en:Module:Convert/documentation/conversion data