Template:BookCat/category/doc

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

Usage[edit source]

This template handles pages in the category namespace for {{BookCat}}.

Parameters are passed down from the parent. At this writing, parameters used are optional sortkey, and required fullpagename and pagename.

Internals[edit source]

This template respects the category name's choice to use or not use prefix Book:. If a category has a non-blank {{BOOKPAGENAME}}, this template puts the category in parent named by stripping off the last subfield. If the {{BOOKPAGENAME}} is blank, {{BOOKNAME}} {{BookCat/category/subjects}} and {{BookCat/category/shelves}} are used to retrieve subject categories.

See also[edit source]