Difference between revisions of "Template:Doi/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mwtoews
(+see also)
imported>Fayenatic london
 
(53 intermediate revisions by 32 users not shown)
Line 1: Line 1:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
+
{{lowercase}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
+
{{documentation subpage}}
This template is intended to allow simple standardized links to [[digital object identifier]]s (DOIs).
 
  
==Examples==
+
This template produces a simple, standardized link to a [[digital object identifier]] (DOI).
<nowiki>{{doi|10.1016/j.coi.2004.08.001}}</nowiki> produces:
 
  
{{doi|10.1016/j.coi.2004.08.001}}
+
== Usage ==
 +
<nowiki>{{doi|10.1016/j.coi.2004.08.001}}</nowiki>
 +
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]].
  
If the DOI contains characters such as <nowiki>></nowiki> and <nowiki><</nowiki>, that causes the display to break, one may the <var>id</var> and <var>label</var> variables. The id variable represent a [[Percent-encoding|URL encoded]] version of the DOI, with the label is the normal DOI:
+
'''''Note:''''' This template does not work properly if there is a space between the vertical bar and the DOI.
  
<nowiki>{{doi
+
==See also==
  | id = 10.1175/1520-0442(2002)015%3C0487:SOCASI%3E2.0.CO;2
+
*{{tl|doi-inline}}
  | label = 10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2
+
*{{tl|hdl}}
}}</nowiki>
+
*[[Wikipedia:Digital Object Identifier]]
produces:
+
*[[Wikipedia:ISBN]]
 
+
*[[Wikipedia:PMID]]
{{doi
+
*[[Wikipedia:ISSN]]
  | id = 10.1175/1520-0442(2002)015%3C0487:SOCASI%3E2.0.CO;2
+
*{{tl|bibcode}}
  | label = 10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2
+
*{{tl|PII}}
}}
 
 
 
The escape code for &lt; is <code>%3C</code>. For &gt;, it is <code>%3E</code>
 
<includeonly>
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
[[Category:External link templates|Doi]]
 
 
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
[[ja:Template:Doi]]
 
[[no:Mal:Doi]]
 
  
</includeonly>
+
<includeonly>{{sandbox other|1=<!-- keep sandbox out of categories -->|2=
 
+
[[Category:Catalog lookup templates]]
==See also==
+
}}</includeonly>
*[[Template:Doi-inline]]
 

Latest revision as of 15:06, 15 April 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.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