Difference between revisions of "Template:Doi-inline/doc"
Jump to navigation
Jump to search
imported>Matthiaspaul (changed display of template name to lowercae for cosmetical reasons / consistency) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 3: | Line 3: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
==Usage== | ==Usage== | ||
| − | <nowiki>{{</nowiki>doi-inline|'''''< | + | <nowiki>{{</nowiki>doi-inline|'''''<span style="color:#880000">doi</span>'''''|'''''<span style="color:#880000">text</span>'''''<nowiki>}}</nowiki> |
will link ''text'' to the object identified by ''doi''. If no text is given, it will produce [''n''], as if you | will link ''text'' to the object identified by ''doi''. If no text is given, it will produce [''n''], as if you | ||
| Line 30: | Line 30: | ||
*[[Template:bibcode]] | *[[Template:bibcode]] | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
| − | |||
[[Category:External link templates|Doi]] | [[Category:External link templates|Doi]] | ||
[[ja:Template:doi-inline]] | [[ja:Template:doi-inline]] | ||
| − | </includeonly> | + | [[Category:Catalog lookup templates]] |
| + | }}</includeonly> | ||
Latest revision as of 00:11, 25 April 2020
| 40px | This is a documentation subpage for Template:Doi-inline. It contains usage information, categories and other content that is not part of the original template page. |
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 SchemesTemplate:Only in print.
- The Red Book of Varieties and Schemes [1]Template:Only in print.
In PDF and Books these will be:
- The Red Book of Varieties and Schemes (doi:10.1007/b62130).
- The Red Book of Varieties and Schemes (doi:10.1007/b62130).
See also