This page you are viewing is part of the SEVA Wiki Archive, Please visit the new Official Website!
NOTICE: Visit the Maillist page for help joining the new google groups email list, the old maillist is no more.
SEVA meetings are held every second Tuesday.


Difference between revisions of "Template:Mpg"

From SeattleEVA
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: