Template:SBN/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

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.

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}}Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

For multiple SBNs:

{{SBN|340-01381-8|340-01381-8|340-01381-8}}Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

To unlink the prefix:

{{SBN|340-01381-8|link=no}}Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

To suppress the prefix:

{{SBN|340-01381-8|plainlink=yes}}Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

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

{{SBN|340-01381-8|340-01381-8|340-01381-8|leadout=and}}Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

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}}Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
{{SBN|((340-01381-0))}}Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

Tracking categories

[edit source]
  • 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 source]

Template Data

[edit source]

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