Difference between revisions of "Template:Doi"
From Testiwiki
Juha Villman (talk | contribs) (New page: [http://dx.doi.org/{{{1}}} {{{2|}}}] <noinclude> ==Usage== <nowiki>{{</nowiki>doi-inline|'''''<font color="#880000">doi</font>'''''|'''''<font color="#880000">text</font>'''''<nowiki>}}...) |
Juha Villman (talk | contribs) (copied from wikipedia and slightly edited) |
||
Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
− | <nowiki>{{</nowiki>doi | + | <nowiki>{{</nowiki>doi|'''''<font color="#880000">doi</font>'''''|'''''<font color="#880000">text</font>'''''<nowiki>}}</nowiki> |
will link ''text'' to the object identified by ''doi''. | will link ''text'' to the object identified by ''doi''. | ||
Line 11: | Line 11: | ||
==Example== | ==Example== | ||
<pre> | <pre> | ||
− | The {{doi | + | The {{doi|10.1007/b62130|Red Book of Varieties and Schemes}}. |
The Red Book of Varieties and Schemes {{doi-inline|10.1007/b62130}}. | The Red Book of Varieties and Schemes {{doi-inline|10.1007/b62130}}. | ||
</pre> | </pre> | ||
Line 17: | Line 17: | ||
gives | gives | ||
− | :The {{doi | + | :The {{doi|10.1007/b62130|Red Book of Varieties and Schemes}}. |
− | :The Red Book of Varieties and Schemes {{doi | + | :The Red Book of Varieties and Schemes {{doi|10.1007/b62130}}. |
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Revision as of 08:41, 20 March 2008
Usage
{{doi|doi|text}}
will link text to the object identified by doi. If no text is given, it will produce [n], as if you had linked it directly using [http://dx.doi.org/doi].
Example
The {{doi|10.1007/b62130|Red Book of Varieties and Schemes}}. The Red Book of Varieties and Schemes {{doi-inline|10.1007/b62130}}.
gives
- The Red Book of Varieties and Schemes doi:10.1007/b62130 .