Template:Convert/doc

From Teampedia
Jump to: navigation, search

This template converts measurements from one unit and presents the results.

For example:

Template:T → 1 kilometre (0.621371192 mi)
Template:T → 7 miles (11.265408 km)

Usage

Basic examples:

Input Displays as
{{convert|3.21|kg|lb}} 3.21  (Expression error: Missing operand for *. )
{{convert|3.21|kg|lb|0}} 3.21  (Expression error: Unexpected round operator. )
{{convert|10|kg|lb|disp=or}} 10 Expression error: Missing operand for *. 
{{convert|6|ft|5|in|m}} 6 feet (Expression error: Unexpected round operator. )
{{convert|10|mi}} 10 miles (Expression error: Missing operand for *. )
{{convert|100|mpgus}} 100  (Expression error: Missing operand for *. )
{{convert|120|km/h}} 120 kilometres per hour (Expression error: Missing operand for *. )
{{convert|18|°C|°F}} 18 °C (64.4 °F)
{{convert|-15|C|F}} -15 °C (5 °F)
{{convert|9|e6USgal|abbr=off}} 9  (Expression error: Missing operand for *. )
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  (Expression error: Missing operand for *. )
{{convert|20.5|m3|cuyd|lk=out|abbr=on}} 20.5  (Expression error: Unexpected round operator. )
Note 'lk=out' links only the output unit, cu yd.
{{convert|641|acre|ha sqmi|lk=on}} 641 acres (Expression error: Missing operand for *. [[]])
{{convert|641|acre|ha sqmi|2|lk=on}} 641 acres (Expression error: Unexpected round operator. [[]])
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.