Template:Convert/mpgUS

From MattWiki
Jump to: navigation, search

{{convert/{{{d}}}F|{{{1}}}||||s=|r={{{r}}} |u=mpgUS |n=mile per US gallon |l=miles per US gallon |y=mreg |o=L/100 km mpgimp |b=(480000/1.12903) |j=5.628535755-0}}

Documentation icon Template documentation

The Template:Convert/mpgUS converts amounts with miles per US gallon (mpgUS). Some examples:

  • {{convert|15|mpgus|L/100 km}}             → 15 miles per US gallon (16 L/100 km)
  • {{convert|15|mpgus|l/100 km mpgimp}} → 15 mpg-US (16 l/100 km; 18 mpg-imp)
  • {{convert|15|to|32|mpgus|l/100 km mpgimp}} → 15 to 32 mpg-US (15.7 to 7.4 l/100 km; 18 to 38 mpg-imp)
  • {{convert|15|to|32|mpgus|l/100 km mpgimp}} → 15 to 32 miles per US gallon (15.7 to 7.4 litres per 100 kilometres; 18 to 38 miles per imperial gallon)

The unit name and symbol is encoded as "y=mreg{{{e|}}}" to be decoded into unit name by Template:Convert/foutmreg or unit symbol by Template:Convert/fourmreg.