• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Bibcode

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:CS1 identifiers
  • Module:Citation/CS1/Configuration (sandbox)
  • Module:Citation/CS1/Identifiers (sandbox)
  • Module:Citation/CS1/Utilities (sandbox)
The link in this template goes to a redirect page instead of to the article that is the target of the redirect. This redirect link is intentional so that links using the template are distinguishable from links to the article on the Special:WhatLinksHere/Bibcode page.

This template is intended to allow simple standardized links to bibcodes. For example, {{bibcode|1998ApJ...508L..81K}} will produce Bibcode:1998ApJ...508L..81K external link.

Contents

  • 1 Usage
  • 2 Example
  • 3 Error messages
  • 4 Tracking categories
  • 5 See also

Usage

This template accepts these parameters:

|idn= – a bibcode identifier; the |idn= parameter name is not required but is recommended for clarity when the template has multiple bibcodes
|bibcode-accessn= – accepts a single value free; for use when the bibcode at |idn= is free-to-read; enumerators required for second and subsequent bibcode identifiers; bibcode identified sources are assumed to be paywall protected
|link= – accepts a single value no; for use when it is the 'Bibcode:' prefix in the rendering should not be linked
|plainlink= – accepts a single value yes; suppresses the 'Bibcode:' prefix in the rendering
|leadout= – defines the conjunction between the last two identifiers in the rendered list; defaults to ,

The basic form is: {{bibcode|place_bibcode_id_number_here}}

Example

  • {{bibcode|1998ApJ...508L..81K}} → Bibcode:1998ApJ...508L..81K
  • {{bibcode|1927LAstr..41..165F|bibcode-access=free}} → Bibcode:1927LAstr..41..165F

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.

  1. ^ "1.2.3 - Bibliographic Identifiers". The SAO/NASA Astrophysics Data System.

Tracking categories

  • Category:Bibcode – maintenance category for temporary bibcodes
  • Category:Pages with BIBCODE errors – error category for {{bibcode}} templates that show an error message

Because this template uses the same code as cs1|2 templates, error and maintenance visibility is controlled the same way. See Help:CS1 errors § Controlling error message display.

See also

  • Wikipedia:PMID
  • Wikipedia:ISBN
  • Wikipedia:ISSN
  • Wikipedia:Digital Object Identifier
  • Template:doi
  • Template:doi-inline
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.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Bibcode&oldid=1303542630"
Last edited on 31 July 2025, at 16:13

Languages

    • Afrikaans
    • Anarâškielâ
    • العربية
    • Asturianu
    • Авар
    • Azərbaycanca
    • Башҡортса
    • Беларуская
    • भोजपुरी
    • Bosanski
    • Català
    • Corsu
    • Deutsch
    • Ελληνικά
    • Español
    • Euskara
    • فارسی
    • Français
    • 한국어
    • Հայերեն
    • Hrvatski
    • Bahasa Indonesia
    • Ирон
    • Italiano
    • ಕನ್ನಡ
    • ქართული
    • Қазақша
    • Македонски
    • മലയാളം
    • မြန်မာဘာသာ
    • 日本語
    • Нохчийн
    • Norsk bokmål
    • Occitan
    • Oʻzbekcha / ўзбекча
    • Plattdüütsch
    • Português
    • Русский
    • Scots
    • Slovenčina
    • Slovenščina
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • Suomi
    • Svenska
    • தமிழ்
    • ไทย
    • Тоҷикӣ
    • Türkçe
    • Українська
    • Tiếng Việt
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 31 July 2025, at 16:13 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop