General Disclaimer:   (HV) (DC) injury or death hazard,   use at your own risk,   may void warranty.

Template:L100km

From My wiki
Revision as of 11:40, 15 January 2008 by Rjf (talk | contribs) (update from W:Template:L100km)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template to convert fuel mileage form Liters per 100 km into US mpg and imperial mpg and displays all three via:

{{{1}}} L/100 km ({{#expr: 1 / ( {{{1}}} * 1.609344 / 3.78541179 ) * 100 round 0}} mpg–U.S. / {{{1}}} L/100 km ({{#expr: 1 / ( {{{1}}} * 1.609344 / 4.54609) * 100 round 0}} mpg–imp)

Useage:

  • {{L100km|5.2}} results in 5.2 L/100 km (45 mpg–U.S. / 54 mpg–imp)
  • {{L100km|5.2|lk=on}} results in 5.2 L/100 km (45 mpg–U.S. / 54 mpg–imp)

Options:

See also: