Difference between revisions of "Template:ISBNT/doc"

From blackwiki
Jump to navigation Jump to search
imported>Koavf
imported>Jonesey95
(→‎Entering ISBNs: rewrite, link to Magic links. That is the place to mention the phase-out, not here. The function of this template will remain the same.)
Line 6: Line 6:
  
 
===Entering ISBNs===
 
===Entering ISBNs===
Formerly, a magic link is automatically created by typing "ISBN", a space, and the digits of the International Standard Book Number. Example:
+
An ISBN "[[Help:Magic links|magic link]]" is automatically created by typing "ISBN", a space, and the digits of the International Standard Book Number. Example:
 
* <tt><nowiki>ISBN 978-1-4133-0454-1</nowiki></tt> &nbsp; produces ISBN 978-1-4133-0454-1
 
* <tt><nowiki>ISBN 978-1-4133-0454-1</nowiki></tt> &nbsp; produces ISBN 978-1-4133-0454-1
 
Magic words are being phased out in favor of modules or templates.
 
  
 
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:
 
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:

Revision as of 22:32, 5 December 2016

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 "magic link" is automatically created by typing "ISBN", a space, and the digits of 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

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.

See also