|
|
| (23 intermediate revisions by 18 users not shown) |
| Line 1: |
Line 1: |
| [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{1|{{{id}}}}}} {{{2|{{{label|{{{1|{{{id}}}}}}}}}}}}]<noinclude> | | {{hide in print|{{#ifeq:{{str left|{{{1}}}|3}}|10.|[[doi (identifier)|doi]]:[https://doi.org/{{urlencode:{{{1|{{{id}}}}}}}} {{#tag:nowiki|{{{1|{{{id}}}}}}}}]|<includeonly>[[Category:Pages with DOI errors]]<span class="error">Error: Bad DOI specified!</span></includeonly>}}<!-- |
| | | -->}}<!-- |
| This template is intended to allow simple standardized links to [[digital object identifier]]s (DOIs).
| | -->{{only in print|doi:{{{1|{{{id}}}}}}<!-- |
| | | -->}}<!-- |
| ==Examples==
| | --><noinclude> |
| <nowiki>{{doi|10.1016/j.coi.2004.08.001}}</nowiki> produces:
| | {{documentation}}</noinclude> |
| | |
| {{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 < is <code>%3C</code>. For >, it is <code>%3E</code>
| |
| | |
| [[Category:External link templates|Doi]]
| |
| | |
| [[ja:Template:Doi]]
| |
| [[no:Mal:Doi]]
| |
| </noinclude> | |
Latest revision as of 04:25, 3 September 2020
Lua error in Module:Documentation at line 7: Module:Documentation/config returned boolean, table expected.