Template:Shelf:Allbooks category/display/doc

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

This template implements content generation for template {{Shelf:Allbooks category}}. On entry here, the current page is known to be a category with name prefix Shelf:.

Usage[edit source]

Two parameters are expected.

  • shelf — the name of the shelf. This is the name of the allbooks category without the Shelf: prefix or /all books suffix.
  • parents — a wikilisp-formatted list of parents of the shelf. The parents may be shelves or departments.

Internals[edit source]

This template generates most of the content directly, but delegates parent categorization through {{Shelf:Map}} to {{Shelf:Allbooks category/parent}}.