Template:Shelves/leaf2/doc

From Wikibooks, open books for an open world
Jump to navigation Jump to search

This template handles an individual shelf listing of a book for {{Shelves}}, after slight preprocessing by {{Shelves/leaf}}.

Usage[edit]

The name of the shelf is the first unnamed parameter. On entry here, the first letter of the shelf name is upper-case.

Internals[edit]

If there is a problem with the specified shelf or with its ancestry, this template prefers to display a message and do no categorization, leaving the shelf primarily responsible for requesting help (except this isn't possible if the shelf doesn't exist, in which case the page is added to Category:Book:Wikibooks Stacks/Attention needed). When everything looks okay, delegates allbooks categorization through {{Shelf:Map}} to {{Shelves/ancestor}}.