Template:Doi: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Circeus documentation |
meta>Circeus →Examples: escape codes |
||
| Line 4: | Line 4: | ||
==Examples== | ==Examples== | ||
<nowiki>{{doi|10.1016/j.coi.2004.08.001}}</nowiki> produces: | <nowiki>{{doi|10.1016/j.coi.2004.08.001}}</nowiki> produces: | ||
{{doi|10.1016/j.coi.2004.08.001}} | {{doi|10.1016/j.coi.2004.08.001}} | ||
| Line 10: | Line 10: | ||
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: | 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: | <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}} | {{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 < is <code>%3C</code>. For >, it is <code>%3E</code> | |||
[[Category:External link templates|Doi]] | [[Category:External link templates|Doi]] | ||
Revision as of 01:16, 10 December 2006
This template is intended to allow simple standardized links to digital object identifiers (DOIs).
Examples
{{doi|10.1016/j.coi.2004.08.001}} produces:
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:
DOI:10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2
The escape code for < is %3C. For >, it is %3E