Difference between revisions of "Template:Cd"
Jump to navigation
Jump to search
imported>Stepho-wrs (Added |link=cars option for plural cars.) |
imported>Stepho-wrs (Add italics to "d".) |
||
| Line 1: | Line 1: | ||
| − | {{#switch:{{{long|no}}}|yes=drag coefficient of |plural=drag coefficients of |cars=drag coefficients of |}}{{#switch:{{{link|no}}}|yes=[[Drag coefficient|''C''<small style="position:relative;top:4px;;right:1px;">d</small>]]|car=[[Automobile drag coefficient|''C''<small style="position:relative;top:4px;;right:1px;">d</small>]]|cars=[[Automobile drag coefficient|''C''<small style="position:relative;top:4px;;right:1px;">d</small>]]|no=''C''<small style="position:relative;top:4px;;right:1px;">d</small>}}{{#if:{{{1|}}}|={{{1}}}}}<noinclude> | + | {{#switch:{{{long|no}}}|yes=drag coefficient of |plural=drag coefficients of |cars=drag coefficients of |}}{{#switch:{{{link|no}}}|yes=[[Drag coefficient|''C''<small style="position:relative;top:4px;;right:1px;">''d''</small>]]|car=[[Automobile drag coefficient|''C''<small style="position:relative;top:4px;;right:1px;">''d''</small>]]|cars=[[Automobile drag coefficient|''C''<small style="position:relative;top:4px;;right:1px;">''d''</small>]]|no=''C''<small style="position:relative;top:4px;;right:1px;">''d''</small>}}{{#if:{{{1|}}}|={{{1}}}}}<noinclude> |
{{documentation}}<!-- | {{documentation}}<!-- | ||
Latest revision as of 02:05, 4 November 2016
Cd
This template displays the symbol for coefficient of drag with an optional link to Drag coefficient (link=yes) or Automobile drag coefficient (link=car) and an optional value.
If long=yes then the phrase 'drag coefficient 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
{{Cd|link=yes/car/no|long=yes/no|''value''}}
Examples:
| Code | Displays as |
|---|---|
| {{Cd}} | Cd |
| {{Cd|link=yes}} | Cd |
| {{Cd|link=yes|long=yes|0.26}} | drag coefficient of Cd=0.26 |
| {{Cd|link=yes|long=plural|0.26}} | drag coefficients of Cd=0.26 |
| {{Cd|link=car}} | Cd |
| {{Cd|link=car|long=yes|0.26}} | drag coefficient of Cd=0.26 |
| {{Cd|link=car|long=plural|0.26}} | drag coefficients of Cd=0.26 |
| {{Cd|link=no}} | Cd |
| {{Cd|link=no|long=yes|0.26}} | drag coefficient of Cd=0.26 |
| {{Cd|link=no|long=plural|0.26}} | drag coefficients of Cd=0.26 |
| {{Cd|0.26}} | Cd=0.26 |
| {{Cd|0.26|link=yes}} | Cd=0.26 |
| {{Cd|0.26|link=car}} | Cd=0.26 |
| {{Cd|0.26|link=no}} | Cd=0.26 |
See also
| The above documentation is transcluded from Template:Cd/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |