https://www.eaa-phev.org/wiki/index.php?title=Template:Mpg_(Imperial)&feed=atom&action=historyTemplate:Mpg (Imperial) - Revision history2024-03-28T15:07:06ZRevision history for this page on the wikiMediaWiki 1.34.1https://www.eaa-phev.org/wiki/index.php?title=Template:Mpg_(Imperial)&diff=5737&oldid=prevRjf: Initial Template, copy of W:Template:Mpg (Imperial)W:2008-01-15T11:40:36Z<p>Initial Template, copy of <a href="http://en.wikipedia.org/wiki/Template:Mpg_(Imperial)" class="extiw" title="w:Template:Mpg (Imperial)">W:Template:Mpg (Imperial)</a>W:</p>
<p><b>New page</b></p><div><includeonly>{{{1}}}&nbsp;{{#switch:{{{lk|}}}|on=[[W:Imperial MPG|mpg&ndash;imp]]|=mpg&ndash;imp}} ({{#expr: ( 1 / {{{1}}} * 100 ) * 4.54609188 / 1.609344 round 2}}&nbsp;{{#switch:{{{lk|}}}|on=[[W:L/100 km|L/100&nbsp;km]]|=L/100&nbsp;km}}&nbsp;/&nbsp;{{#expr:{{{1}}}* 0.8326000 round 1}}&nbsp;{{#switch:{{{lk|}}}|on=[[W:Miles per gallon|mpg&ndash;U.S.]]|=mpg&ndash;U.S.}})</includeonly><noinclude><br />
Template to convert fuel mileage from mpg (Imperial) into Litres per 100&nbsp;km and mpg (U.S.) and display all three via:<br />
:<nowiki> {{{1}}}&nbsp;&ndash;imp {{#expr: ( 1 / {{{1}}} * 100 ) * 4.54609188 / 1.609344 round 2}}&nbsp;L/100&nbsp;km&nbsp;/&nbsp;{{#expr:{{{1}}}* 0.8326000 round 1}}&nbsp;mpg&ndash;U.S.)</nowiki><br />
Useage:<br />
*<nowiki>{{mpg (Imperial)|45}}</nowiki> results in {{mpg (Imperial)|45}}<br />
*<nowiki>{{mpg (Imperial)|45|lk=on}}</nowiki> results in {{mpg (Imperial)|45|lk=on}}<br />
<br />
Options:<br />
* Make units [[W:Wikipedia:Manual of Style (links)|wikilinked]] by attaching <code><nowiki>|lk=on</nowiki></code>.<br />
*:The [[W:WP:MOS|manual of style]] suggests that you only link the first instance.<br />
<br />
See also:<br />
* [[Template:Mpg]] - For U.S. gallons version<br />
* [[Template:L100km]]<br />
* [[W:Template:Convert]]<br />
<br />
</noinclude></div>Rjf