Difference between revisions of "Template:CODATA2010"

From blackwiki
Jump to navigation Jump to search
imported>Electrical & computer engineer
(changed abbreviations to full names in #switch: statement to improve comprehensibility)
imported>Jonesey95
(Fix empty citation, unnamed or unsupported parameter, or invalid parameter value; see Help:CS1 errors)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#if: {{{constant|}}}<!--
+
{{#if: {{{constant|}}}|{{#switch: {{CODATA2010/longname|{{{constant}}}}}
-->|{{#switch: {{CODATA2010/longname|{{{constant}}}}}<!--
+
| {220} lattice spacing of silicon ={{CODATA2010-helper|192.0155714|(32)|e=-12|include-units={{{include-units|link}}}|units=m|debug={{{debug|}}}}}
-->| {220} lattice spacing of silicon ={{CODATA2010-helper|192.0155714|(32)|e=-12|include-units={{{include-units|link}}}|units=m|debug={{{debug|}}}}}<!--
+
| alpha particle-electron mass ratio ={{CODATA2010-helper|7294.2995361|(29)|debug={{{debug|}}}}}
-->| alpha particle-electron mass ratio ={{CODATA2010-helper|7294.2995361|(29)|debug={{{debug|}}}}}<!--
+
| alpha particle mass ={{CODATA2010-helper|6.64465675|(29)|e=-27|include-units={{{include-units|link}}}|units=kg|debug={{{debug|}}}}}
-->| alpha particle mass ={{CODATA2010-helper|6.64465675|(29)|e=-27|include-units={{{include-units|link}}}|units=kg|debug={{{debug|}}}}}<!--
+
| alpha particle mass energy equivalent ={{CODATA2010-helper|5.97191967|(26)|e=-10|include-units={{{include-units|link}}}|units=J|debug={{{debug|}}}}}
-->| alpha particle mass energy equivalent ={{CODATA2010-helper|5.97191967|(26)|e=-10|include-units={{{include-units|link}}}|units=J|debug={{{debug|}}}}}<!--
+
| alpha particle mass energy equivalent in MeV ={{CODATA2010-helper|3727.379240|(82)|include-units={{{include-units|link}}}|units=MeV|debug={{{debug|}}}}}
-->| alpha particle mass energy equivalent in MeV ={{CODATA2010-helper|3727.379240|(82)|include-units={{{include-units|link}}}|units=MeV|debug={{{debug|}}}}}<!--
+
| alpha particle mass in u ={{CODATA2010-helper|4.001506179125|(62)|include-units={{{include-units|link}}}|units=u|debug={{{debug|}}}}}
-->| alpha particle mass in u ={{CODATA2010-helper|4.001506179125|(62)|include-units={{{include-units|link}}}|units=u|debug={{{debug|}}}}}<!--
+
| alpha particle molar mass ={{CODATA2010-helper|4.001506179125|(62)|e=-3|include-units={{{include-units|link}}}|units=kg/mol|debug={{{debug|}}}}}
-->| alpha particle molar mass ={{CODATA2010-helper|4.001506179125|(62)|e=-3|include-units={{{include-units|link}}}|units=kg/mol|debug={{{debug|}}}}}<!--
+
| alpha particle-proton mass ratio ={{CODATA2010-helper|3.97259968933|(36)|debug={{{debug|}}}}}
-->| alpha particle-proton mass ratio ={{CODATA2010-helper|3.97259968933|(36)|debug={{{debug|}}}}}<!--
+
| Angstrom star ={{CODATA2010-helper|1.00001495|(90)|e=-10|include-units={{{include-units|link}}}|units=m|debug={{{debug|}}}}}
-->| Angstrom star ={{CODATA2010-helper|1.00001495|(90)|e=-10|include-units={{{include-units|link}}}|units=m|debug={{{debug|}}}}}<!--
+
| atomic mass constant ={{CODATA2010-helper|1.660538921|(73)|e=-27|include-units={{{include-units|link}}}|units=kg|debug={{{debug|}}}}}
-->| atomic mass constant ={{CODATA2010-helper|1.660538921|(73)|e=-27|include-units={{{include-units|link}}}|units=kg|debug={{{debug|}}}}}<!--
+
| atomic mass constant energy equivalent ={{CODATA2010-helper|1.492417954|(66)|e=-10|include-units={{{include-units|link}}}|units=J|debug={{{debug|}}}}}
-->| atomic mass constant energy equivalent ={{CODATA2010-helper|1.492417954|(66)|e=-10|include-units={{{include-units|link}}}|units=J|debug={{{debug|}}}}}<!--
+
| atomic mass constant energy equivalent in MeV ={{CODATA2010-helper|931.494061|(21)|include-units={{{include-units|link}}}|units=MeV|debug={{{debug|}}}}}
-->| atomic mass constant energy equivalent in MeV ={{CODATA2010-helper|931.494061|(21)|include-units={{{include-units|link}}}|units=MeV|debug={{{debug|}}}}}<!--
+
}}}}<!-- LINK TO REFERENCE DIRECTLY
-->}}}}<!--
+
-->{{#ifeq:{{{link-to-value|yes}}}|yes|{{#if:{{{constant|}}}|&nbsp;{{#tag:ref|[http://physics.nist.gov/cgi-bin/cuu/Value&#63;{{CODATA2010/abbrev|{{{constant}}}}} {{ucfirst:{{CODATA2010/longname|{{{constant}}}}}}}] [[National Institute of Standards and Technology]]|name={{ucfirst:{{CODATA2010/longname|{{{constant}}}}}}}}}}}}}<!-- LINK TO SOURCE
-->{{#ifeq: {{{link-to-value|yes}}}|yes|{{#if: {{{constant|}}} |&nbsp;[http://physics.nist.gov/cgi-bin/cuu/Value?{{CODATA2010/abbrev|{{{constant}}}}}]}}}}<!--
+
-->{{#ifeq: {{{ref|yes}}}|yes|<ref name="CODATA2010">{{cite web |author-first1=Peter J. |author-last1=Mohr |author-first2=Barry N. |author-last2=Taylor |author-first3=David B. |author-last3=Newell |year=2011 |url=http://physics.nist.gov/cuu/Constants/index.html |title=CODATA Recommended Values of the Fundamental Physical Constants: 2010}} Database developed by J. Baker, M. Douma, and S. Kotochigova. [[National Institute of Standards and Technology]], Gaithersburg, MD 20899.</ref>}}<!--
-->{{#ifeq: {{{ref|yes}}}|yes|&nbsp;<ref name="CODATA2010">P.J. Mohr, B.N. Taylor, and D.B. Newell (2011), "The 2010 CODATA Recommended Values of the Fundamental Physical Constants" (Web Version 6.0). This database was developed by J. Baker, M. Douma, and S. Kotochigova. Available: http://physics.nist.gov/constants. National Institute of Standards and Technology, Gaithersburg, MD 20899.</ref>}}<!--
+
 
 
--><noinclude>
 
--><noinclude>
== References ==
+
{{Template reference list}}
{{reflist}}
 
 
 
 
{{documentation}}
 
{{documentation}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 15:06, 1 November 2019

[1]

References

  1. Mohr, Peter J.; Taylor, Barry N.; Newell, David B. (2011). "CODATA Recommended Values of the Fundamental Physical Constants: 2010". Database developed by J. Baker, M. Douma, and S. Kotochigova. National Institute of Standards and Technology, Gaithersburg, MD 20899.
50px Template documentation[view] [edit] [history] [purge]

Usage

CODATA2010 is for transcluding and/or referencing the 2010 CODATA recommended values of physical constants.

Parameter

  • constant (optional): the short or long name of the physical constant to be transcluded, if any.
  • include-units (optional): (no, no link, or default link). Respectively, omits the units (appropriate when the units are given elsewhere in the article), merely includes the units, or includes the units as links to the page about the unit. Requires constant to be set.
  • link-to-value (optional): (no or default yes). If yes, includes a link to NIST's webpage on that specific constant. Requires constant to be set.
  • ref (optional): (no or default yes). If yes, creates a reference.

Examples

See Template:CODATA2010/testcases#Testing main template

See also