Usage

lemba

Use this template to create a link (or list of links) to Special:BookSources for one or more Standard Book Numbers with "SBN" prefix. The template supports 9-digit SBNs (with or without hyphens). The prefix link deliberately goes through an (identifier) redirect in order to aid reverse lookup of articles which contain SBN links from specific books (rather than only mentioning the concept of Standard Book Numbers in general).

{{SBN|340-01381-8}}

results in:

SBN 340-01381-8

If more than one SBN is given, the template will separate them using a comma:

{{SBN|340-01381-8|340-01381-8|340-01381-8}}

results in:

SBN 340-01381-8, 340-01381-8, 340-01381-8

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

{{SBN|340-01381-8|340-01381-8|340-01381-8|leadout=, and}}

results in:

SBN 340-01381-8, 340-01381-8, and 340-01381-8

If the leading "SBN" link should not be linked to (for example because it was already linked to in the article), it can be suppressed using the link=no parameter:

{{SBN|340-01381-8|340-01381-8|340-01381-8|link=no}}

results in:

SBN 340-01381-8, 340-01381-8, 340-01381-8

If the leading "SBN" link should not occur (for example in longer lists), it can be suppressed using the plainlink=yes parameter:

{{SBN|340-01381-8|340-01381-8|340-01381-8|plainlink=yes}}

results in:

340-01381-8, 340-01381-8, 340-01381-8

The plainlink and leadout parameter can be used at the same time:

{{SBN|340-01381-8|340-01381-8|340-01381-8|plainlink=yes|leadout=as well as}}

results in:

340-01381-8, 340-01381-8 as well as 340-01381-8

Formatting

lemba

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

{{SBN|340-01381-8|340013818|34001381-8}}

results in:

SBN 340-01381-8, 340013818, 34001381-8

Error checking

lemba

This template uses Module:Check isxn to validate the SBN. If the SBN is not valid, this subtemplate will still generate the link, and it will add the article to Category:Pages with ISBN errors.

Since invalid SBNs are sometimes used in publications, it is possible to disable the validity check for individual SBNs given as parameters. In order to do so, add invalid?=yes (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.

  • {{SBN|340-01381-0}}   produces SBN 340-01381-0 Parameter error in {{SBN}}: checksum
  • {{SBN|340-01381-0|invalid1=no}}   produces SBN 340-01381-0 Parameter error in {{SBN}}: checksum
  • {{SBN}}   produces Parameter error in {{SBN}}: Missing SBN.

Tracking categories

lemba

See also

lemba

Template Data

lemba

Use this template to create a link (or list of links) to Special:BookSources for one or more Standard Book Numbers with the "SBN" prefix

Template parameters

ParameterDescriptionTypeStatus
SBN #11

first SBN to put in the list

Example
340-01381-8
Stringrequired
SBN #22

second SBN to put in the list

Example
340-01381-8
Stringsuggested
SBN #33

third SBN to put in the list

Example
340-01381-8
Stringoptional
SBN #44

fourth SBN to put in the list

Example
340-01381-8
Stringoptional
SBN #55

fifth SBN to put in the list

Example
340-01381-8
Stringoptional
66

no description

Unknownoptional
77

no description

Unknownoptional
88

no description

Unknownoptional
99

no description

Unknownoptional
Suppress link to article?link

If 'no', does not produce a link to article before the list

Example
no
Stringoptional
Suppress link to SBN?plainlink

If 'yes', does not produce "[[Standard Book Number|SBN]]: " before the list

Example
yes
Stringoptional
last list joiner textleadout

Text between second-to-last and last book SBN's

Example
as well as
Stringoptional
invalid1invalid1

no description

Unknownoptional
invalid2invalid2

no description

Unknownoptional
invalid3invalid3

no description

Unknownoptional
invalid4invalid4

no description

Unknownoptional
invalid5invalid5

no description

Unknownoptional
invalid6invalid6

no description

Unknownoptional
invalid7invalid7

no description

Unknownoptional
invalid8invalid8

no description

Unknownoptional
invalid9invalid9

no description

Unknownoptional