This template generates the name for the book-category of the book associated with the current page. There is precedent for change in this naming convention; at this writing the category is named Category:Book:{{BOOKNAME}}, while historically it was named Category:{{BOOKNAME}}.

Simply place {{BOOKCATEGORY}} on a page to get the output.

Optionally specify a page as an unnamed parameter to see the output for a different page than the current one.

{{BOOKCATEGORY|<full pagename>}}

Optionally specify the book name as parameter book to derive the associated book category name, bypassing the algorithm for deducing book name from page name; useful for deriving book category name when book name is already known, as in {{BookCat}}.

{{BOOKCATEGORY|book=<book name>}}
page where called result
Taxi Tongue/Dialogue 4

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:Taxi Tongue

Chess/Puzzles/Directmates

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:Chess

Wikijunior:Biology

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ဝီႇၶီႇလုၵ်ႈဢွၼ်ႇ:Biology

Wikijunior:Dinosaurs/Apatosaurus

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ဝီႇၶီႇလုၵ်ႈဢွၼ်ႇ:Dinosaurs

Wikijunior talk:Bugs/Shield Bug

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ဝီႇၶီႇလုၵ်ႈဢွၼ်ႇ:Bugs

Category:Horticulture/Templates/Boxes

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:Horticulture

Category:Book:Wikijunior:Solar System/Templates

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:Book:Wikijunior:Solar System

Template:Wikijunior:Solar System/coolfacts

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ဝီႇၶီႇလုၵ်ႈဢွၼ်ႇ:Solar System

User:Pi zero/Conlang/Beginner/Sounds

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ၽူႈၸႂ်ႉတိုဝ်း:Pi zero

User:Pi zero/sandbox/Conlang/Beginner/Sounds

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ၽူႈၸႂ်ႉတိုဝ်း:Pi zero

Category:User:Pi zero/sandbox/Conlang/Beginner/Sounds

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ၽူႈၸႂ်ႉတိုဝ်း:Pi zero

Template:User:Pi zero/sandbox/Conlang/Beginner/Sounds

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ၽူႈၸႂ်ႉတိုဝ်း:Pi zero

Shelf:Physical sciences

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:Shelf:Physical sciences

Template:Shelf:Page

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:Shelf:Page

Template:Shelf:Page/display

ပိူင်ထၢၼ်ႈ:ပပ်ႉ:Shelf:Page

This template contains the logic to sort out the base-name of the book. During the transition from the old naming scheme to the new one, a subtemplate {{BOOKCATEGORY/core}} was used to deduce the associated book-category name by determining which naming scheme the particular book used.

  • {{BOOKNAME}} — deduces full root name of book associated with the current page.
  • {{BOOKPAGENAME}} — deduces the part of page name after name of associated book.
  • {{BOOKSORTKEY}} — deduces usual sort key for use in book categories.
  • {{BOOKTEMPLATE}} — deduces full root name for templates of book associated with the current page.
  • {{BOOKTALKNAME}} — deduces main talk page name of book associated with the current page.
  • {{CHAPTERNAME}} — deduces first field of page name after the book name.
  • {{NAIVEBOOKNAME}} — page name without subpages and retaining the namespace.
  • {{SUBJECTNAME}} — deduces full root name of subject associated with the current page.
  • {{SUBJECTCATEGORY}} — deduces full root name of subject-category associated with the current page.