Template:BOOKPAGENAME/refactor

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Template documentation[edit] [history] [purge]
update use count

This subtemplate of {{BOOKPAGENAME}} handles cases where an in-book-style page name has been derived from the name of an associated non-book page.

Usage

The in-book-style name is expected as parameter pagename.

Internals

This template reparses the derived pagename, however it was derived before calling here, dispatching further deduction to either {{BOOKPAGENAME/inbook}}, {{BOOKPAGENAME/shelf}}, or {{BOOKPAGENAME/department}}. At this writing, the two non-book namespaces that invoke this are template space, where the derivation is trivial, and category space, where derivation is nontrivial and handled by {{BOOKPAGENAME/category}}.