Template:Mpg (Imperial)
From Wikipedia, the free encyclopedia
Template to convert fuel mileage from mpg (Imperial) into Litres per 100 km and mpg (U.S.) and display all three via:
- {{{1}}} –imp {{#expr: ( 1 / {{{1}}} * 100 ) * 4.54609188 / 1.609344 round 2}} L/100 km / {{#expr:{{{1}}}* 0.8326000 round 1}} mpg–U.S.)
Useage:
- {{mpg (Imperial)|45}} results in 45 mpg–imp (6.28 L/100 km / 37.5 mpg–U.S.)
- {{mpg (Imperial)|45|lk=on}} results in 45 mpg–imp (6.28 L/100 km / 37.5 mpg–U.S.)
Options:
- Make units wikilinked by attaching
|lk=on
.- The manual of style suggests that you only link the first instance.
See also:
- Template:Mpg - For U.S. gallons version
- Template:L100km
- Template:Convert