Difference between revisions of "Template:Auto cc"

From Chevy Wiki
Jump to navigation Jump to search
 
m (1 revision)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{formatnum: {{{1|1}}} }}&nbsp;in ({{#expr:{{{1}}} * 25.4 round {{{2|1}}} }}&nbsp;mm)</includeonly><noinclude>This template presents measurements given in inches in an inch and millimeter format; mainly for use in automobile articles. An additional parameter can be added for the accuracy of the decimal places.
<includeonly>{{formatnum: {{#expr:{{{1}}} * 0.001 round  {{{2|1}}} }} }}&nbsp;L ({{{1|1}}}&nbsp;cc, {{#expr:{{{1}}} * 0.0610237 round {{{2|0}}} }}&nbsp;cu&nbsp;in)</includeonly><noinclude>
 
Examples:
Examples:


* <nowiki>{{Auto in|3.48|0}}</nowiki>: {{Auto in|3.48|0}}
* <nowiki>{{Auto cc|4942|0}}</nowiki>: {{Auto cc|4942|0}}
* <nowiki>{{Auto in|3.48}}</nowiki>: {{Auto in|3.48}}
* <nowiki>{{Auto cc|4942}}</nowiki>: {{Auto cc|4942}}


[[Category:Automotive conversion templates|IN]]
[[Category:Automotive conversion templates|CC]]
</noinclude>
</noinclude>

Latest revision as of 14:55, 3 February 2009

Examples:

  • {{Auto cc|4942|0}}: 5 L (4942 cc, 302 cu in)
  • {{Auto cc|4942}}: 4.9 L (4942 cc, 302 cu in)