Template:BOOKSORTKEY/doc

Returns the full name of a chapter or the book name if it isn't a chapter.

Usage
Simply place  on a page to get the output.

Optionally specify a page as a parameter to see the output for a different page than the current one.