Jump to content

Template:SBN/doc

From Wikipedia, the free encyclopedia

This template produces a simple, standardized link from a Standard Book Number (SBN). The SBN is rendered using much of the same code that renders |SBN= in Citation Style 1 and Citation Style 2 templates except that this template can be used to render multiple SBNs.

Usage

[edit]

This template accepts these parameters:

|idn= – a SBN identifier; the |idn= parameter name is not required but is recommended for clarity when the template has multiple SBNs
|link= – accepts a single value no; for use when the 'SBN' prefix in the rendering should not be linked
|plainlink= – accepts a single value yes; suppresses the 'SBN' prefix in the rendering
|leadout= – defines the conjunction between the last two identifiers in the rendered list; defaults to ,

The basic form is:

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

For multiple SBNs:

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

To unlink the prefix:

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

To suppress the prefix:

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

To use and between the last two identifiers in the rendered list:

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

When this template emits an error message for a valid (working) SBN, use the accept-as-written markup ((..)) to suppress the error message.

{{SBN|340-01381-0}}SBN 340-01381-0 {{sbn}}: Check sbn value: checksum (help)
{{SBN|((340-01381-0))}}SBN 340-01381-0 {{sbn}}: ignored ISBN errors (link)

Tracking categories

[edit]
  • Category:Ignored ISBN errorsmaintenance category for {{SBN}} templates using the accept-as-written markup ((..)) to suppress an error message – shared with {{ISBN}}
  • Category:Pages with SBN errorserror category for {{ISBN}} templates that show an error message

Because this template uses the same code as cs1|2 templates, error and maintenance visibility is controlled the same way. See Help:CS1 errors § Controlling error message display.

See also

[edit]

Template Data

[edit]

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