Help:ISBN links

From The Scuba Wiki

Jump to: navigation, search
MediaWiki Handbook: Contents, Readers, Editors, Moderators, System admins +/-

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:Booksourcetext 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(
	"Amazon.com" => "http://astore.amazon.com/amazon-books-20/detail/$1"
	"Amazon.de" => "http://astore.amazon.de/www.amazon.de-21/detail/$1"
        "Amazon.fr" => "http://astore.amazon.fr/www.amazon.fr-21/detail/$1" 
        "Amazon.co.uk" => "http://astore.amazon.co.uk/www-amazon-co-uk-21/detail/$1" 
	"AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
	"PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1",
	"Barnes & Noble" => "http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1",
);

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

Alternative

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}}.


+/-

Links to other help pages

Help contents
Meta | Wikinews | Wikipedia | Wikiquote | Wiktionary | commons: | mw: | b: | s: | mw:Manual | google
Versions of this help page (for other languages see below)
Meta | Wikinews | Wikipediahttp://en.wikipedia.org/Help:ISBN_links | Wikiquote | Wiktionary
What links here on Meta or from Meta | Wikipedia | MediaWiki
Reading
Go | Search | Stop words | URL | Namespace | Page name | Section
Backlinks | Link | Piped link | Interwiki link | Redirect | Category | Image page
Logging in and preferences
Logging in | Preferences | User style
Editing
Advanced editing | Editing FAQ | Edit toolbar | Export | Import | Shortcuts
Tracking changes
Recent changes (enhanced) | Related changes | Watching pages | Diff
Page history | Edit summary | User contributions | Minor edit | Patrolled edit
Style & formatting
Wikitext examples | Reference card | HTML in wikitext | List | Table | Sorting | Colors
Special input and output
Inputbox | Special characters | Displaying a formula | Images (uploads) | EasyTimeline
Advanced functioning
Template | Advanced templates | Parser function | ParserFunctions | Parameter default
Variable | Magic word | System message | Substitution | Array | Calculation
Page management
Starting a new page | Renaming (moving) a page | Protecting pages | Deleting a page
Special pages
Talk page | Testing | Sandbox | CentralNotice

Template:-

Personal tools
support the site