Template:Convert/doc
Jump to navigation
Jump to search
This template converts measurements from one unit and presents the results.
For example:
{{convert|<1>|<km>|<mi>}} → 1 kilometre (0.62 mi)
{{convert|<7>|<mi>|<km>}} → 7 miles (11 km)
- Usage
Basic examples:
Input | Displays as |
{{convert|3.21|kg|lb}} | 3.21 kilograms (7.1 lb) |
{{convert|3.21|kg|lb|0}} | 3.21 kilograms (7 lb) |
{{convert|10|kg|lb|disp=or}} | 10 kilograms or 22 pounds |
{{convert|6|ft|5|in|m}} | 6 feet 5 inches (1.96 m) |
{{convert|10|mi}} | 10 miles (16 km) |
{{convert|100|mpgus}} | 100 miles per US gallon (2.4 L/100 km; 120 mpg-imp) |
{{convert|120|km/h}} | 120 kilometres per hour (75 mph) |
{{convert|18|°C|°F}} | 18 °C (64 °F) |
{{convert|-15|C|F}} | −15 °C (5 °F) |
{{convert|9|e6USgal|abbr=off}} | 9 million US gallons (34 megalitres) The "e6" scales the input to millions; the "abbr=off" yields the "mega" in the output. Scaling is only available for Single value conversions. Not all units are supported. |
{{convert|1250|sqft|m2|lk=in|sigfig=2}} | 1,250 square feet (120 m2) |
{{convert|20.5|m3|cuyd|lk=out|abbr=on}} | 20.5 m3 (26.8 cu yd) Note 'lk=out' links only the output unit, cu yd. |
{{convert|641|acre|ha sqmi|lk=on}} | 641 acres (259 ha; 1.002 sq mi) |
{{convert|641|acre|ha sqmi|2|lk=on}} | 641 acres (259.40 ha; 1.00 sq mi) Although 640 acres equals 1 square mile; 641 acres rounded to two decimal places equals 1.00 sq mi. |
More documentation can be found at wikipedia:Template:Convert/doc.