Template:MPGe vkWh
From Wikipedia, the free encyclopedia
This Template converts mile/kWh into MPGeUS and L/100 km
It assumes Coal is used as a generating source and so 11 kWh per Gallon equivalent.
Usage:
- {{MPGe vkWh|1/0.265|v=11|lk=on}}: 5.7 L/100 km (42 MPGeUS)
- {{MPGe vkWh|1/0.265|v=11}}: 5.7 L/100 km (42 MPGeUS)
- {{MPGe vkWh|1/0.265|2|v=11}}: 5.67 L/100 km (41.5 MPGeUS)
- {{MPGe vkWh|1/0.265|v=11|p=on}}: 5.7 L/100 p·km (42 p·MPGeUS)
Options:
- The second parameter is decimal precision (default 1 decimal)
- v= kWh/gallon equivalent.
- 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.