Difference between revisions of "Template:CODATA2010/linktovalue/doc"
Jump to navigation
Jump to search
imported>Electrical & computer engineer (created documentation) |
imported>Electrical & computer engineer (→Parameters: updated documentation for parameter "text" and →See also: added Template:CODATA2010/longname) |
||
| Line 7: | Line 7: | ||
=== Parameters === | === Parameters === | ||
*'''constant''': The name of the constant whose webpage is to be linked to. Using the name of a constant as an unnamed parameter is the same as using it for the value of the parameter <code>constant</code>; if both parameters are included, <code>constant</code> takes precedence. | *'''constant''': The name of the constant whose webpage is to be linked to. Using the name of a constant as an unnamed parameter is the same as using it for the value of the parameter <code>constant</code>; if both parameters are included, <code>constant</code> takes precedence. | ||
| − | *'''text''' (''optional''): specifies | + | *'''text''' (''optional''): specifies the text the link is to contain, if any. If <code>text</code> is not set or <code>text=none</code>, the link will not contain any text. If <code>text=title</code>, the text will be "CODATA Value: ''name of constant'' ". If <code>text=dltv</code>, the text will be "Direct link to value". If <code>text</code> is anything else, the text of the link will be the value of <code>text</code>. |
=== Usage examples === | === Usage examples === | ||
| Line 16: | Line 16: | ||
[[Template:CODATA2010/abbrev]] | [[Template:CODATA2010/abbrev]] | ||
| + | |||
| + | [[Template:CODATA2010/longname]] | ||
[[Template:CODATA2006]] | [[Template:CODATA2006]] | ||
Latest revision as of 23:52, 23 June 2011
| 40px | This is a documentation subpage for Template:CODATA2010/linktovalue. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Purpose
This template produces an external link to the NIST webpage for a specific constant.
Parameters
- constant: The name of the constant whose webpage is to be linked to. Using the name of a constant as an unnamed parameter is the same as using it for the value of the parameter
constant; if both parameters are included,constanttakes precedence. - text (optional): specifies the text the link is to contain, if any. If
textis not set ortext=none, the link will not contain any text. Iftext=title, the text will be "CODATA Value: name of constant ". Iftext=dltv, the text will be "Direct link to value". Iftextis anything else, the text of the link will be the value oftext.
Usage examples
See Template:CODATA2010/linktovalue/testcases#Testing main template
See also