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

Template:ISBNT/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:ISBNT
This is the template sandbox page for Template:ISBNT (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:CS1 identifiers
  • Module:Template wrapper (sandbox)
WarningThis template is used on approximately 44,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

Contents

  • 1 Usage
  • 2 Entering ISBNs
  • 3 Error checking
  • 4 See also

Usage

edit

Use this template to create a link to Special:BookSources for an International Standard Book Number without the usual "ISBN" prefix. For example, in a table with a column labelled "ISBN", it would be redundant to write "ISBN" before every International Standard Book Number in the column.

Entering ISBNs

edit

An ISBN link is created by using the {{ISBN}} template with the International Standard Book Number. Example:

  • {{ISBN|978-1-4133-0454-1}}   produces ISBN 978-1-4133-0454-1

In tables (or other applications) where the letters "ISBN" would be redundant, this ISBNT template may be used instead, and the link still gets created automatically:

  • {{ISBNT|1-4133-0454-0}}   produces 1-4133-0454-0
  • {{ISBNT|978-1-4133-0454-1}}   produces 978-1-4133-0454-1
  • {{ISBNT|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1}}   produces 978-1-4133-0454-1, 978-1-4133-0454-1, 978-1-4133-0454-1
  • {{ISBNT|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1|leadout=and}}   produces 978-1-4133-0454-1, 978-1-4133-0454-1 and 978-1-4133-0454-1

Error checking

edit

This template uses Module:CS1 identifiers to validate the ISBN. If the ISBN is not valid, this subtemplate will still generate the link, and it will add the article to Category:Pages with ISBN errors.

Since invalid ISBNs are sometimes used in publications, it is possible to disable the validity check for individual ISBNs given as parameters. In order to do so, use the accept-as-written markup ((..)) to the template. In this case, the article will be added to Category:Ignored ISBN errors.

  • {{ISBNT|1-4133-0451-0}}   produces 1-4133-0451-0 {{isbn}}: Check isbn value: checksum (help)
  • {{ISBNT|((1-4133-0451-0))}}   produces 1-4133-0451-0 {{isbn}}: ignored ISBN errors (link)
  • {{ISBNT}}   produces {{isbn}}: required identifier missing (help)

See also

edit
  • Wikipedia:ISBN
  • {{ISBN}}
  • {{SBN}}
  • {{ISMN}}
  • {{Listed Invalid ISBN}}
  • {{Catalog lookup link}}
The above documentation is transcluded from Template:ISBNT/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:ISBNT/sandbox&oldid=1116413747"
Last edited on 16 October 2022, at 12:48

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 16 October 2022, at 12:48 (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