模板:doi-inline/doc

来自决策链云智库
< 模板:Doi-inline模板:Doi-inline/doc /
Zeroclanzhang讨论 | 贡献2024年1月28日 (日) 00:13的版本 (创建页面,内容为“{{lowercase}} {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> ==Usage== <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 had linked it directly using <nowiki>[https://doi.org/</nowiki>''doi'']. ==Exam…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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 [https://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.
The Red Book of Varieties and Schemes [1].

In PDFs 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