Template:ISBN/doc

Usage
Use 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).

results in:

ISBN 0-7475-3269-9

And:

results in:

ISBN 978-1-4133-0454-1

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:

results in:

ISBN 978-1-4133-0454-1

Alternatively the conjunction between the last two list items can be defined using the  parameter:

results in:

ISBN 978-1-4133-0454-1

If the leading "ISBN" text should not occur (for example in longer lists), it can be suppressed using the  parameter:

results in:

ISBN 978-1-4133-0454-1

The  and   parameter can be used at the same time:

results in:

ISBN 978-1-4133-0454-1

Formatting
The template preserves the formatting of the input values, for example:

results in:

ISBN 978-1-4133-0454-1

Error checking
This 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.

Since invalid ISBNs are sometimes used in publications, it is possible to disable the validity check for individual ISBNs given as parameters. In order to do so, add  (with ? replaced by the parameter number 1 to 9) to the template. In this case, the article will be added to Category:Pages with listed invalid ISBNs.


 * produces ISBN 1-4133-0451-0


 * produces ISBN 1-4133-0451-0


 * produces ISBN 1-4133-0451-0


 * produces ISBN

Template Data
{	"params": { "1": {			"label": "ISBN #1", "description": "first ISBN to put in the list", "example": "0-674-01181-3", "type": "string", "required": true, "suggested": true },		"2": {			"label": "ISBN #2", "description": "second ISBN to put in the list", "example": "0-674-04200-3", "type": "string", "suggested": true },		"3": {			"label": "ISBN #3", "description": "third ISBN to put in the list", "example": "0-674-01169-3", "type": "string" },		"4": {			"label": "ISBN #4", "description": "fourth ISBN to put in the list", "example": "0-674-01181-6", "type": "string" },		"5": {			"label": "ISBN #5", "description": "fifth ISBN to put in the list", "example": "0-674-02181-5", "type": "string" },		"6": {},		"7": {},		"8": {},		"9": {},		"link": { "label": "Suppress link to article?", "description": "If 'no', does not produce a link before the list", "example": "no", "type": "string" },		"noprefix": { "label": "Suppress leading ISBN?", "description": "If 'yes', does not produce \"ISBN: \" before the list", "example": "yes", "type": "string" },		"leadout": { "label": "last list joiner text", "description": "Text between second-to-last and last book ISBN's", "example": "as well as", "type": "string" },		"invalid1": {}, "invalid2": {}, "invalid3": {}, "invalid4": {}, "invalid5": {}, "invalid6": {}, "invalid7": {}, "invalid8": {}, "invalid9": {} },	"description": "Use 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" }