Template:MPGe

From FEInfobase

Jump to: navigation, search


This Template formats mpg into MPGeUS and L/100 km

It uses a factor of 1 for conversion.


Usage:

  • {{MPGe|10|lk=on}}: 23.5 L/100 km (10 MPGeUS)
  • {{MPGe|10}}: 23.5 L/100 km (10 MPGeUS)
  • {{MPGe|50|2}}: 4.7 L/100 km (50 MPGeUS)
  • {{MPGe|10|p=on}}: 23.5 L/100 p·km (10 p·MPGeUS)

Options:

  • The second parameter is decimal precision (default 1 decimal)
  • p=on adds p· for passenger miles
  • Make units wikilinked by attaching |lk=on.
    The manual of style suggests that you only link the first instance.
Personal tools