Difference between revisions of "Template:Doi-inline"
Jump to navigation
Jump to search
imported>Tob~enwiki (doi inline similar to http-links) |
imported>Tob~enwiki (Usage) |
||
| Line 1: | Line 1: | ||
| − | [http://dx.doi.org/{{{1}}} {{{2|}}}] <noinclude>[[Category:External link templates|Doi]]</noinclude> | + | [http://dx.doi.org/{{{1}}} {{{2|}}}] <noinclude> |
| + | |||
| + | Usage: | ||
| + | |||
| + | <pre>{{doi-inline|doi|text}}</pre> | ||
| + | |||
| + | 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 <nowiki>[http://dx.doi.org/</nowiki>''doi'']. | ||
| + | |||
| + | Example: | ||
| + | <pre> | ||
| + | The {{doi-inline|10.1007/b62130|Red Book of Varieties and Schemes}}. | ||
| + | The Red Book of Varieties and Schemes {{doi-inline|10.1007/b62130}}. | ||
| + | </pre> | ||
| + | |||
| + | gives | ||
| + | |||
| + | :The {{doi-inline|10.1007/b62130|Red Book of Varieties and Schemes}}. | ||
| + | |||
| + | :The Red Book of Varieties and Schemes {{doi-inline|10.1007/b62130}}. | ||
| + | |||
| + | [[Category:External link templates|Doi]]</noinclude> | ||
Revision as of 16:50, 20 April 2006
Usage:
{{doi-inline|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-inline|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 [2] .