Difference between revisions of "Template:CdA"

From blackwiki
Jump to navigation Jump to search
imported>Stepho-wrs
(Created page with '{{#switch:{{{long|no}}}|yes=drag area of |}}{{#switch:{{{link|no}}}|yes=Drag coefficient|''C''<small style="position:relative;top:4px;right:1px;">d</small...')
 
imported>Lithopsian
(Drag coefficient has nothing to say on this subject, so switch the link to drag area)
 
Line 1: Line 1:
{{#switch:{{{long|no}}}|yes=drag area of&nbsp;|}}{{#switch:{{{link|no}}}|yes=[[Drag coefficient|''C''<small style="position:relative;top:4px;right:1px;">d</small>A]]|car=[[Automobile drag coefficient#Drag area|''C''<small style="position:relative;top:4px;right:1px;">d</small>A]]|no=''C''<small style="position:relative;top:4px;right:1px;">d</small>A}}{{#if:{{{1|}}}|={{{1}}}}}<noinclude>
+
{{#switch:{{{long|no}}}|yes=drag area of&nbsp;|}}{{#switch:{{{link|no}}}|yes=[[Drag area|''C''<small style="position:relative;top:4px;right:1px;">d</small>A]]|car=[[Automobile drag coefficient#Drag area|''C''<small style="position:relative;top:4px;right:1px;">d</small>A]]|no=''C''<small style="position:relative;top:4px;right:1px;">d</small>A}}{{#if:{{{1|}}}|={{{1}}}}}<noinclude>
  
 
{{documentation}}<!--
 
{{documentation}}<!--

Latest revision as of 17:42, 18 December 2018

CdA

50px Template documentation[view] [edit] [history] [purge]

This template displays the symbol for drag area with an optional link to drag area (link=yes) or Automobile drag coefficient#Drag area (link=car) and an optional value.

If long=yes then the phrase 'drag area of' is added to the front to make it easier to read as part of a full sentence. If long is not specified at all then it defaults to no.

Usage

{{CdA|link=yes/car/no|long=yes/no|''value''}}

Examples:

Code Displays as
{{CdA}} CdA
{{CdA|link=yes}} CdA
{{CdA|link=yes|long=yes|0.26}} drag area of CdA=0.26
{{CdA|link=car}} CdA
{{CdA|link=car|long=yes|0.26}} drag area of CdA=0.26
{{CdA|link=no}} CdA
{{CdA|link=no|long=yes|0.26}} drag area of CdA=0.26
{{CdA|0.26}} CdA=0.26
{{CdA|0.26|link=yes}} CdA=0.26
{{CdA|0.26|link=car}} CdA=0.26
{{CdA|0.26|link=no}} CdA=0.26

See also

  • {{Cd}} for coefficient of drag.