Template:Doi: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Ligulem
m Protected Template:Doi: stable enough, pretty high use [edit=sysop:move=sysop]
meta>Ligulem
Line 1: Line 1:
[[Digital object identifier|DOI]]:[http://dx.doi.org/{{{1|{{{id}}}}}} {{{2|{{{label|{{{1|{{{id}}}}}}}}}}}}]<noinclude>
[[Digital object identifier|DOI]]:[http://dx.doi.org/{{{1|{{{id}}}}}} {{{2|{{{label|{{{1|{{{id}}}}}}}}}}}}]<noinclude>{{/doc}}
 
This template is intended to allow simple standardized links to [[digital object identifier]]s (DOIs).
 
==Examples==
<nowiki>{{doi|10.1016/j.coi.2004.08.001}}</nowiki> produces:
 
{{doi|10.1016/j.coi.2004.08.001}}
 
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:
 
<nowiki>{{doi
  | id = 10.1175/1520-0442(2002)015%3C0487:SOCASI%3E2.0.CO;2
  | label = 10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2
}}</nowiki>
produces:
 
{{doi
  | id = 10.1175/1520-0442(2002)015%3C0487:SOCASI%3E2.0.CO;2
  | label = 10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2
}}
 
The escape code for &lt; is <code>%3C</code>. For &gt;, it is <code>%3E</code>
 
[[Category:External link templates|Doi]]
 
[[ja:Template:Doi]]
[[no:Mal:Doi]]
</noinclude>
</noinclude>

Revision as of 10:01, 21 December 2006

DOI:{{{id}}}


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