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

Template:doi

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentationviewedithistorypurge
WarningThis template is used on approximately 29,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
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/Digital object identifier page.

This template produces a simple, standardized link to a source from the source's digital object identifier (DOI). The DOI is rendered using much of the same code that renders |doi= in Citation Style 1 and Citation Style 2 templates except that this template can be used to render multiple DOIs.

Usage

This template accepts these parameters:

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

The basic form is:

{{doi|id=10.1016/j.coi.2004.08.001}} → doi:10.1016/j.coi.2004.08.001

For multiple DOIs:

{{doi|10.1038/380707a0|10.1038/36382}} → doi:10.1038/380707a0, 10.1038/36382

When the DOI is freely-accessible, tag it as free with |doi-access=free

{{doi|10.1080/00295450.2017.1384269|doi-access=free}} → doi:10.1080/00295450.2017.1384269

To unlink the prefix:

{{doi|id=10.1016/j.coi.2004.08.001|link=no}} → doi:10.1016/j.coi.2004.08.001

To suppress the prefix:

{{doi|id=10.1016/j.coi.2004.08.001|plainlink=yes}} → 10.1016/j.coi.2004.08.001

To use and between the last two identifiers in the rendered list:

{{doi|10.1038/380707a0|10.1038/36382|leadout=and}} → doi:10.1038/380707a0 and 10.1038/36382

When this template emits an error message for a valid (working) DOI, use the accept-as-written markup ((..)) to suppress the error message.

For instructions on how to use Wikipedia to automatically expand a DOI into a full reference complete with article title, author(s), date, journal name, volume, issue, page numbers, etc., please see User:Citation bot/use.

Tracking categories

  • Category:DOI inactive – maintenance category for subcategories named in the form Category:DOI inactive as of July 2026 – for {{doi}} templates marked with |doi-broken-daten=July 2026
  • Category:Ignored DOI errors – maintenance category for {{doi}} templates using the accept-as-written markup ((..)) to suppress an error message
  • Category:Unflagged free DOI – maintenance category for {{doi}} templates that should be marked with |doi-accessn=free
  • Category:Pages with DOI errors – error category for {{doi}} 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

  • {{doi-inline}}
  • {{hdl}}
  • Wikipedia:Digital Object Identifier
  • Wikipedia:ISBN
  • Wikipedia:PMID
  • Wikipedia:ISSN
  • {{bibcode}}
  • {{SSRN}}

This template produces a simple, standardized link to a digital object identifier (DOI).

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
DOI name1

no description

Example
10.1000/xyz123
Unknownrequired
idid

no description

Unknownoptional
The above documentation is transcluded from Template:Doi/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Doi&oldid=1303249249"
Last edited on 29 July 2025, at 22:12

Languages

    • Аԥсшәа
    • Afrikaans
    • Alemannisch
    • Алтай тил
    • Ænglisc
    • العربية
    • الدارجة
    • مصرى
    • অসমীয়া
    • Asturianu
    • Авар
    • Azərbaycanca
    • تۆرکجه
    • Башҡортса
    • Basa Bali
    • Boarisch
    • Беларуская (тарашкевіца)
    • Беларуская
    • Български
    • भोजपुरी
    • বাংলা
    • Bosanski
    • Català
    • Нохчийн
    • کوردی
    • Corsu
    • Čeština
    • Чӑвашла
    • Cymraeg
    • Dansk
    • Deutsch
    • Dolnoserbski
    • Esperanto
    • Español
    • Eesti
    • Euskara
    • فارسی
    • Suomi
    • Français
    • Arpetan
    • Nordfriisk
    • Gaeilge
    • Gàidhlig
    • Galego
    • ગુજરાતી
    • Gungbe
    • Gaelg
    • Hausa
    • עברית
    • Hrvatski
    • Hornjoserbsce
    • Magyar
    • Հայերեն
    • Bahasa Indonesia
    • Ilokano
    • Íslenska
    • Italiano
    • 日本語
    • Jawa
    • ქართული
    • Taqbaylit
    • Қазақша
    • 한국어
    • Kurdî
    • Latina
    • Ladino
    • Лезги
    • Lombard
    • Latviešu
    • मैथिली
    • Minangkabau
    • Македонски
    • മലയാളം
    • Монгол
    • मराठी
    • မြန်မာဘာသာ
    • Эрзянь
    • Plattdüütsch
    • नेपाली
    • Nederlands
    • Norsk nynorsk
    • Norsk bokmål
    • Occitan
    • ଓଡ଼ିଆ
    • Ирон
    • ਪੰਜਾਬੀ
    • Papiamentu
    • Pälzisch
    • پښتو
    • Português
    • Română
    • Tarandíne
    • Русский
    • संस्कृतम्
    • Саха тыла
    • Scots
    • Srpskohrvatski / српскохрватски
    • တႆး
    • Simple English
    • Slovenčina
    • Slovenščina
    • Shqip
    • Српски / srpski
    • SiSwati
    • Seeltersk
    • Svenska
    • தமிழ்
    • తెలుగు
    • Тоҷикӣ
    • ไทย
    • Tagalog
    • Toki pona
    • Türkçe
    • Татарча / tatarça
    • Українська
    • اردو
    • Tiếng Việt
    • Winaray
    • 吴语
    • მარგალური
    • 閩南語 / Bân-lâm-gí
    • 粵語
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 29 July 2025, at 22:12 (UTC).
    • Page was rendered with Parsoid.
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Legal & safety contacts
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop view