Difference between revisions of "Template:Doi"
Jump to navigation
Jump to search
imported>Stemonitis (remove trailing whitespace - causing formatting errors in articles where {{doi}} is not at the end of the line) |
imported>Reedy (Make links protocol relative) |
||
| Line 1: | Line 1: | ||
| − | {{hide in print|{{#ifeq:{{str left|{{{1}}}|3}}|10.|[[Digital object identifier|doi]]:[ | + | {{hide in print|{{#ifeq:{{str left|{{{1}}}|3}}|10.|[[Digital object identifier|doi]]:[//dx.doi.org/{{urlencode:{{{1|{{{id}}}}}}}} {{#tag:nowiki|{{{1|{{{id}}}}}}}}]|<includeonly>[[Category:Pages with DOI errors]]<span class="error">Error: Bad DOI specified!</span></includeonly>}}<!-- |
-->}}<!-- | -->}}<!-- | ||
-->{{only in print|doi:{{{1|{{{id}}}}}}<!-- | -->{{only in print|doi:{{{1|{{{id}}}}}}<!-- | ||
Revision as of 22:56, 23 January 2015
This template produces a simple, standardized link to a digital object identifier (DOI).
Usage
{{doi|10.1016/j.coi.2004.08.001}}
which produces:
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.
Note: This template does not work properly if there is a space between the vertical bar and the DOI.
See also
- {{doi-inline}}
- {{hdl}}
- Wikipedia:Digital Object Identifier
- Wikipedia:ISBN
- Wikipedia:PMID
- Wikipedia:ISSN
- {{bibcode}}
- {{PII}}
| 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. Please add categories to the /doc subpage. Subpages of this template. |