Template:Doi/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Mwtoews
m fix place
meta>Mwtoews
m back outside of includeonly
Line 22: Line 22:


The escape code for &lt; is <code>%3C</code>. For &gt;, it is <code>%3E</code>
The escape code for &lt; is <code>%3C</code>. For &gt;, it is <code>%3E</code>
<includeonly>
 
==See also==
==See also==
*[[Template:Doi-inline]]
*[[Template:Doi-inline]]


<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:External link templates|Doi]]
[[Category:External link templates|Doi]]

Revision as of 07:09, 24 December 2006

Template:Template doc page viewed directly This template is intended to allow simple standardized links to digital object identifiers (DOIs).

Examples

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

doi:10.1016/j.coi.2004.08.001

If the DOI contains characters such as > and <, that causes the display to break, one may the id and label variables. The id variable represent a URL encoded version of the DOI, with the label is the normal DOI:

{{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
 }}

produces:Error: Bad DOI specified!

The escape code for < is %3C. For >, it is %3E

See also