Difference between revisions of "Template:ISBNT"

From blackwiki
Jump to navigation Jump to search
imported>Matthiaspaul
(Using ISBN template for easier central maintenance)
imported>JJMC89
 
Line 1: Line 1:
<includeonly>{{ISBN|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|invalid1={{{invalid1|}}}|invalid2={{{invalid2|}}}|invalid3={{{invalid3|}}}|invalid4={{{invalid4|}}}|invalid5={{{invalid5|}}}|invalid6={{{invalid6|}}}|invalid7={{{invalid7|}}}|invalid8={{{invalid8|}}}|invalid9={{{invalid9|}}}|leadout={{{leadout|}}}|plainlink=yes}}</includeonly><noinclude>{{documentation}}<!-- Add categories and interwiki lines to the /doc subpage, not here! --></noinclude>
+
<includeonly>{{#invoke:template wrapper|wrap|_template=ISBN|_include-positional=yes|plainlink=yes}}</includeonly><noinclude>{{documentation}}<!-- Add categories and interwiki lines to the /doc subpage, not here! --></noinclude>

Latest revision as of 03:45, 4 March 2019

Template documentation[view] [edit] [history] [purge]

Usage

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

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:

Error checking

This template uses Module:Check isxn 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, add invalid?=yes (with ? replaced by the parameter number 1 to 9) to the template. In this case, the article will be added to Category:Pages with listed invalid ISBNs.

  • {{ISBNT|1-4133-0451-0|invalid1=no}}   produces 1-4133-0451-0 Parameter error in {{ISBN}}: Invalid ISBN.
  • {{ISBNT}}   produces Parameter error in {{ISBN}}: Missing ISBN.

See also