Extension:AllBooks

What can this extension do?

 * Creates the variable.
 * This extension will list all books in a Wikibooks wiki when using two of the most common naming schemes:  and.
 * Currently books with a subtitle like  are not detected as a book (they are considered not to be a top-level page because there is a colon in the title); they should be "registered" with this extension by providing a soft redirect from   to   so that the book will be listed and counted properly. The All pages links on Special:AllBooks links to Special:PrefixIndex/Book, so the book subpages will not be listed there. Users will have to click the link at the soft redirect to get to your book. Perhaps using that naming convention isn't the best thing to do anyways, as it makes very long pagenames.
 * This behaviour may change in the future to accommodate additional naming schemes in use on the various language editions of Wikibooks, or to better accommodate the two mentioned above.

Usage

 * Special:AllBooks lists all books, and links to the appropriate PrefixIndex.
 * Allows you to list books starting at some point in the alphabet using
 * is the number of books on the wiki.

Download instructions
There are four files, which all go in. Please cut and paste the code found below for each file. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

AllBooks.php

 * This code goes in the file

AllBooks_body.php

 * This code goes in the file

AllBooks.i18n.php

 * This code goes in the file

NumberOfBooks.php

 * This code goes in the file