Template:SBN
| This template uses Lua: |
| File:Information icon4.svg | The link in this template goes to a redirect page instead of to the article that is the target of the redirect. This redirect link is intentional so that links using the template are distinguishable from links to the article on the Special:WhatLinksHere/SBN page. |
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 source]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 valueno; for use when the 'SBN' prefix in the rendering should not be linked|plainlink=– accepts a single valueyes; 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 errors – maintenance category for
{{SBN}}templates using the accept-as-written markup((..))to suppress an error message – shared with{{ISBN}} - Category:Pages with SBN errors – error 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]- Wikipedia:ISBN
- {{ISBN}}
- {{ISBNT}}, to make an ISBN link without a visible prefix
- {{Listed Invalid ISBN}}, to link an ISBN that is invalid but printed in a source publication.
- {{PMID}}
- {{IETF RFC}}
- {{ISMN}}
- {{ISSN}}
- {{Catalog lookup link}}
- {{ISBN missing}}
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| SBN #1 | 1 | first SBN to put in the list
| String | required |
| SBN #2 | 2 | second SBN to put in the list
| String | suggested |
| SBN #3 | 3 | third SBN to put in the list
| String | optional |
| SBN #4 | 4 | fourth SBN to put in the list
| String | optional |
| SBN #5 | 5 | fifth SBN to put in the list
| String | optional |
| 6 | 6 | no description | Unknown | optional |
| 7 | 7 | no description | Unknown | optional |
| 8 | 8 | no description | Unknown | optional |
| 9 | 9 | no description | Unknown | optional |
| Suppress link to article? | link | If 'no', does not produce a link to article before the list
| String | optional |
| Suppress link to SBN? | plainlink | If 'yes', does not produce "[[Standard Book Number|SBN]]: " before the list
| String | optional |
| last list joiner text | leadout | Text between second-to-last and last book SBN's
| String | optional |