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:

See also: