Template:ISBN/doc
Usage
editUse this template to create a link (or list of links) to Special:BookSources for one or more International Standard Book Numbers with the usual "ISBN" prefix. The template supports 10- and 13-digit ISBNs (with or without hyphens).
{{ISBN|0-7475-3269-9}}
results in:
And:
{{ISBN|978-1-4133-0454-1}}
results in:
The idea is to switch from "magic link" syntax to more explicit syntax. If more than one ISBN is given, the template will separate them using a comma:
{{ISBN|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1}}
results in:
Alternatively the conjugation between the last two list items can be defined using the leadout= parameter:
{{ISBN|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1|leadout=and}}
results in:
It the leading "ISBN" link should not occur (for example in longer lists), it can be suppressed using the plainlink=yes parameter:
{{ISBN|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1|plainlink=yes}}
results in:
(Alternatively the {{ISBNT}} template can be used.)
The plainlink and leadout parameter can be used at the same time:
{{ISBN|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1|plainlink=yes|leadout=as well as}}
results in:
Error checking
editThis template uses Module:Check isxn to validate the ISBN. If the ISBN is not valid, this subtemplate will still generate the link, and it will add the article to Category:Pages with ISBN errors.
- {{ISBN|1-4133-0451-0}} produces ISBN 1-4133-0451-0 Invalid ISBN
- {{ISBN|1-4133-0451-0|invalid1=yes}} produces ISBN 1-4133-0451-0 Invalid ISBN
- {{ISBN|1-4133-0451-0|invalid1=no}} produces ISBN 1-4133-0451-0 Invalid ISBN
- {{ISBN}} produces [[Special:BookSources/{{{1}}}|ISBN {{{1}}}]] Invalid ISBN
See also
edit- Wikipedia:ISBN
- {{ISBNT}}, to make an ISBN link without a visible prefix