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

Difference between revisions of "Template:Mpg"

From My wiki
Jump to navigation Jump to search
(Initial conversion template, will work once I get ''math'' installed)
 
m
Line 1: Line 1:
<includeonly>{{{1}}} mpg ({{#expr: ( 1 / {{{1}}} * 100 ) * 3.78541178 / 1.609344 round 2}} L/100 km)</includeonly>
+
<includeonly>{{{1}}} mpg ({{#expr: ( 1 / {{{1}}} * 100 ) * 3.78541178 / 1.609344 round 2}} L/100 km)</includeonly><noinclude>
<noinclude>
 
 
Template to convert fuel mileage form US mpg into Liters per 100km and display both
 
Template to convert fuel mileage form US mpg into Liters per 100km and display both
 
:<nowiki> {{{1}}} mpg {{#expr: ( 1 / {{{1}}} * 100 ) * 3.78541178 / 1.609344 round 2}} L/100 km)</nowiki>
 
:<nowiki> {{{1}}} mpg {{#expr: ( 1 / {{{1}}} * 100 ) * 3.78541178 / 1.609344 round 2}} L/100 km)</nowiki>

Revision as of 11:01, 3 June 2007

Template to convert fuel mileage form US mpg into Liters per 100km and display both

{{{1}}} mpg {{#expr: ( 1 / {{{1}}} * 100 ) * 3.78541178 / 1.609344 round 2}} L/100 km)

Useage:

  • {{45|mpg}} results in 45 mpg (5.23 L/100 km)

See also: