General Disclaimer: (HV) (DC) injury or death hazard, use at your own risk, may void warranty. |
Difference between revisions of "Template:Mpge"
Jump to navigation
Jump to search
(Initial conversion code, not yet implamented.) |
(class="wikitable") |
||
Line 35: | Line 35: | ||
-->{{#vardefine:kWh|3.5}}<!-- | -->{{#vardefine:kWh|3.5}}<!-- | ||
Show the initial values | Show the initial values | ||
− | -->{| border=1 cellpadding=3 | + | -->{| border=1 cellpadding=3 class="wikitable" |
− | + | ! miles !! km !! mpg !! gas !! diesel !! kWh !! btu | |
|- | |- | ||
||{{#var:miles}}||{{#var:km}}||{{#var:mpg}}||{{#var:gas}}||{{#var:diesel}}||{{#var:kWh}}||{{#var:btu}} | ||{{#var:miles}}||{{#var:km}}||{{#var:mpg}}||{{#var:gas}}||{{#var:diesel}}||{{#var:kWh}}||{{#var:btu}} | ||
Line 85: | Line 85: | ||
− | {| border=1 | + | {| border=1 class="wikitable" |
− | + | ! colspan=2 | Amount of fuel = 1 gallon of gasoline (measured in units for fuel type) | |
|- | |- | ||
|| Gasoline (regular unleaded) || 1 Gallon = 114,100 [[W:BTU|BTUs]] | || Gasoline (regular unleaded) || 1 Gallon = 114,100 [[W:BTU|BTUs]] |
Revision as of 03:43, 17 January 2008
miles | km | mpg | gas | diesel | kWh | btu |
---|---|---|---|---|---|---|
28 | 0 | 78.5 | 0 | 0 | 3.5 | 0 |
28 | 17.398388 | 78.5 | 0.35668789808917 | 0 | 3.5 | 52583.505838641 |
- mpge = 60.76
Template to convert fuel mileage from various fuels or combinations of fuels into MPGe Miles per Gallon of Gasoline Equivalent.
- {{mpge|miles=50.00|kWh=10.00}} results in XX mpge
- {{mpge|km=80.00|kWh=10.00}} results in XX mpge
- {{mpge|miles=50.00|kWh=10.00|metric=on}} results in XX mpge
- {{mpge|miles=50.00|kWh=10.00|imperial=on}} results in XX mpge
- {{mpge|miles=50.00|gas=1.000}} results in XX mpge
- {{mpge|miles=50.00|diesel=1.000|lk=on}} results in XX mpge
- {{mpge|L100km=50}} results in XX mpge
- {{mpge|mpg=50}} results in XX mpge
Options:
- Make units wikilinked by attaching
|lk=on
.- The manual of style suggests that you only link the first instance.
See also:
- Template:Mpg - For U.S. gallons version
- Template:Mpg (Imperial) - For Imperial (UK) gallons version
- Template:L100km
- W:Template:Convert
Amount of fuel = 1 gallon of gasoline (measured in units for fuel type) | |
---|---|
Gasoline (regular unleaded) | 1 Gallon = 114,100 BTUs |
Diesel | .88 Gallons |
Liquid Natural Gas | 126.67 Cubic Feet |
Compressed Natural Gas | 33.56 Kilowatt hours |
Liquefied Petroleum Gas | 1.35 Gallons |
Methanol | 2.01 Gallons |
Ethanol 100% | 1.500 Gallons |
Ethanol 85% | 1.425 Gallons |
Ethanol 10% | 1.050 Gallons |
Electricity | 33.56 Kilowatt hours |