Template:ISBN-13/doc

This template detects and then converts valid ISBN-10 numbers to equivalent ISBN-13 ones. Anything else passes through unchanged.

It is designed to work with the  produced by Special:BookSources. That page removes punctuation from the supplied ISBN before generating, so this template does not need to handle punctuated or other formatted ISBN numbers. Symmetrically, it outputs unformatted ISBN-13 numbers.

Not all book search sites readily recognise ISBN-10 numbers. Converting these to ISBN-13 before executing a book search makes those searches more reliable. ISBN-13 replaced ISBN-10 in 2007.

Usage
Invoke with:

Test cases
Valid conversions:

Invariant cases:

Invalid inputs: