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:L100km"

From SeattleEVA
Jump to navigation Jump to search
m
(update to current version at Wikipedia.)
 
Line 1: Line 1:
<includeonly>{{{1}}} L/100 km ({{#expr: 1 / ( {{{1}}} * 1.609344 / 3.78541179 ) * 100 round 0}} mpg)</includeonly><noinclude>
+
<includeonly>{{{1}}}&nbsp;{{#switch:{{{lk|}}}|on=[[W:L/100 km|L/100&nbsp;km]]|=L/100&nbsp;km}} ({{#expr: 1 / ( {{{1}}} * 1.609344 / 3.78541179 ) * 100 round 0}}&nbsp;{{#switch:{{{lk|}}}|on=[[W:Miles per gallon|mpg]]|=mpg}})</includeonly><noinclude>
Template to convert fuel mileage form Liters per 100km into US mpg and display both
+
Template to convert fuel mileage form Liters per 100km into US mpg and display both via:
:<nowiki>{{{1}}} L/100 km ({{#expr: 1 / ( {{{1}}} * 1.609344 / 3.78541179 ) * 100 round 0}} mpg)</nowiki>
+
:<nowiki>{{{1}}}&nbsp;L/100&nbsp;km ({{#expr: 1 / ( {{{1}}} * 1.609344 / 3.78541179 ) * 100 round 0}}&nbsp;mpg)</nowiki>
 
Useage:
 
Useage:
*<nowiki>{{L100km|5.2}}</nowiki> results in 5.2 L/100 km (45 mpg)
+
*<nowiki>{{L100km|5.2}}</nowiki> results in {{L100km|5.2}}
 +
*<nowiki>{{L100km|5.2|lk=on}}</nowiki> results in {{L100km|5.2|lk=on}}
 +
 
 +
Options:
 +
* Make units [[W:Wikipedia:Manual of Style (links)|wikilinked]] by attaching <code><nowiki>|lk=on</nowiki></code>.
 +
*:The [[W:WP:MOS|manual of style]] suggests that you only link the first instance.
 +
 
 
See also:
 
See also:
 
* [[Template:mpg]]
 
* [[Template:mpg]]
 +
* [[W:Template:Convert]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:34, 9 July 2007

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

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

Useage:

  • {{L100km|5.2}} results in 5.2 L/100 km (45 mpg)
  • {{L100km|5.2|lk=on}} results in 5.2 L/100 km (45 mpg)

Options:

See also: