Difference between revisions of "Template:Doi/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 1: Line 1:
{{#ifeq:{{str left|{{{1}}}|3}}|10.|[[Digital object identifier|doi]]:<span class="noprint">[http://dx.doi.org/{{urlencode:{{{1|{{{id}}}}}}}} </span>{{#tag:nowiki|{{{1|{{{id}}}}}}}}<span class="noprint">]</span>|<includeonly>[[Category:Pages with DOI errors]]<span class="noprint error">Error: Bad DOI specified!</span></includeonly>}}<noinclude>
+
{{#ifeq:{{str left|{{{1}}}|3}}|10.|[[Digital object identifier|doi]]:[<span class="noprint">http://dx.doi.org/{{urlencode:{{{1|{{{id}}}}}}}}</span> {{#tag:nowiki|{{{1|{{{id}}}}}}}}]|<includeonly>[[Category:Pages with DOI errors]]<span class="noprint error">Error: Bad DOI specified!</span></includeonly>}}<noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 15:21, 11 October 2014

Template documentation[view] [edit] [history] [purge]


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

Usage

{{doi|10.1016/j.coi.2004.08.001}}

which produces:

doi:10.1016/j.coi.2004.08.001Template:Only in print

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