Template:Doi/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
No edit summary
Ookami (talk | contribs)
m 56 revisions imported
 
(35 intermediate revisions by 22 users not shown)
Line 1: Line 1:
{{lowercase}}
{{documentation subpage}}
{{documentation subpage}}


This template is intended to allow simple standardized links to [[digital object identifier]]s (DOIs).
This template produces a simple, standardized link to a [[digital object identifier]] (DOI).


==Examples==
== Usage ==
===Usage 1===
The basic usage is:
  <nowiki>{{doi|10.1016/j.coi.2004.08.001}}</nowiki>
  <nowiki>{{doi|10.1016/j.coi.2004.08.001}}</nowiki>
which produces:
which produces:
:{{doi|10.1016/j.coi.2004.08.001}}
:{{doi|10.1016/j.coi.2004.08.001}}
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]].


===DOIs with square brackets===
'''''Note:''''' This template does not work properly if there is a space between the vertical bar and the DOI.
DOIs containing the square bracket characters [] ''will break'', so one has to use the <var>id</var> and <var>label</var> variables. The <var>id</var> variable represents a [[Percent-encoding|URL encoded]] version of the DOI, where the <var>label</var> variable is the normal DOI. The <var>label</var> variable contains the string that is actually displayed on the page, where the closing bracket character must be replaced with a [[character entity]]:
 
<nowiki>{{</nowiki>doi
  | id = 10.1890/1051-0761(1998)008'''%5B'''0947:FROINI'''%5D'''2.0.CO;2
  | label = 10.1890/1051-0761(1998)008[0947:FROINI'''&amp;#x5d;'''2.0.CO;2
}}
producing
 
:{{doi
  | id = 10.1890/1051-0761(1998)008%5B0947:FROINI%5D2.0.CO;2
  | label = 10.1890/1051-0761(1998)008[0947:FROINI&#x5d;2.0.CO;2
}}


==See also==
==See also==
*[[Template:Doi-inline]]
*{{tl|doi-inline}}
*[[Wikipedia:DOI]]
*{{tl|hdl}}
*[[Wikipedia:Digital Object Identifier]]
*[[Wikipedia:ISBN]]
*[[Wikipedia:ISBN]]
*[[Wikipedia:PMID]]
*[[Wikipedia:PMID]]
*[[Wikipedia:ISSN]]
*[[Wikipedia:ISSN]]
*[[Template:bibcode]]
*{{tl|bibcode}}
 
*{{tl|PII}}
<includeonly>
{{pp-template|small=yes}}
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:External link templates|{{PAGENAME}}]]
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[de:Vorlage:DOI]]
[[eo:Ŝablono:COI]]
[[es:Plantilla:DOI]]
[[ja:Template:Doi]]
[[no:Mal:Doi]]


</includeonly>
<includeonly>{{sandbox other|1=<!-- keep sandbox out of categories -->|2=
[[Category:Catalog lookup templates]]
}}</includeonly>

Latest revision as of 04:25, 3 September 2020

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.001

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