Difference between revisions of "Template:ISBNT/doc"
imported>Matthiaspaul (→See also: +entry) |
imported>Jonesey95 |
||
| Line 9: | Line 9: | ||
===Entering ISBNs=== | ===Entering ISBNs=== | ||
An ISBN link is created by using the {{tl|ISBN}} template with the International Standard Book Number. Example: | An ISBN link is created by using the {{tl|ISBN}} template with the International Standard Book Number. Example: | ||
| − | * < | + | * <code><nowiki>{{ISBN|978-1-4133-0454-1}}</nowiki></code> 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: | 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: | ||
| − | * < | + | * <code><nowiki>{{ISBNT|1-4133-0454-0}}</nowiki></code> produces {{ISBNT|1-4133-0454-0}} |
| − | * < | + | * <code><nowiki>{{ISBNT|978-1-4133-0454-1}}</nowiki></code> produces {{ISBNT|978-1-4133-0454-1}} |
| − | * < | + | * <code><nowiki>{{ISBNT|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1}}</nowiki></code> produces {{ISBNT|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1}} |
| − | * < | + | * <code><nowiki>{{ISBNT|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1|leadout=and}}</nowiki></code> produces {{ISBNT|978-1-4133-0454-1|978-1-4133-0454-1|978-1-4133-0454-1|leadout=and}} |
===Error checking=== | ===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]]. | 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 < | + | 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 <code>invalid?=yes</code> (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]]. |
| − | * < | + | * <code><nowiki>{{ISBNT|1-4133-0451-0}}</nowiki></code> produces {{ISBNT|1-4133-0451-0}} |
| − | * < | + | * <code><nowiki>{{ISBNT|1-4133-0451-0|invalid1=yes}}</nowiki></code> produces {{ISBNT|1-4133-0451-0|invalid1=yes}} |
| − | * < | + | * <code><nowiki>{{ISBNT|1-4133-0451-0|invalid1=no}}</nowiki></code> produces {{ISBNT|1-4133-0451-0|invalid1=no}} |
| − | * < | + | * <code><nowiki>{{ISBNT}}</nowiki></code> produces {{ISBNT}} |
===See also=== | ===See also=== | ||
Latest revision as of 02:16, 3 June 2020
| This is a documentation subpage for Template:ISBNT. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
| This template is used on approximately 33,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.
Transclusion count updated automatically (see documentation). |
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:
{{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
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}}produces 1-4133-0451-0 Parameter error in {{ISBN}}: Invalid ISBN.
{{ISBNT|1-4133-0451-0|invalid1=yes}}produces 1-4133-0451-0
{{ISBNT|1-4133-0451-0|invalid1=no}}produces 1-4133-0451-0 Parameter error in {{ISBN}}: Invalid ISBN.
See also
- Wikipedia:ISBN
- {{ISBN}}
- {{SBN}}
- {{ISMN}}
- {{Listed Invalid ISBN}}
- {{Catalog lookup link}}