Help:ISBN links

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search
MediaWiki Handbook: Contents, Readers, Editors, Moderators, System admins, Researchers +/-

For a book with ISBN e.g. 0131103628, the simple wikitext "ISBN 0131103628" gives ISBN 0131103628, with the same target as Special:Booksources/0131103628: the text of MediaWiki:Booksources-text and links regarding the book according to the contents of the page "Book sources" in the project namespace (ns4, here: Meta), where each occurrence of MAGICNUMBER is replaced with the ISBN.

If there is no such "Book sources" page, a default page is displayed. It uses the settings $wgBookstoreListEn in Language.php, currently:

/* private */ $wgBookstoreListEn = array(
        "" => "$1"
        "" => "$1"
        "" => "$1" 
        "" => "$1" 
        "AddALL" => "$1&type=ISBN",
        "PriceSCAN" => "$1",
        "Barnes & Noble" => "$1",

The name of the book sources page can be changed by editing MediaWiki:Booksources[dead link], but the name space cannot.


Use a template like Template:ISBN allowing {{ISBN|193151447X}} to produce something like:

ISBN 193151447X

However, often a separate page would be desirable. This can be done, but requires a page like 193151447X for every book. Those pages can call Template:Bk, so that they only have to contain {{bk}}.