Template:BOOKNAME/category
Jump to navigation
Jump to search
![]() |
This template is used on 5,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in the template sandbox or a user subpage. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on the talk page before implementing them. |
This subtemplate of {{BOOKNAME}} handles for {{BOOKNAME/core}} the case of category namespace.
Usage
The two parameters expected are namespace
and pagename
.
Internals
At this writing, the associated book name for a category is derived from the pagename
by stripping an optional Book:
prefix and treating the result as the full name (with namespace) of an in-book page, delegating through {{BOOKNAME/refactor}} to {{BOOKNAME/inbook}}.
If the Book:
prefix is missing, by not stripping the category name's first five characters, it is treated as an old-style book-category name.