Template:Doi/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
+es:
meta>CapitalR
updating doc
Line 4: Line 4:


==Examples==
==Examples==
===Usage 1===
The usage is:
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}}
===Usage 2===
If the DOI contains characters such as &lt; and &gt;, that cause the display to break, one may 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:
<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>. For [, use <code>%5B</code>, and for ], <code>%5D</code>.


==See also==
==See also==

Revision as of 13:12, 6 May 2008

This template is intended to allow simple standardized links to digital object identifiers (DOIs).

Examples

The usage is:

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

which produces:

doi:10.1016/j.coi.2004.08.001

See also