• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:ISBN/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:ISBN
This is the template sandbox page for Template:ISBN (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:CS1 identifiers
  • Module:Citation/CS1/Configuration (sandbox)
  • Module:Citation/CS1/Identifiers (sandbox)
  • Module:Citation/CS1/Utilities (sandbox)
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/ISBN page.
WarningThis template is used on 471,000+ pages, or roughly 1% of all pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it may cause display errors. For example | isbn = {{ISBN|123-456-7890-123}} is incorrect use.

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

Contents

  • 1 Usage
  • 2 Tracking categories
    • 2.1 See also
  • 3 Template Data

Usage

edit

This template accepts these parameters:

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

The basic form is:

{{ISBN|0-7475-3269-9}} → ISBN 0-7475-3269-9

For multiple ISBNs:

{{ISBN|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1}} → ISBN 978-1-4133-0454-1, 978-1-4133-0454-1, 978-1-4133-0454-1

To unlink the prefix:

{{ISBN|0-7475-3269-9|link=no}} → ISBN 0-7475-3269-9

To suppress the prefix:

{{ISBN|0-7475-3269-9|plainlink=yes}} → 0-7475-3269-9

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

{{ISBN|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1|leadout=and}} → ISBN 978-1-4133-0454-1, 978-1-4133-0454-1 and 978-1-4133-0454-1

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

{{ISBN|1-4133-0451-0}} → ISBN 1-4133-0451-0 {{isbn}}: Check isbn value: checksum (help)
{{ISBN|((1-4133-0451-0))}} → ISBN 1-4133-0451-0 {{isbn}}: ignored ISBN errors (link)

Tracking categories

edit
  • Category:Ignored ISBN errors – maintenance category for {{ISBN}} templates using the accept-as-written markup ((..)) to suppress an error message – shared with {{ISBN}}
  • Category:Pages with ISBN 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
  • {{SBN}}, similar template for SBNs rather than ISBNs
  • {{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.
  • {{OCLC}}, to link directly to Worldcat; useful for books with no ISBN.
  • {{PMID}}
  • {{IETF RFC}}
  • {{ISMN}}
  • {{ISSN}}
  • {{Catalog lookup link}}
  • {{ISBN missing}}

Template Data

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:ISBN in articles based on its TemplateData.

TemplateData for ISBN

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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
ISBN #11

first ISBN to put in the list

Example
0-674-01181-3
Stringrequired
ISBN #22

second ISBN to put in the list

Example
0-674-04200-3
Stringsuggested
ISBN #33

third ISBN to put in the list

Example
0-674-01169-3
Stringoptional
ISBN #44

fourth ISBN to put in the list

Example
0-674-01181-6
Stringoptional
ISBN #55

fifth ISBN to put in the list

Example
0-674-02181-5
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 before the list

Example
no
Stringoptional
Suppress link to ISBN?plainlink

If 'yes', does not produce "[[ISBN]]: " before the list

Example
yes
Stringoptional
last list joiner textleadout

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

Example
as well as
Stringoptional
The above documentation is transcluded from Template:ISBN/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:ISBN/sandbox&oldid=1124197387"
Last edited on 27 November 2022, at 20:23

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 27 November 2022, at 20:23 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop