{{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].
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:
In PDFs these will be:
© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search