Template:ISBN: Difference between revisions

Jump to navigation Jump to search
(Updated from Wikipedia)
 
No edit summary
Line 1: Line 1:
<includeonly>[[International Standard Book Number|ISBN]] [[Special:BookSources/{{{1}}}|{{{1}}}]]{{#invoke:Check isxn|check_isbn|{{{1}}}|error=&nbsp;<span class="error" style="font-size:88%">Invalid&nbsp;ISBN</span>{{main other|[[Category:Pages with ISBN errors]]}}}}</includeonly><noinclude>
<includeonly>[[International Standard Book Number|ISBN]] [[Special:BookSources/{{{1}}}|{{{1}}}]]</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 19:16, 30 June 2017

Usage

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

results in:

ISBN 0-7475-3269-9

The idea is to switch from "magic link" syntax to more explicit syntax. Template:Oldid2 determined the magic link should be replaced by this template.

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