Difference between revisions of "Template:Bibcode"
Jump to navigation
Jump to search
imported>Tjmoel (-idwiki - wrong place to put) |
imported>Headbomb (tweak for print) |
||
| Line 1: | Line 1: | ||
| − | [[Bibcode]]: [http://adsabs.harvard.edu/abs/{{{1|{{{id}}}}}} {{{2|{{{label|{{{1|{{{id}}}}}}}}}}}}]<noinclude> | + | <!-- |
| + | -->{{hide in print | ||
| + | |[[Bibcode]]: [http://adsabs.harvard.edu/abs/{{{1|{{{id}}}}}} {{{2|{{{label|{{{1|{{{id}}}}}}}}}}}}] | ||
| + | }}<!-- | ||
| + | -->{{only in print | ||
| + | |Bibcode: {{{2|{{{label|{{{1|{{{id}}}}}}}}}}}} | ||
| + | }}<!-- | ||
| + | --><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 21:41, 3 March 2010
Template:Only in print
| This template uses Lua: |
This template is intended to allow simple standardized links to bibcodes. For example, {{bibcode|1998ApJ...508L..81K}} will produce Bibcode: 1998ApJ...508L..81K
Template:Only in print external link.
Contents
Syntax
{{bibcode|place_bibcode_id_number_here}}
Example
{{bibcode|1998ApJ...508L..81K}}
Template:Only in print
Error messages
The Bibcode template checks the bibcode value to see if it has the proper format.[1] When the assigned value does not have the proper format, the template returns an error message along with the type of error that is encountered:
- Check bibcode: <type>
Bibcode template values are expected to match these requirements:
- length must be 19 characters (<type> = 'length')
- characters in position(s): (except as specified otherwise, violations produce 'value' in the <type> portion of the error message):
- 1–4 must be digits and must represent a year in the range of 1000 – next year (<type> = 'year')
- 5 must be a letter
- 6–8 must be letter, ampersand, or dot (ampersand cannot directly precede a dot; &. (<type> = 'journal'))
- 9 must be letter or dot
- 10–18 must be letter, digit, or dot
- 19 must be a letter or dot
To resolve this error, ensure that the assigned bibcode value is correct.
See also
es:Plantilla:Bibcode id:Templat:Bibcode ja:Template:Bibcode sl:Predloga:Bibcode
| The above documentation is transcluded from Template:Bibcode/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
- ↑ "1.2.3 - Bibliographic Identifiers". The SAO/NASA Astrophysics Data System.