Template:SBN
| This template uses Lua: |
| The wikilink produced by this template goes to a dedicated redirect page, NOT directly to the displayed article name. This indirection was established to keep the wikilinks produced by this template separate from intentional links to the article.
Wikilinks produced by this template go to SBN (identifier) and are listed at Special:WhatLinksHere/SBN (identifier). Wikilinks added by editors go to SBN and are listed 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]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}}→ 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}}: Checksbnvalue: checksum (help){{SBN|((340-01381-0))}}→ SBN 340-01381-0{{sbn}}: ignored ISBN errors (link)
Tracking categories
[edit]- 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]- 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]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 |