Difference between revisions of "Template:CODATA2010"

From blackwiki
Jump to navigation Jump to search
imported>Götz
(update to reflect changes from Template:CODATA2010/sandbox2. Thanks to Technical 13 and NtheP)
imported>Hiperfelix
Line 14: Line 14:
 
}}}}<!-- LINK TO REFERENCE DIRECTLY
 
}}}}<!-- 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;{{#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: {{{ref|yes}}}|yes|<ref name="CODATA2010">P.J. Mohr, B.N. Taylor, and D.B. Newell (2011), [http://physics.nist.gov/cuu/Constants/index.html "The 2010 CODATA Recommended Values of the Fundamental Physical Constants"]. Database developed by J. Baker, M. Douma, and S. Kotochigova. [[National Institute of Standards and Technology]], Gaithersburg, MD 20899.</ref>}}<noinclude>
+
-->{{#ifeq: {{{ref|yes}}}|yes|<ref name="CODATA2010">P.J. Mohr, B.N. Taylor, and D.B. Newell (2011), [http://physics.nist.gov/cuu/Constants/index.html ''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>}}<noinclude>
 
== References ==
 
== References ==
 
{{reflist}}
 
{{reflist}}

Revision as of 23:09, 15 August 2013

[1]

References

  1. P.J. Mohr, B.N. Taylor, and D.B. Newell (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.
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