Template:Shelves/leaf2/doc
This is a documentation subpage for Template:Shelves/leaf2 It may contain usage information, categories and other content that is not part of the original template page. |
This template handles an individual shelf listing of a book for {{Shelves}}, after slight preprocessing by {{Shelves/leaf}}.
Usage
editThe name of the shelf is the first unnamed parameter. On entry here, the first letter of the shelf name is upper-case.
Internals
editIf 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}}.