Difference between revisions of "Automatic transmission"

From MoparWiki
Jump to: navigation, search
Line 144: Line 144:
  
 
;First (1 or L [Low]): This mode locks the transmission in first gear only. In older vehicles, it will not change to any other gear range. Some vehicles will automatically shift up out of first gear in this mode if a certain RPM range is reached in order to prevent engine damage. This, like second, can be used during the winter season, for towing, or for downhill driving to increase the engine braking effect.  The "Austin [[Mini]]" automatic transmission is different in this respect - This mode locks the transmission in first gear, but the gearbox has a freewheel on the overrun.  Closing the throttle after acceleration results in the vehicle continuing at the same speed and only slowing down due to friction and wind resistance.  During this time, the engine RPM will drop back to idle until the throttle is pressed again.  What this means is that in "First", engine braking is not available and "2" is the lowest gear that should be used whilst descending hills. The Mini's (and the 1100/1300's) 4-speed Automatic transmission was unusual in that it allowed manual selection of all forward gears, enabling the driver to "take off" from a standstill in any of the four ratios. It also provided no "Park" position.
 
;First (1 or L [Low]): This mode locks the transmission in first gear only. In older vehicles, it will not change to any other gear range. Some vehicles will automatically shift up out of first gear in this mode if a certain RPM range is reached in order to prevent engine damage. This, like second, can be used during the winter season, for towing, or for downhill driving to increase the engine braking effect.  The "Austin [[Mini]]" automatic transmission is different in this respect - This mode locks the transmission in first gear, but the gearbox has a freewheel on the overrun.  Closing the throttle after acceleration results in the vehicle continuing at the same speed and only slowing down due to friction and wind resistance.  During this time, the engine RPM will drop back to idle until the throttle is pressed again.  What this means is that in "First", engine braking is not available and "2" is the lowest gear that should be used whilst descending hills. The Mini's (and the 1100/1300's) 4-speed Automatic transmission was unusual in that it allowed manual selection of all forward gears, enabling the driver to "take off" from a standstill in any of the four ratios. It also provided no "Park" position.
 +
 +
===Manual controls===
 +
Some transmissions have a mode in which the driver has full control of ratios change (either by moving the selector, or through the use of buttons or paddles), completely overriding the automated function of the hydraulic controller. Such control is particularly useful in cornering, to avoid unwanted upshifts or downshifts that could compromise the vehicle's balance or traction. "Manumatic" shifters, first popularized by [[Porsche]] in the 1990s under the [[trade name]] [[Tiptronic]], have become a popular option on [[sports car]]s and other performance vehicles. With the near-universal prevalence of electronically controlled transmissions, they are comparatively simple and inexpensive, requiring only software changes, and the provision of the actual manual controls for the driver. The amount of true manual control provided is highly variable: some systems will override the driver's selections under certain conditions, generally in the interest of preventing engine damage. Since these gearboxes also have a throttle kickdown switch, it is impossible to fully exploit the engine power at low to medium engine speeds.
 +
  
  

Revision as of 23:27, 23 September 2017




An automatic transmission, also called auto, self-shifting transmission, n-speed automatic (where n is its number of forward gear ratios), or AT, is a type of motor vehicle transmission that can automatically change gear ratios as the vehicle moves, freeing the driver from having to shift gears manually. Like other transmission systems on vehicles, it allows an internal combustion engine, best suited to run at a relatively high rotational speed, to provide a range of speed and torque outputs necessary for vehicular travel. The number of forward gear ratios is often expressed for manual transmissions as well (e.g., 6-speed manual).

The most popular form found in automobiles is the hydraulic automatic transmission. Similar but larger devices are also used for heavy-duty commercial and industrial vehicles and equipment. This system uses a fluid coupling in place of a friction clutch, and accomplishes gear changes by hydraulically locking and unlocking a system of planetary gears. These systems have a defined set of gear ranges, often with a parking pawl that locks the output shaft of the transmission to keep the vehicle from rolling either forward or backward. Some machines with limited speed ranges or fixed engine speeds, such as some forklifts and lawn mowers, only use a torque converter to provide a variable gearing of the engine to the wheels.

Besides the traditional hydraulic automatic transmissions, there are also other types of automated transmissions, such as a continuously variable transmission (CVT) and semi-automatic transmissions, that free the driver from having to shift gears manually, by using the transmission's computer to change gear, if for example the driver were redlining the engine. Despite superficial similarity to other transmissions, traditional automatic transmissions differ significantly in internal operation and driver's feel from semi-automatics and CVTs. In contrast to conventional automatic transmissions, a CVT uses a belt or other torque transmission scheme to allow an "infinite" number of gear ratios instead of a fixed number of gear ratios. A semi-automatic retains a clutch like a manual transmission, but controls the clutch through electrohydraulic means. The ability to shift gears manually, often via paddle shifters, can also be found on certain automated transmissions (manumatics such as Tiptronic), semi-automatics (BMW SMG, VW Group DSG), and CVTs (such as Lineartronic).

The obvious advantage of an automatic transmission to the driver is the lack of a clutch pedal and manual shift pattern in normal driving. This allows the driver to operate the car with as few as two limbs (possibly using assist devices to position controls within reach of usable limbs), allowing amputees and other disabled individuals to drive. The lack of manual shifting also reduces the attention and workload required inside the cabin, such as monitoring the tachometer and taking a hand off the wheel to move the shifter, allowing the driver to ideally keep both hands on the wheel at all times and to focus more on the road. Control of the car at low speeds is often easier with an automatic than a manual, due to a side effect of the clutchless fluid-coupling design called "creep" that causes the car to want to move while in a driving gear, even at idle. The primary disadvantage of the most popular hydraulic designs is reduced mechanical efficiency of the power transfer between engine and drivetrain, due to the fluid coupling connecting the engine to the gearbox. This can result in lower power/torque ratings for automatics compared to manuals with the same engine specs, as well as reduced fuel efficiency in city driving as the engine must maintain idle against the resistance of the fluid coupling. Advances in transmission and coupler design have narrowed this gap considerably, but clutch-based transmissions (manual or semi-automatic) are still preferred in sport-tuned trim levels of various production cars, as well as in many auto racing leagues.

The automatic transmission was invented in 1921 by Alfred Horner Munro of Regina, Saskatchewan, Canada, and patented under Canadian patent CA 235757 in 1923. (Munro obtained UK patent GB215669 215,669 for his invention in 1924 and US patent 1,613,525 on 4 January 1927). Being a steam engineer, Munro designed his device to use compressed air rather than hydraulic fluid, and so it lacked power and never found commercial application. The first automatic transmission using hydraulic fluid may have been developed in 1932 by two Brazilian engineers, José Braz Araripe and Fernando Lehly Lemos; subsequently the prototype and plans were sold to General Motors who introduced it in the 1940 Oldsmobile as the "Hydra-Matic" transmission. They were incorporated into GM-built tanks during World War II and, after the war, GM marketed them as being "battle-tested."[citation needed] However, a Wall Street Journal article credits ZF Friedrichshafen with the invention, occurring shortly after World War I. ZF's origins were in manufacturing gears for airship engines beginning in 1915; the company was founded by Ferdinand von Zeppelin.

Contents

History

Modern automatic transmissions can trace their origins to an early "horseless carriage" gearbox that was developed in 1904 by the Sturtevant brothers of Boston, Massachusetts. This unit had two forward speeds, the ratio change being brought about by flyweights that were driven by the engine. At higher engine speeds, high gear was engaged. As the vehicle slowed down and engine RPM decreased, the gearbox would shift back to low. Unfortunately, the metallurgy of the time wasn't up to the task, and owing to the abruptness of the gear change, the transmission would often fail without warning.

The next significant phase in the automatic transmission's development occurred in 1908 with the introduction of Henry Ford's remarkable Model T. The Model T, in addition to being cheap and reliable by the standards of the day, featured a simple, two speed plus reverse planetary transmission whose operation was manually controlled by the driver using pedals. The pedals actuated the transmission's friction elements (bands and clutches) to select the desired gear. In some respects, this type of transmission was less demanding of the driver's skills than the contemporary, unsynchronized manual transmission, but still required that the driver know when to make a shift, as well as how to get the car off to a smooth start.

The first automatic transmission using hydraulic fluid was developed in 1932 by two Brazilian engineers, José Braz Araripe and Fernando Lehly Lemos;[citation needed] Later, the prototype and the project were sold to General Motors, who introduced the technology in the 1940 Oldsmobile model as a "Hydra-Matic" transmission. However, an article published by the Wall Street Journal credits the German auto parts company ZF Friedrichshafen for the invention, which would have occurred shortly after World War I.

In 1934, both REO and General Motors developed semi-automatic transmissions that were less difficult to operate than a fully manual unit. These designs, however, continued to use a clutch to engage the engine with the transmission. The General Motors unit, dubbed the "Automatic Safety Transmission," was notable in that it employed a power-shifting planetary gearbox that was hydraulically controlled and was sensitive to road speed, anticipating future development.

Parallel to the development in the 1930s of an automatically shifting gearbox was Chrysler's work on adapting the fluid coupling to automotive use. Invented early in the 20th century, the fluid coupling was the answer to the question of how to avoid stalling the engine when the vehicle was stopped with the transmission in gear. Chrysler itself never used the fluid coupling with any of its automatic transmissions, but did use it in conjunction with a hybrid manual transmission called "Fluid Drive" (the similar Hy-Drive used a torque converter). These developments in automatic gearbox and fluid coupling technology eventually culminated in the introduction in 1939 of the General Motors Hydra-Matic, the world's first mass-produced automatic transmission.

Available as an option on 1940 Oldsmobiles and later Cadillacs, the Hydra-Matic combined a fluid coupling with three hydraulically controlled planetary gearsets to produce four forward speeds plus reverse. The transmission was sensitive to engine throttle position and road speed, producing fully automatic up- and down-shifting that varied according to operating conditions.

The Hydra-Matic was subsequently adopted by Cadillac and Pontiac, and was sold to various other automakers, including Bentley, Hudson, Kaiser, Nash, and Rolls-Royce. It also found use during World War II in some military vehicles. From 1950 to 1954, Lincoln cars were also available with the Hydra-Matic. Mercedes-Benz subsequently devised a four-speed fluid coupling transmission that was similar in principle to the Hydra-Matic, but of a different design.

Interestingly, the original Hydra-Matic incorporated two features which are widely emulated in today's transmissions. The Hydra-Matic's ratio spread through the four gears produced excellent "step-off" and acceleration in first, good spacing of intermediate gears, and the effect of an overdrive in fourth, by virtue of the low numerical rear axle ratio used in the vehicles of the time. In addition, in third and fourth gear, the fluid coupling only handled a portion of the engine's torque, resulting in a high degree of efficiency. In this respect, the transmission's behavior was similar to modern units incorporating a lock-up torque converter.

In 1956, GM introduced the "Jetaway" Hydra-Matic, which was different in design than the older model. Addressing the issue of shift quality, which was an ongoing problem with the original Hydra-Matic, the new transmission utilized two fluid couplings, the primary one that linked the transmission to the engine, and a secondary one that replaced the clutch assembly that controlled the forward gearset in the original. The result was much smoother shifting, especially from first to second gear, but with a loss in efficiency and an increase in complexity. Another innovation for this new style Hydra-Matic was the appearance of a Park position on the selector. The original Hydra-Matic, which continued in production until the mid-1960s, still used the reverse position for parking pawl engagement.

The first torque converter automatic, Buick's Dynaflow, was introduced for the 1948 model year. It was followed by Packard's Ultramatic in mid-1949 and Chevrolet's Powerglide for the 1950 model year. Each of these transmissions had only two forward speeds, relying on the converter for additional torque multiplication. In the early 1950s, BorgWarner developed a series of three-speed torque converter automatics for American Motors, Ford Motor Company, Studebaker, and several other manufacturers in the US and other countries. Chrysler was late in developing its own true automatic, introducing the two-speed torque converter PowerFlite in 1953, and the three-speed TorqueFlite in 1956. The latter was the first to utilize the Simpson compound planetary gearset.

General Motors produced multiple-turbine torque converters from 1954 to 1961. These included the Twin-Turbine Dynaflow and the triple-turbine Turboglide transmissions. The shifting took place in the torque converter, rather than through pressure valves and changes in planetary gear connections. Each turbine was connected to the drive shaft through a different gear train. These phased from one ratio to another according to demand, rather than shifting. The Turboglide actually had two speed ratios in reverse, with one of the turbines rotating backwards.

By the late 1960s, most of the fluid-coupling four-speed and two-speed transmissions had disappeared in favor of three-speed units with torque converters. Also around this time, whale oil was removed from automatic transmission fluid. By the early 1980s, these were being supplemented and eventually replaced by overdrive-equipped transmissions providing four or more forward speeds. Many transmissions also adopted the lock-up torque converter (a mechanical clutch locking the torque converter pump and turbine together to eliminate slip at cruising speed) to improve fuel economy.

As computerized engine control units (ECUs) became more capable, much of the logic built into the transmission's valve body was offloaded to the ECU. Some manufacturers use a separate computer dedicated to the transmission called a transmission control unit (TCU), also known as the transmission control module (TCM), which shares information with the engine management computer. In this case, solenoids turned on and off by the computer control shift patterns and gear ratios, rather than the spring-loaded valves in the valve body. This allows for more precise control of shift points, shift quality, lower shift times, and (on some newer cars) semi-automatic control, where the driver tells the computer when to shift. The result is an impressive combination of efficiency and smoothness. Some computers even identify the driver's style and adapt to best suit it.

ZF Friedrichshafen and BMW were responsible for introducing the first six-speed (the ZF 6HP26 in the 2002 BMW E65 7-Series). Mercedes-Benz's 7G-Tronic was the first seven-speed in 2003, with Toyota introducing an eight-speed in 2007 on the Lexus LS 460. Derived from the 7G-Tronic, Mercedes-Benz unveiled a semi-automatic transmission with the torque converter replaced with a wet multi clutch called the AMG SPEEDSHIFT MCT. The 2014 Jeep Cherokee has the world's first nine-speed automatic transmission for a passenger vehicle to market.

Hydraulic automatic transmissions

The predominant form of automatic transmission is hydraulic machinery|hydraulically operated; using a fluid coupling or torque converter, and a set of epicyclic gearing|planetary gearsets to provide a range of gear ratios.


Hydraulic automatic transmissions consist of three major components:

Torque converter

A type of fluid coupling, hydraulically connecting the engine to the transmission. This takes the place of a friction clutch in a manual transmission. It transmits and decouples the engine power to the planetary gears, allowing the vehicle to come to stop with the engine still running without Stall (engine)|stalling.

A torque converter differs from a fluid coupling, in that it provides a variable amount of torque multiplication at low engine speeds, increasing breakaway acceleration. A fluid coupling works well when both the impeller and turbine are rotating at similar speeds, but it is very inefficient at initial acceleration, where rotational speeds are very different. This torque multiplication is accomplished with a third member in the coupling assembly known as the stator, which acts to modify the fluid flow depending on the relative rotational speeds of the impeller and turbine. The stator itself does not rotate, but its vanes are so shaped that when the impeller (which is driven by the engine) is rotating at a high speed and the turbine (which receives the transmitted power) is spinning at a low speed, the fluid flow hits the vanes of the turbine in a way that multiplies the torque being applied. This causes the turbine to begin spinning faster as the vehicle accelerates (ideally), and as the relative rotational speeds equalize, the torque multiplication diminishes. Once the impeller and turbine are rotating within 10% of each other's speed, the stator ceases to function and the torque converter acts as a simple fluid coupling.

Planetary gears train

Consisting of planetary gear sets as well as clutches and bands. These are the mechanical systems that provide the various gear ratios, altering the speed of rotation of the output shaft depending on which planetary gears are locked.

To effect gear changes, one of two types of clutches or bands are used to hold a particular member of the planetary gearset motionless, while allowing another member to rotate, thereby transmitting torque and producing gear reductions or overdrive ratios. These clutches are actuated by the valve body (see below), their sequence controlled by the transmission's internal programming. Principally, a type of device known as a sprag or roller clutch is used for routine upshifts/downshifts. Operating much as a ratchet, it transmits torque only in one direction, free-wheeling or "overrunning" in the other. The advantage of this type of clutch is that it eliminates the sensitivity of timing a simultaneous clutch release/apply on two planetaries, simply "taking up" the drivetrain load when actuated, and releasing automatically when the next gear's sprag clutch assumes the torque transfer. The bands come into play for manually selected gears, such as low range or reverse, and operate on the planetary drum's circumference. Bands are not applied when drive/overdrive range is selected, the torque being transmitted by the sprag clutches instead. Bands are used for braking; the GM Turbo-Hydramatics incorporated this.

Hydraulic controls

Uses special transmission fluid sent under pressure by an oil pump to control various clutches and bands modifying the speed of the output depending on the vehicle's running condition.

Not to be confused with the impeller inside the torque converter, the pump is typically a gear pump mounted between the torque converter and the planetary gearset. It draws transmission fluid from a sump and pressurizes it, which is needed for transmission components to operate. The input for the pump is connected to the torque converter housing, which in turn is bolted to the engine's flexplate, so the pump provides pressure whenever the engine is running and there is enough transmission fluid, but the disadvantage is that when the engine is not running, no oil pressure is available to operate the main components of the transmission, and is thus impossible to push-start a vehicle equipped with an automatic transmission. Early automatic transmissions also had a rear pump for towing purposes, ensuring the lubrication of the rear-end components.

The governor is connected to the output shaft and regulates the hydraulic pressure depending on the vehicle speed. The engine load is monitored either by a throttle cable or a vacuum modulator. The valve body is the hydraulic control center that receives pressurized fluid from the main pump operated by the fluid coupling/torque converter. The pressure coming from this pump is regulated and used to run a network of spring-loaded valves, check balls and servo pistons. The valves use the pump pressure and the pressure from a centrifugal governor on the output side (as well as hydraulic signals from the range selector valves and the throttle valve or modulator) to control which ratio is selected on the gearset; as the vehicle and engine change speed, the difference between the pressures changes, causing different sets of valves to open and close. The hydraulic pressure controlled by these valves drives the various clutch and brake band actuators, thereby controlling the operation of the planetary gearset to select the optimum gear ratio for the current operating conditions. However, in many modern automatic transmissions, the valves are controlled by electro-mechanical servos which are controlled by the electronic engine control unit (ECU) or a separate transmission control unit.

The hydraulic & lubricating oil, called automatic transmission fluid (ATF), provides lubrication, corrosion prevention, and a hydraulic medium to convey mechanical power (for the operation of the transmission). Primarily made from refined petroleum, and processed to provide properties that promote smooth power transmission and increase service life, the ATF is one of the few parts of the automatic transmission that needs routine service as the vehicle ages.

The multitude of parts, along with the complex design of the valve body, originally made hydraulic automatic transmissions much more complicated (and expensive) to build and repair than manual transmissions. In most cars (except US family, luxury, sport-utility vehicle, and minivan models) they have usually been extra-cost options for this reason. Mass manufacturing and decades of improvement have reduced this cost gap.

In some modern cars, computers use sensors on the engine to detect throttle position, vehicle speed, engine speed, engine load, etc. to control the exact shift point. The computer transmits the information via solenoids that redirect the fluid the appropriate clutch or servo to control shifting.

Continuously variable transmissions

Template:Main article

A fundamentally different type of automatic transmission is the continuously variable transmission, or CVT, which can smoothly and steplessly alter its gear ratio by varying the diameter of a pair of belt or chain-linked pulleys, wheels or cones. Some continuously variable transmissions use a hydrostatic drive — consisting of a variable displacement pump and a hydraulic motor — to transmit power without gears. Some early forms, such as the Hall system (which dates back to 1896<ref>Hydraulic Variable Transmission Mechanism, John Willam Hall, GB Patents, No 7479(1896), No 22406(1901), No 442(1903) and No 4148(1907). CVT designs are usually as fuel efficient as manual transmissions in city driving, but early designs lose efficiency as engine speed increases.

A slightly different approach to CVT is the concept of toroidal CVT or Continuously variable transmission (IVT). These concepts provide zero and reverse gear ratios.

E-CVT

Some hybrid vehicles, notably those of Toyota, Lexus and Ford Motor Company, have an electronically controlled CVT (E-CVT). In this system, the transmission has fixed gears, but the ratio of wheel-speed to engine-speed can be continuously varied by controlling the speed of the third input to a differential using motor-generators.

Dual-clutch transmissions

Template:Main article

A dual-clutch transmission, or DCT (sometimes referred to as a twin-clutch transmission or double-clutch transmission), is a modern type of semi-automatic transmission and electrohydraulic manual transmission. It uses two separate clutches for odd and even gear sets. It can fundamentally be described as two separate manual transmissions (with their respective clutches) contained within one housing, and working as one unit. They are usually operated in a fully automatic mode, and many also have the ability to allow the driver to manually shift gears in semi-automatic mode, albeit still using the transmission's electro-hydraulics.


Automatic transmission modes

Conventionally, in order to select the transmission operating mode, the driver moves a selection lever located either on the steering column or on the floor (as with a manual on the floor, except that automatic selectors on the floor do not move in the same type of pattern as manual levers do). In order to select modes, or to manually select specific gear ratios, the driver must push a button in (called the shift-lock button) or pull the handle (only on column mounted shifters) out. Some vehicles position selector buttons for each mode on the cockpit instead, freeing up space on the central console.

Vehicles conforming to US Government standards must have the modes ordered P-R-N-D-L (left to right, top to bottom, or clockwise). Previously, quadrant-selected automatic transmissions often used a P-N-D-L-R layout, or similar. Such a pattern led to a number of deaths and injuries owing to driver error causing unintentional gear selection, as well as the danger of having a selector (when worn) jump into reverse from low gear during engine braking maneuvers.

Depending on the model and make of the transmission, these controls can take several forms. However most include the following:

Park (P)
This selection mechanically locks the output shaft of transmission, restricting the vehicle from moving in any direction. A parking pawl prevents the transmission from rotating, and therefore the vehicle from moving. However, the vehicle's non-driven wheels are still free to rotate, and the driven wheels may still rotate individually (because of the differential). For this reason, it is recommended to use the hand brake (parking brake) because this actually locks (in most cases) the wheels and prevents them from moving. It is typical of front-wheel-drive vehicles for the parking brake to lock the rear (non-driving) wheels, so use of both the parking brake and the transmission park lock provides the greatest security against unintended movement on slopes. This also increases the life of the transmission and the park pin mechanism, because parking on an incline with the transmission in park without the parking brake engaged will cause undue stress on the parking pin, and may even prevent the pin from releasing. A hand brake should also prevent the car from moving if a worn selector accidentally drops into reverse gear while idling.
A car should be allowed to come to a complete stop before setting the transmission into park to prevent damage. Usually, Park (P) is one of only two selections in which the car's engine can be started, the other being Neutral (N). This is typically achieved via a normally open inhibitor switch (sometimes called a "neutral safety switch") wired in series with the starter motor engagement circuit, which is closed when P or N is selected, completing the circuit (when the key is turned to the start position). In many modern cars and trucks, the driver must have the foot brake applied before the transmission can be taken out of park. The Park position is omitted on buses/coaches (and some road tractors) with automatic transmission (on which a parking pawl is not practical), which must instead be placed in neutral with the air-operated parking brakes set.
Reverse (R)
This engages reverse gear within the transmission, permitting the vehicle to be driven backward, and operates a switch to turn on the white backup lights for improved visibility (the switch may also activate a beeper on delivery trucks or other large vehicles to audibly warn other drivers and nearby pedestrians of the driver's reverse movement). To select reverse in most transmissions, the driver must come to a complete stop, depress the shift-lock button (or move the shift lever toward the driver in a column shifter, or move the shifter sideways along a notched channel in a console shifter) and select reverse. The driver should avoid engaging reverse while the vehicle is moving forwards, and likewise avoid engaging any forward gear while travelling backwards. On transmissions with a torque converter, doing so at very low speed (walking pace) is not harmful, but causes unnecessary wear on clutches and bands, and a sudden deceleration that not only is uncomfortable, but also uncontrollable since the brakes and the throttle contribute in the same direction. This sudden acceleration, or jerk, can still be felt when engaging the gear at standstill, but the driver normally suppresses this by holding the brakes. Travelling slowly in the right direction while engaging the gear minimizes the jerk further, which is actually beneficial to the wearing parts of the transmission. Electronically controlled transmissions may behave differently, as engaging a gear at speed is essentially undefined behaviour. Some modern transmissions have a safety mechanism that will resist putting the car in reverse when the vehicle is moving forward; such a mechanism may consist of a solenoid-controlled physical barrier on either side of the reverse position, electronically engaged by a switch on the brake pedal, so that the brake pedal needs to be depressed in order to allow the selection of reverse. Some electronic transmissions prevent or delay engagement of reverse gear altogether while the car is moving.
Some shifters with a shift button allow the driver to freely move the shifter from R to N or D without actually depressing the button. However, the driver cannot shift back to R without depressing the shift button, to prevent accidental shifting which could damage the transmission, especially at high speeds.
Neutral / No gear (N)
This disengages all gear trains within the transmission, effectively disconnecting the transmission from the driven wheels, allowing the vehicle to coast freely under its own weight and gain momentum without the motive force from the engine. Coasting in idle down long grades (where law permits) should be avoided, though, with many transmission designs as the transmission's lubrication pump is commonly driven by the input (engine) side, which may not provide sufficient fluid flow at engine idle speed for high-speed travel. Similarly, emergency towing (with the driven wheels of the disabled and non-running vehicle on the ground) with an automatic transmission in neutral is not permitted by the manufacturer for many vehicles. Manufacturers understand emergency situations and list limitations of towing a vehicle in neutral (usually not to exceed 55 mph and 50 miles). This is the only other selection in which the vehicle's engine may be started.
Drive (D)
This position allows the transmission to engage the full range of available forward gear ratios, allowing the vehicle to move forward and accelerate through its range of gears. The number of gear ratios within the transmission depends on the model, but three was initially predominant. In the 1990s four and five speeds became common. Six-speed automatic transmissions were probably the most common offering in cars and trucks from about 2010, and were still common (especially in older or less expensive models of vehicles) in 2017. However, seven-speed automatics had become available in some high-performance production luxury cars (found in Mercedes 7G gearbox, Infiniti), as are eight-speed autos in models from 2006 introduced by Aisin Seiki Co. in Lexus, ZF, Hyundai Motor Company and General Motors. From 2013 are available nine speeds transmissions produced by ZF and Mercedes 9G. In the 2017 model year Ford and General Motors introduced a 10-speed transmission.
Overdrive ('D', 'OD', or a boxed [D] or the absence of an illuminated 'O/D OFF')
This mode is used in some transmissions to allow early computer-controlled transmissions to engage the automatic overdrive. In these transmissions, Drive (D) locks the automatic overdrive off, but is identical otherwise. OD (Overdrive) in these cars is engaged under steady speeds or low acceleration at approximately Template:Documentation subpage

Template:Hatnote {{#ifeq:Automatic transmission|Template:Convert|Template:High-risk}} Template:Transwiki guide Template:Lua Template Template:Tl 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}}Template loop detected: Template:Convert (km entered, so converted into mile)
{{convert|7|mi|km}}Template loop detected: Template:Convert (mi entered, so converted into km)

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

{{convert|2|km|mi|2|abbr=on}}Template loop detected: Template:Convert
{{convert|7|mi|km|2|abbr=on}}Template loop detected: Template:Convert

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

{{convert|2|to|5|km|mi}}Template loop detected: Template:Convert
{{convert|2|-|5|km|mi}}Template loop detected: Template:Convert

Combined effect example:

{{convert|2|-|5|km|mi|2|abbr=on}}Template loop detected: Template:Convert
{{convert|2|and|5|km|mi|sigfig=3|abbr=off}}Template loop detected: Template:Convert

Template:Hatnote

Units to convert

Template:Hatnote Enter units to convert from into:

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 Template:Cl

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):

Using Template:Para is the reverse behaviour to the default:

To abbreviate both or neither:

Convenience: Template:Tlf has Template:Para by default

Template Template:Tl is the same as Template:Tlf, except that it has Template:Para as the default behaviour. In Template:Tlf, all other options are available. So:

{{cvt|1|lb|kg}}Template:Cvt

is equivalent to:

{{convert|1|lb|kg|abbr=on}}Template:Cvt

Adjective: a 10-mile distance

Use Template:Para to produce the adjectival (hyphenated) form:

  • A {{convert|10|mi|km|adj=on}} distance → A Template loop detected: Template:Convert distance.

Default behaviour, for comparison:

Template:Para does not produce hyphens with unit symbols, as per Manual of Style:

  • A {{convert|9|in|cm|adj=on|abbr=on}} nail → A Template loop detected: Template:Convert nail.

Template:AnchorRounding: 100 ft is 30 m or 30.5 m or 30.48 m?

Template:Hatnote By definition, 100 ft equals Template loop detected: Template:Convert. In practical use, it is common to round the calculated metric number. With that, there are several possibilities.

Default rounding

By Template:Tlf 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}} Template loop detected: Template:Convert
{{convert|123|ft|m}} Template loop detected: Template:Convert same output as with 0 (below)
{{convert|123|ft|m|0}} Template loop detected: Template:Convert
{{convert|123|ft|m|1}} Template loop detected: Template:Convert
{{convert|123|ft|m|2}} Template loop detected: Template:Convert 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}} Template loop detected: Template:Convert
{{convert|500|ft|m}} Template loop detected: Template:Convert 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}} Template loop detected: Template:Convert
{{convert|500|ft|m|1}} Template loop detected: Template:Convert
{{convert|500|ft|m|2}} Template loop detected: Template:Convert exact value is 152.4 m
{{convert|500|ft|cm|-3}} Template loop detected: Template:Convert
{{convert|500|ft|cm}} Template loop detected: Template:Convert 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}} Template loop detected: Template:Convert

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 Template:Frac 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.

Template:Anchor

Round to a given number of significant figures: Template:Para

To specify the output number to be with n significant figures use Template:Para:

Default behaviour, for comparison:

Setting Template:Para to a value less than 1 is meaningless:

Round to a multiple of 5: 15, 20, 25, ...

Using Template:Para rounds the outcome to a multiple of 5.

Similar: using Template:Para rounds the outcome to a multiple of 25.

Default behaviour, for comparison:

In a range, one can round each value individually to the default. Use Template:Para:

  • {{convert|10 x 200 x 3000|m|ft}}Template loop detected: Template:Convert
  • {{convert|10 x 200 x 3000|m|ft|round=each}}Template loop detected: Template:Convert

Round to a multiple of a given fraction: Template:Frac inch

Specify the desired denominator using Template:Para. (Denominator is the below-the-slash number, for example the 3 in Template:Frac).

The fraction is reduced when possible:

Default behaviour uses decimal notation:

Template:AnchorRounding 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. {{#invoke:DemoTemplate|convert|10,000|C|F K}}
  2. {{#invoke:DemoTemplate|convert|10,000.1|C|F K}}
  3. {{#invoke:DemoTemplate|convert|-272|C|F K}}
  4. {{#invoke:DemoTemplate|convert|-272|C}}
  5. {{#invoke:DemoTemplate|convert|100|C|F K}}
  6. {{#invoke:DemoTemplate|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 Template loop detected: Template:Convert, 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 Template:Para:

{{#invoke:DemoTemplate|convert|10000|C|sigfig=5}}

or you set the precision positionally, relative to the decimal point (zero being at the decimal point):

{{#invoke:DemoTemplate|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.

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 Template:Tlc 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:

Note that there is no Template:ParaTemplate:Nay 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:

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

Into multiple units: Template loop detected: Template:Convert

Separate the multiple output units by a space:

If the output unit names contain spaces, use + as the separator.

See also:

Ranges of values

Template:For 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:
Template:Convert/doc/range separator list

Multiple dimensions: Template loop detected: Template:Convert

Use by:

Use ×, multiplication sign, or x, letter:

In science, the formal way is to set |x| and Template:Para (keeping dimensions right, like in area = x km2):

Lists of values: 20, 40, or 60 miles

{{convert|20|,|40|, or|60|mi}}Template loop detected: Template:Convert

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:

However, converting metric units into feet and inches with Template:Para can produce the desired output:

  • {{convert|380|x|1040|mm|ftin|order=flip}}Template loop detected: Template:Convert

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 Template:Para:

{{convert|1|m|ft}}Template loop detected: Template:Convertdefault
{{convert|1|m|ft|sp=us}}Template loop detected: Template:Convert

Spell out numbers: ten miles

To write a number in words, use Template:Para:

To spell out both in and out values, use Template:Para:

To make first letter a capital, use Template:Para, Template:Para

Remember that the spelling of the units (ft, m) is independently set by Template:Para. To the extreme:

  • {{convert|10|mi|m|spell=on|abbr=off|sp=us}}Template loop detected: Template:Convert

Inserted before units: 4 planted acres

  • {{convert|4|acre||adj=pre|planted}}Template loop detected: Template:Convert

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 }}Template loop detected: Template:Convert
  • {{convert|4|acre||disp=preunit|planted |reforested-}}Template loop detected: Template:Convert

After adjective unit: A Template loop detected: Template:Convert 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}}Template loop detected: Template:Convert

Plurals: 1 inch, 2 inches

The unit symbol is singular always. Depending on the preceding number only, a unit name can be shown plural.

Exception

Entering the unit spelled |foot| forces singular output "foot", whatever the number is.

Fractions: one-eighth of an imperial pint

The convert template also supports spelling out fractions.

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}}Template loop detected: Template:Convert

Wrapping and line breaking

See Template:Section link

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

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

To display both input and output in scientific notation, use Template:Para

To spell out "thousands", "millions", etc., Template:Para abbreviates the unit; Template:Para displays both full unit names.

  • {{convert|100|e6mi|e6km|abbr=unit}}Template loop detected: Template:Convert
  • {{convert|100|e6mi|e6km|abbr=off}}Template loop detected: Template:Convert

Numbers

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

Template: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):

The prefix can be used in the output unit:

As an exception, the non-SI unit "inch" can have the "μ" prefix too:

Template:Further information

Engineering notation: 7 × 106 m

In the unit: e6m

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

The same is possible for the output unit:

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 Template:Rnd. The plain number has exactly one digit before the decimal point.

With Template:Tlf, 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}}Template loop detected: Template:Convert
  • {{convert|0.00000005|atm|atm|abbr=on}}Template loop detected: Template:Convert

Input with fractions: Template loop detected: Template:Convert

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:

  • {{convert|2-1⁄2|in|mm|1}}Template loop detected: Template:Convert. This is interpreted as a range from 2 inches to 1⁄2 inch.
  • {{convert|-2+1⁄2|in|mm|1}}Template loop detected: Template:Convert Template:Nay This is neither a mixed number nor a range, and mathematical expressions requiring calculations are not allowed here.

Horizontal fraction bar: Template:Sfrac inch

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

Using a negative value for Template:Para provides a horizontal fraction bar for the converted (output) unit:

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:

Set Template:Para to remove the separator from the output:

Use Template:Para to use digit grouping by gap (thin space) as a thousands separator:

  • {{convert|1234567|m|ft|comma=gaps}}Template loop detected: Template:Convert

Default behaviour, for comparison:

Setting Template:Para will only add the separator when the number of digits is 5 or more:

Default behaviour, for comparison:

Output manipulation

Brackets and separators: 10 m [33 ft]

Punctuation that distinguishes the two measurements is set by Template:Para.
Options are: b (the default), sqbr, comma, or, br, x|…:

Default behaviour, for comparison:

Setting Template:Para will force a new line (<br/>)

Also Template:Para will force a new line, and keep the brackets (useful in tables):

Setting Template:Para allows any text as separator:

  • {{convert|10|m|ft|disp=x|_MyText_}}Template loop detected: Template:Convert (To display spaces, use &nbsp;)

Flipping (reordering) the two measurements: Template loop detected: Template:Convert

Setting Template:Para will flip (swap) the two measurements:

Default behaviour, for comparison:

When converting to multiple units, the effect is:

  • {{convert|10|km|mi nmi|order=flip}}Template loop detected: Template:Convert
  • {{convert|10|km|nmi mi|order=flip}}Template loop detected: Template:Convert

Fixed ordering of output units: Template loop detected: Template:Convert

Setting Template:Para shows the output-units as ordered; the input unit is skipped:

  • {{convert|100|C|F C K|abbr=on|order=out}}Template loop detected: Template:Convert
  • {{convert|200|PS|kW hp|0|abbr=on|order=out}}Template loop detected: Template:Convert

See also: § Displaying parts of the output.

Displaying parts of the result: Template loop detected: Template:Convert

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

Convert Output Returns
{{convert|2|cuyd|m3}} Template loop detected: Template:Convert Regular output (for comparison)
{{convert|2|cuyd|m3|abbr=values}} Template loop detected: Template:Convert Input and output numbers
{{convert|2|cuyd|m3|disp=unit}} Template loop detected: Template:Convert Input unit
{{convert|2|cuyd|m3|disp=unit|adj=on}} Template loop detected: Template:Convert Input unit, adjective (hyphenated)
{{convert|2|cuyd|cuyd|disp=out}} Template loop detected: Template:Convert Input (workaround. Template:Nowrap)
{{convert|2|cuyd|m3|abbr=~}} Template loop detected: Template:Convert Input: both name and symbol
{{convert|2|cuyd|m3|disp=unit2}} Template loop detected: Template:Convert Output unit (symbol)
{{convert|2|cuyd|m3|disp=unit2|abbr=off}} Template loop detected: Template:Convert Output unit (name)
{{convert|2|cuyd|m3|disp=number}} Template loop detected: Template:Convert Output value
{{convert|2|cuyd|m3|disp=out}} Template loop detected: Template:Convert Output value and unit name
{{convert|2|cuyd|m3|disp=out|abbr=off}} Template loop detected: Template:Convert Output value and unit symbol

Display both input name and symbol: 2 kilopascals [kPa]

Setting Template:Para returns both name and symbol of the first (input) unit:

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

Template:Para adds a line-break and omits brackets.

Template:Para adds a line-break and does add brackets to the converted value. This may be useful in tables:

Template:Para Template:Para
Template loop detected: Template:Convert Template loop detected: Template:Convert

Table columns

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

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

Template loop detected: Template:Convert

Template:Para does the same, and also centers the text:

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

Template loop detected: Template:Convert

The units are added as a column header:

  kilograms pounds stone and pounds
Template:Para Template loop detected: Template:Convert
Template:Para and Template:Para Template loop detected: Template:Convert
Template:Para and Template:Para Template loop detected: Template:Convert
Template:Para Template loop detected: Template:Convert
Template:Para (default) Template loop detected: Template:Convert

Sorting

Use Template:Para 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}} Template:Nowrap
showing: Template loop detected: Template:Convert.

Use both Template:Para and Template:Para together to produce table columns (pipe symbols) for each value in sortable columns:

m ft
A Template loop detected: Template:Convert
B Template loop detected: Template:Convert
C Template loop detected: Template:Convert
D Template loop detected: Template:Convert

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

Template:Selfref Template:Hatnote Template:Convert/list of units

Template:Anchor'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

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

  • {{convert|26|mpgUS|l/100km mpgimp}}Template loop detected: Template:Convert

Template:AnchorUnits 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:

  • {{#invoke:DemoTemplate|convert|10|C}} (standard temperature conversion)
  • {{#invoke:DemoTemplate|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 (Template:Para, Template:Para and Template:Para), which refer to points on the respective scale. Instead, we must use one of the following "units of difference": Template:Para, Template:Para and Template:Para.

Compare the following two examples with the two above:

  • {{#invoke:DemoTemplate|convert|10|C-change}} increase in temperature
  • {{#invoke:DemoTemplate|convert|10–15|C-change}} warmer than normal

To produce multiple units in the output:

  • {{#invoke:DemoTemplate|convert|10|C-change|F-change K-change}} difference

Multiple units: 1 ft 5 in

In input

Base document Template:Slink 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):

In output

Available multiple-unit output options predefined, like ftin and ydftin. The full list is at Template:Slink.

  • {{convert|2|m|ftin}}Template loop detected: Template:Convert
  • {{convert|2|m|ft in}}Template loop detected: Template:Convert, using a space, returns the decimal point

Default behaviour, for comparison:

See also:

Currency per unit: $/mi → $/km

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

You can set the currency in both values using Template:Para:

It is not possible to convert the currency. So, this result (mixed currencies) is not possible: Template:!mxt Template:Nay

Using convert inside templates

For usage in template code, like infoboxes, Template:Tlf has these options:

Pre-formatting fraction input
Your template can accept Template:Para and use {{#invoke:Convert/helper|number|16 7/8}} → {{#invoke:Convert/helper|number|16 7/8}}
Using a Wikidata property
  • Adding the Wikidata property code, like code Template:Para, 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 Template:Para.

Example for Template:Wikidata property link: Note: this example uses Template:Para (testing for Template:Wikidata entity link)

  • {{convert|input=P2073|qid=Q1056131|ftin|abbr=on}}Template loop detected: Template:Convert
  • {{convert|input=P2073|qid=Q1056131|km|abbr=on}}Template loop detected: Template:Convert
  • {{convert|input=P2073|qid=Q1056131|km|abbr=on|disp=out}}Template loop detected: Template:Convert
For example see template:Infobox Telescope.

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

Example for Template:Wikidata property link: Note: this example uses Template:Para (testing for Template:Wikidata entity link)

Parameter list

Template:Convert/doc/parameter list

Deprecated options

Template:Convert/doc/deprecations list

TemplateData

Template:TemplateDataHeader

<templatedata> { "description": "Converts measurements to other units.", "params": { "1": { "label": "Value", "description": "The value to convert.", "type": "number", "required": true }, "2": { "label": "From unit", "description": "The unit for the provided value.", "type": "string", "example": "km", "required": true }, "3": { "label": "To units", "description": "The units to convert into. Separate units by a space for multiple outputs. In an output unit, use + for a multiplication space.", "type": "string", "example": "mi nmi", "suggested": true }, "4": { "label": "Precision or suffix", "description": "Significant digits after decimal dot or, if negative, exponent of ten.", "type": "number" }, "lk": { "label": "Link units", "description": "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.", "default": "off", "type": "string", "example": "on" }, "abbr": { "label": "Abbreviation", "description": "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).", "default": "out", "type": "string", "example": "on, unit, in, out, off", "suggested": true }, "sp": { "label": "Spelling", "description": "Spelling of units. Use “us” to display unit names using U.S. spelling.", "type": "string", "example": "us" }, "adj": { "label": "Adjective", "description": "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.", "type": "unbalanced-wikitext", "example": "on", "default": "off" }, "disp": { "label": "Conversion", "description": "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.", "type": "string", "example": "b" }, "order": { "label": "Ordering", "description": "“flip” returns converted value first, input value second.", "type": "string", "example": "flip" }, "sigfig": { "label": "Significant figures", "description": "Indicates the number of significant figures to be used in rounding.", "type": "number" }, "round": { "label": "Rounding output", "description": "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.", "type": "number" }, "comma": { "label": "Thousands separator", "description": "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').", "default": "on", "type": "string", "example": "off" }, "sortable": { "label": "Sort key", "description": "“on” generates a hidden sort key", "type": "string", "example": "on" }, "spell": { "label": "Spell numbers?", "description": "If used, spells input or input and output numbers in words, optionally capitalizing the first", "example": "'in', 'In', 'on', or 'On'", "type": "string" }, "sing": { "type": "string", "deprecated": "use adj=", "label": "Singular?", "description": "If 'yes', uses singular form of units (deprecated)", "example": "yes" }, "frac": { "label": "Fraction?", "description": "fraction as rounding unit", "type": "number" }, "$": { "label": "Currency symbol", "description": "sets currency symbol in both units", "example": "$=€ will show \" €10 per mile (€6.2/km)\"", "type": "string" }, "input": { "label": "WD property", "description": "Reads the property value of the item (article), then converts it", "example": "Template loop detected: Template:Convert (P2046=area)", "type": "string" } }, "format": "inline" } </templatedata>

See also

Template:Convert navs Template:Sandbox other. Under hard acceleration or below Template:Documentation subpage Template:Hatnote {{#ifeq:Automatic transmission|Template:Convert|Template:High-risk}} Template:Transwiki guide Template:Lua Template Template:Tl 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}}Template loop detected: Template:Convert (km entered, so converted into mile)
{{convert|7|mi|km}}Template loop detected: Template:Convert (mi entered, so converted into km)

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

{{convert|2|km|mi|2|abbr=on}}Template loop detected: Template:Convert
{{convert|7|mi|km|2|abbr=on}}Template loop detected: Template:Convert

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

{{convert|2|to|5|km|mi}}Template loop detected: Template:Convert
{{convert|2|-|5|km|mi}}Template loop detected: Template:Convert

Combined effect example:

{{convert|2|-|5|km|mi|2|abbr=on}}Template loop detected: Template:Convert
{{convert|2|and|5|km|mi|sigfig=3|abbr=off}}Template loop detected: Template:Convert

Template:Hatnote

Units to convert

Template:Hatnote Enter units to convert from into:

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 Template:Cl

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):

Using Template:Para is the reverse behaviour to the default:

To abbreviate both or neither:

Convenience: Template:Tlf has Template:Para by default

Template Template:Tl is the same as Template:Tlf, except that it has Template:Para as the default behaviour. In Template:Tlf, all other options are available. So:

{{cvt|1|lb|kg}}Template:Cvt

is equivalent to:

{{convert|1|lb|kg|abbr=on}}Template:Cvt

Adjective: a 10-mile distance

Use Template:Para to produce the adjectival (hyphenated) form:

  • A {{convert|10|mi|km|adj=on}} distance → A Template loop detected: Template:Convert distance.

Default behaviour, for comparison:

Template:Para does not produce hyphens with unit symbols, as per Manual of Style:

  • A {{convert|9|in|cm|adj=on|abbr=on}} nail → A Template loop detected: Template:Convert nail.

Template:AnchorRounding: 100 ft is 30 m or 30.5 m or 30.48 m?

Template:Hatnote By definition, 100 ft equals Template loop detected: Template:Convert. In practical use, it is common to round the calculated metric number. With that, there are several possibilities.

Default rounding

By Template:Tlf 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}} Template loop detected: Template:Convert
{{convert|123|ft|m}} Template loop detected: Template:Convert same output as with 0 (below)
{{convert|123|ft|m|0}} Template loop detected: Template:Convert
{{convert|123|ft|m|1}} Template loop detected: Template:Convert
{{convert|123|ft|m|2}} Template loop detected: Template:Convert 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}} Template loop detected: Template:Convert
{{convert|500|ft|m}} Template loop detected: Template:Convert 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}} Template loop detected: Template:Convert
{{convert|500|ft|m|1}} Template loop detected: Template:Convert
{{convert|500|ft|m|2}} Template loop detected: Template:Convert exact value is 152.4 m
{{convert|500|ft|cm|-3}} Template loop detected: Template:Convert
{{convert|500|ft|cm}} Template loop detected: Template:Convert 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}} Template loop detected: Template:Convert

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 Template:Frac 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.

Template:Anchor

Round to a given number of significant figures: Template:Para

To specify the output number to be with n significant figures use Template:Para:

Default behaviour, for comparison:

Setting Template:Para to a value less than 1 is meaningless:

Round to a multiple of 5: 15, 20, 25, ...

Using Template:Para rounds the outcome to a multiple of 5.

Similar: using Template:Para rounds the outcome to a multiple of 25.

Default behaviour, for comparison:

In a range, one can round each value individually to the default. Use Template:Para:

  • {{convert|10 x 200 x 3000|m|ft}}Template loop detected: Template:Convert
  • {{convert|10 x 200 x 3000|m|ft|round=each}}Template loop detected: Template:Convert

Round to a multiple of a given fraction: Template:Frac inch

Specify the desired denominator using Template:Para. (Denominator is the below-the-slash number, for example the 3 in Template:Frac).

The fraction is reduced when possible:

Default behaviour uses decimal notation:

Template:AnchorRounding 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. {{#invoke:DemoTemplate|convert|10,000|C|F K}}
  2. {{#invoke:DemoTemplate|convert|10,000.1|C|F K}}
  3. {{#invoke:DemoTemplate|convert|-272|C|F K}}
  4. {{#invoke:DemoTemplate|convert|-272|C}}
  5. {{#invoke:DemoTemplate|convert|100|C|F K}}
  6. {{#invoke:DemoTemplate|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 Template loop detected: Template:Convert, 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 Template:Para:

{{#invoke:DemoTemplate|convert|10000|C|sigfig=5}}

or you set the precision positionally, relative to the decimal point (zero being at the decimal point):

{{#invoke:DemoTemplate|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.

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 Template:Tlc 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:

Note that there is no Template:ParaTemplate:Nay 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:

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

Into multiple units: Template loop detected: Template:Convert

Separate the multiple output units by a space:

If the output unit names contain spaces, use + as the separator.

See also:

Ranges of values

Template:For 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:
Template:Convert/doc/range separator list

Multiple dimensions: Template loop detected: Template:Convert

Use by:

Use ×, multiplication sign, or x, letter:

In science, the formal way is to set |x| and Template:Para (keeping dimensions right, like in area = x km2):

Lists of values: 20, 40, or 60 miles

{{convert|20|,|40|, or|60|mi}}Template loop detected: Template:Convert

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:

However, converting metric units into feet and inches with Template:Para can produce the desired output:

  • {{convert|380|x|1040|mm|ftin|order=flip}}Template loop detected: Template:Convert

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 Template:Para:

{{convert|1|m|ft}}Template loop detected: Template:Convertdefault
{{convert|1|m|ft|sp=us}}Template loop detected: Template:Convert

Spell out numbers: ten miles

To write a number in words, use Template:Para:

To spell out both in and out values, use Template:Para:

To make first letter a capital, use Template:Para, Template:Para

Remember that the spelling of the units (ft, m) is independently set by Template:Para. To the extreme:

  • {{convert|10|mi|m|spell=on|abbr=off|sp=us}}Template loop detected: Template:Convert

Inserted before units: 4 planted acres

  • {{convert|4|acre||adj=pre|planted}}Template loop detected: Template:Convert

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 }}Template loop detected: Template:Convert
  • {{convert|4|acre||disp=preunit|planted |reforested-}}Template loop detected: Template:Convert

After adjective unit: A Template loop detected: Template:Convert 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}}Template loop detected: Template:Convert

Plurals: 1 inch, 2 inches

The unit symbol is singular always. Depending on the preceding number only, a unit name can be shown plural.

Exception

Entering the unit spelled |foot| forces singular output "foot", whatever the number is.

Fractions: one-eighth of an imperial pint

The convert template also supports spelling out fractions.

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}}Template loop detected: Template:Convert

Wrapping and line breaking

See Template:Section link

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

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

To display both input and output in scientific notation, use Template:Para

To spell out "thousands", "millions", etc., Template:Para abbreviates the unit; Template:Para displays both full unit names.

  • {{convert|100|e6mi|e6km|abbr=unit}}Template loop detected: Template:Convert
  • {{convert|100|e6mi|e6km|abbr=off}}Template loop detected: Template:Convert

Numbers

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

Template: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):

The prefix can be used in the output unit:

As an exception, the non-SI unit "inch" can have the "μ" prefix too:

Template:Further information

Engineering notation: 7 × 106 m

In the unit: e6m

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

The same is possible for the output unit:

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 Template:Rnd. The plain number has exactly one digit before the decimal point.

With Template:Tlf, 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}}Template loop detected: Template:Convert
  • {{convert|0.00000005|atm|atm|abbr=on}}Template loop detected: Template:Convert

Input with fractions: Template loop detected: Template:Convert

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:

  • {{convert|2-1⁄2|in|mm|1}}Template loop detected: Template:Convert. This is interpreted as a range from 2 inches to 1⁄2 inch.
  • {{convert|-2+1⁄2|in|mm|1}}Template loop detected: Template:Convert Template:Nay This is neither a mixed number nor a range, and mathematical expressions requiring calculations are not allowed here.

Horizontal fraction bar: Template:Sfrac inch

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

Using a negative value for Template:Para provides a horizontal fraction bar for the converted (output) unit:

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:

Set Template:Para to remove the separator from the output:

Use Template:Para to use digit grouping by gap (thin space) as a thousands separator:

  • {{convert|1234567|m|ft|comma=gaps}}Template loop detected: Template:Convert

Default behaviour, for comparison:

Setting Template:Para will only add the separator when the number of digits is 5 or more:

Default behaviour, for comparison:

Output manipulation

Brackets and separators: 10 m [33 ft]

Punctuation that distinguishes the two measurements is set by Template:Para.
Options are: b (the default), sqbr, comma, or, br, x|…:

Default behaviour, for comparison:

Setting Template:Para will force a new line (<br/>)

Also Template:Para will force a new line, and keep the brackets (useful in tables):

Setting Template:Para allows any text as separator:

  • {{convert|10|m|ft|disp=x|_MyText_}}Template loop detected: Template:Convert (To display spaces, use &nbsp;)

Flipping (reordering) the two measurements: Template loop detected: Template:Convert

Setting Template:Para will flip (swap) the two measurements:

Default behaviour, for comparison:

When converting to multiple units, the effect is:

  • {{convert|10|km|mi nmi|order=flip}}Template loop detected: Template:Convert
  • {{convert|10|km|nmi mi|order=flip}}Template loop detected: Template:Convert

Fixed ordering of output units: Template loop detected: Template:Convert

Setting Template:Para shows the output-units as ordered; the input unit is skipped:

  • {{convert|100|C|F C K|abbr=on|order=out}}Template loop detected: Template:Convert
  • {{convert|200|PS|kW hp|0|abbr=on|order=out}}Template loop detected: Template:Convert

See also: § Displaying parts of the output.

Displaying parts of the result: Template loop detected: Template:Convert

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

Convert Output Returns
{{convert|2|cuyd|m3}} Template loop detected: Template:Convert Regular output (for comparison)
{{convert|2|cuyd|m3|abbr=values}} Template loop detected: Template:Convert Input and output numbers
{{convert|2|cuyd|m3|disp=unit}} Template loop detected: Template:Convert Input unit
{{convert|2|cuyd|m3|disp=unit|adj=on}} Template loop detected: Template:Convert Input unit, adjective (hyphenated)
{{convert|2|cuyd|cuyd|disp=out}} Template loop detected: Template:Convert Input (workaround. Template:Nowrap)
{{convert|2|cuyd|m3|abbr=~}} Template loop detected: Template:Convert Input: both name and symbol
{{convert|2|cuyd|m3|disp=unit2}} Template loop detected: Template:Convert Output unit (symbol)
{{convert|2|cuyd|m3|disp=unit2|abbr=off}} Template loop detected: Template:Convert Output unit (name)
{{convert|2|cuyd|m3|disp=number}} Template loop detected: Template:Convert Output value
{{convert|2|cuyd|m3|disp=out}} Template loop detected: Template:Convert Output value and unit name
{{convert|2|cuyd|m3|disp=out|abbr=off}} Template loop detected: Template:Convert Output value and unit symbol

Display both input name and symbol: 2 kilopascals [kPa]

Setting Template:Para returns both name and symbol of the first (input) unit:

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

Template:Para adds a line-break and omits brackets.

Template:Para adds a line-break and does add brackets to the converted value. This may be useful in tables:

Template:Para Template:Para
Template loop detected: Template:Convert Template loop detected: Template:Convert

Table columns

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

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

Template loop detected: Template:Convert

Template:Para does the same, and also centers the text:

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

Template loop detected: Template:Convert

The units are added as a column header:

  kilograms pounds stone and pounds
Template:Para Template loop detected: Template:Convert
Template:Para and Template:Para Template loop detected: Template:Convert
Template:Para and Template:Para Template loop detected: Template:Convert
Template:Para Template loop detected: Template:Convert
Template:Para (default) Template loop detected: Template:Convert

Sorting

Use Template:Para 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}} Template:Nowrap
showing: Template loop detected: Template:Convert.

Use both Template:Para and Template:Para together to produce table columns (pipe symbols) for each value in sortable columns:

m ft
A Template loop detected: Template:Convert
B Template loop detected: Template:Convert
C Template loop detected: Template:Convert
D Template loop detected: Template:Convert

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

Template:Selfref Template:Hatnote Template:Convert/list of units

Template:Anchor'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

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

  • {{convert|26|mpgUS|l/100km mpgimp}}Template loop detected: Template:Convert

Template:AnchorUnits 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:

  • {{#invoke:DemoTemplate|convert|10|C}} (standard temperature conversion)
  • {{#invoke:DemoTemplate|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 (Template:Para, Template:Para and Template:Para), which refer to points on the respective scale. Instead, we must use one of the following "units of difference": Template:Para, Template:Para and Template:Para.

Compare the following two examples with the two above:

  • {{#invoke:DemoTemplate|convert|10|C-change}} increase in temperature
  • {{#invoke:DemoTemplate|convert|10–15|C-change}} warmer than normal

To produce multiple units in the output:

  • {{#invoke:DemoTemplate|convert|10|C-change|F-change K-change}} difference

Multiple units: 1 ft 5 in

In input

Base document Template:Slink 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):

In output

Available multiple-unit output options predefined, like ftin and ydftin. The full list is at Template:Slink.

  • {{convert|2|m|ftin}}Template loop detected: Template:Convert
  • {{convert|2|m|ft in}}Template loop detected: Template:Convert, using a space, returns the decimal point

Default behaviour, for comparison:

See also:

Currency per unit: $/mi → $/km

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

You can set the currency in both values using Template:Para:

It is not possible to convert the currency. So, this result (mixed currencies) is not possible: Template:!mxt Template:Nay

Using convert inside templates

For usage in template code, like infoboxes, Template:Tlf has these options:

Pre-formatting fraction input
Your template can accept Template:Para and use {{#invoke:Convert/helper|number|16 7/8}} → {{#invoke:Convert/helper|number|16 7/8}}
Using a Wikidata property
  • Adding the Wikidata property code, like code Template:Para, 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 Template:Para.

Example for Template:Wikidata property link: Note: this example uses Template:Para (testing for Template:Wikidata entity link)

  • {{convert|input=P2073|qid=Q1056131|ftin|abbr=on}}Template loop detected: Template:Convert
  • {{convert|input=P2073|qid=Q1056131|km|abbr=on}}Template loop detected: Template:Convert
  • {{convert|input=P2073|qid=Q1056131|km|abbr=on|disp=out}}Template loop detected: Template:Convert
For example see template:Infobox Telescope.

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

Example for Template:Wikidata property link: Note: this example uses Template:Para (testing for Template:Wikidata entity link)

Parameter list

Template:Convert/doc/parameter list

Deprecated options

Template:Convert/doc/deprecations list

TemplateData

Template:TemplateDataHeader

<templatedata> { "description": "Converts measurements to other units.", "params": { "1": { "label": "Value", "description": "The value to convert.", "type": "number", "required": true }, "2": { "label": "From unit", "description": "The unit for the provided value.", "type": "string", "example": "km", "required": true }, "3": { "label": "To units", "description": "The units to convert into. Separate units by a space for multiple outputs. In an output unit, use + for a multiplication space.", "type": "string", "example": "mi nmi", "suggested": true }, "4": { "label": "Precision or suffix", "description": "Significant digits after decimal dot or, if negative, exponent of ten.", "type": "number" }, "lk": { "label": "Link units", "description": "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.", "default": "off", "type": "string", "example": "on" }, "abbr": { "label": "Abbreviation", "description": "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).", "default": "out", "type": "string", "example": "on, unit, in, out, off", "suggested": true }, "sp": { "label": "Spelling", "description": "Spelling of units. Use “us” to display unit names using U.S. spelling.", "type": "string", "example": "us" }, "adj": { "label": "Adjective", "description": "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.", "type": "unbalanced-wikitext", "example": "on", "default": "off" }, "disp": { "label": "Conversion", "description": "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.", "type": "string", "example": "b" }, "order": { "label": "Ordering", "description": "“flip” returns converted value first, input value second.", "type": "string", "example": "flip" }, "sigfig": { "label": "Significant figures", "description": "Indicates the number of significant figures to be used in rounding.", "type": "number" }, "round": { "label": "Rounding output", "description": "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.", "type": "number" }, "comma": { "label": "Thousands separator", "description": "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').", "default": "on", "type": "string", "example": "off" }, "sortable": { "label": "Sort key", "description": "“on” generates a hidden sort key", "type": "string", "example": "on" }, "spell": { "label": "Spell numbers?", "description": "If used, spells input or input and output numbers in words, optionally capitalizing the first", "example": "'in', 'In', 'on', or 'On'", "type": "string" }, "sing": { "type": "string", "deprecated": "use adj=", "label": "Singular?", "description": "If 'yes', uses singular form of units (deprecated)", "example": "yes" }, "frac": { "label": "Fraction?", "description": "fraction as rounding unit", "type": "number" }, "$": { "label": "Currency symbol", "description": "sets currency symbol in both units", "example": "$=€ will show \" €10 per mile (€6.2/km)\"", "type": "string" }, "input": { "label": "WD property", "description": "Reads the property value of the item (article), then converts it", "example": "Template loop detected: Template:Convert (P2046=area)", "type": "string" } }, "format": "inline" } </templatedata>

See also

Template:Convert navs Template:Sandbox other, the transmission will automatically downshift. Other vehicles with this selector (for example light trucks) will not only disable up-shift to the overdrive gear, but keep the remaining gears available for use of engine braking. Drivers should verify the behaviour of this switch and consider the benefits of reduced friction brake use when city driving where speeds typically do not necessitate the overdrive gear.

Most automatic transmissions include some means of forcing a downshift (Throttle kickdown) into the lowest possible gear ratio if the throttle pedal is fully depressed. In many older designs, kickdown is accomplished by mechanically actuating a valve inside the transmission. Most modern designs use a solenoid-operated valve that is triggered by a switch on the throttle linkage or by the engine control unit (ECU) in response to an abrupt increase in engine power.

Mode selection allows the driver to choose between preset shifting programs. For example, Economy mode saves fuel by upshifting at lower engine speeds, while Sport mode (aka "Power" or "Performance") delays upshifting for maximum acceleration. Some transmission units also have Winter mode, where higher gear ratios are chosen to keep revs as low as possible while on slippery surfaces. The modes also change how the computer responds to throttle input.

Conventionally, automatic transmissions have selector positions that allow the driver to limit the maximum ratio that the transmission may engage. On older transmissions, this was accomplished by a mechanical lockout in the transmission valve body preventing an upshift until the lockout was disengaged; on computer-controlled transmissions, the same effect is accomplished by firmware. The transmission can still upshift and downshift automatically between the remaining ratios: for example, in the 3 range, a transmission could shift from first to second to third, but not into fourth or higher ratios. Some transmissions will still upshift automatically into the higher ratio if the engine reaches its maximum permissible speed in the selected range.

Third (3)
This mode limits the transmission to the first three gear ratios, or sometimes locks the transmission in third gear. This can be used to climb or going down hill. Some vehicles will automatically shift up out of third gear in this mode if a certain revolutions per minute (RPM) range is reached in order to prevent engine damage. This gear is also recommended while towing a trailer.
Second (2 or S)
This mode limits the transmission to the first two gear ratios, or locks the transmission in second gear on Ford, Kia, and Honda models. This can be used to drive in adverse conditions such as snow and ice, as well as climbing or going down hills in winter. It is usually recommended to use second gear for starting on snow and ice, and use of this position enables this with an automatic transmission. Some vehicles will automatically shift up out of second gear in this mode if a certain RPM range is reached in order to prevent engine damage.
Although traditionally considered second gear, there are other names used. Chrysler models with a three-speed automatic since the late 1980s have called this gear 3 while using the traditional names for Drive and Low. Oldsmobile has called second gear as the 'Super' range — which was first used on their 4-speed Hydramatic transmissions, although the use of this term continued until the early 1980s when GM's Turbo Hydramatic automatic transmissions were standardized by all of their divisions years after the 4-speed Hydramatic was discontinued.

Some automatics, particularly those fitted to larger capacity or high torque engines, either when "2" is manually selected, or by engaging a winter mode, will start off in second gear instead of first, and then not shift into a higher gear until returned to "D." Also note that as with most American automatic transmissions, selecting "2" using the selection lever will not tell the transmission to be in only 2nd gear; rather, it will simply limit the transmission to 2nd gear after prolonging the duration of 1st gear through higher speeds than normal operation. The 2000–2002 Lincoln LS V8 (the five-speed automatic without manumatic capabilities, as opposed to the optional sport package w/ manu-matic 5-speed) started in 2nd gear during most starts both in winter and other seasons by selecting the "D5" transmission selection notch in the shiftgate (for fuel savings), whereas "D4" would always start in 1st gear. This is done to reduce torque multiplication when proceeding forward from a standstill in conditions where traction was limited — on snow- or ice-covered roads, for example.

First (1 or L [Low])
This mode locks the transmission in first gear only. In older vehicles, it will not change to any other gear range. Some vehicles will automatically shift up out of first gear in this mode if a certain RPM range is reached in order to prevent engine damage. This, like second, can be used during the winter season, for towing, or for downhill driving to increase the engine braking effect. The "Austin Mini" automatic transmission is different in this respect - This mode locks the transmission in first gear, but the gearbox has a freewheel on the overrun. Closing the throttle after acceleration results in the vehicle continuing at the same speed and only slowing down due to friction and wind resistance. During this time, the engine RPM will drop back to idle until the throttle is pressed again. What this means is that in "First", engine braking is not available and "2" is the lowest gear that should be used whilst descending hills. The Mini's (and the 1100/1300's) 4-speed Automatic transmission was unusual in that it allowed manual selection of all forward gears, enabling the driver to "take off" from a standstill in any of the four ratios. It also provided no "Park" position.

Manual controls

Some transmissions have a mode in which the driver has full control of ratios change (either by moving the selector, or through the use of buttons or paddles), completely overriding the automated function of the hydraulic controller. Such control is particularly useful in cornering, to avoid unwanted upshifts or downshifts that could compromise the vehicle's balance or traction. "Manumatic" shifters, first popularized by Porsche in the 1990s under the trade name Tiptronic, have become a popular option on sports cars and other performance vehicles. With the near-universal prevalence of electronically controlled transmissions, they are comparatively simple and inexpensive, requiring only software changes, and the provision of the actual manual controls for the driver. The amount of true manual control provided is highly variable: some systems will override the driver's selections under certain conditions, generally in the interest of preventing engine damage. Since these gearboxes also have a throttle kickdown switch, it is impossible to fully exploit the engine power at low to medium engine speeds.



Random Page | Longest Wikis | Oldest Wikis | Newest Images | Newest Wikis | List of Categories | List of Every Freakin Wiki



Register to Edit
It takes less than 5 minutes to request registration for editing, and we try to approve within 24 hours. Click the Register Link in the Top Bar.
MoparWiki Help
While editing Wikis may at first glance appear a little overwhelming, it really isn't. You will find this site's HELP (link found in the sidebar) to be very strong and easy to understand. The best way to start is with small edits and working on your user page -- and you will become a Pro in no time.

References