This template puts the page on which it's used ({{FULLPAGENAME}}) into appropriate categories, based on certain page-naming and page-categorization conventions.

လွင်ႈၸႂ်ႉတိုဝ်း

မႄးထတ်း

When used without parameters, it

  • places subpages of a book in the book's category (ပိူင်ထၢၼ်ႈ:ပပ်ႉ:{{BOOKNAME}}) and sorts them by chapter name.
  • places a book's templates in the book's template category (ပိူင်ထၢၼ်ႈ:ပပ်ႉ:{{BOOKNAME}}/Templates). This only does the right thing if a book's templates begin with  Template:{{BOOKNAME}} .
  • places a book's template category in the book's category and in  Category:Book-specific templates .
  • places any other category in its parent, sorted by the category's last name. The parent has the same name except removing everything from the last slash on; and the last name is the part that was removed after that last slash. For example, Category:My Book/Images  would go in  Category:My Book  with sort key  Images .

ပႃႇရႃႇမီႇတႃႇ

မႄးထတ်း

Optional parameter  filing=deep  changes the behavior on book pages, so that a book page with more than one slash in its name is placed in a subcategory of the category where its parent page would be placed, sorted by the page's last name. For example, using  {{BookCat|filing=deep}}  on page  My Book/Maps/Asia  would put that page in  Category:My Book/Maps  with sort key  Asia .

Optional parameter  template-filing=deep  changes the behavior on template pages to deep filing (so  Template:My book/Maps/Asia  would go in  Category:My book/Templates/Maps).

Optional parameter  sort or sortkey specifies a sort key to be used for categorization instead of relying on {{BOOKSORTKEY}}.

Optional first unnamed parameter is a full page name to use instead of the {{FULLPAGENAME}} of the current page.

An alternative template {{BookCat/diagnose}} reports the output of {{BookCat}} (with or without parameters) as an inert string, rather than categorizing the current page.

တူဝ်ယၢင်ႇ

မႄးထတ်း
page where called result
Taxi Tongue/Dialogue 4

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:Taxi Tongue|Dialogue 4 ]][[Category:Pages passing page name to BookCat]]

Chess/Puzzles/Directmates

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:Chess|Puzzles/Directmates ]][[Category:Pages passing page name to BookCat]]

Wikijunior:Biology

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ဝီႇၶီႇလုၵ်ႈဢွၼ်ႇ:Biology| ]][[Category:Pages passing page name to BookCat]]

Wikijunior:Dinosaurs/Apatosaurus

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ဝီႇၶီႇလုၵ်ႈဢွၼ်ႇ:Dinosaurs|Apatosaurus ]][[Category:Pages passing page name to BookCat]]

Wikijunior talk:Bugs/Shield Bug

[[Category:Pages passing page name to BookCat]]

Category:Horticulture/Templates/Boxes

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ပိူင်ထၢၼ်ႈ:Horticulture|Templates/Boxes ]][[Category:Pages passing page name to BookCat]]

Category:Book:Wikijunior:Solar System/Templates

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ပိူင်ထၢၼ်ႈ:Book:Wikijunior:Solar System|Templates ]][[Category:Pages passing page name to BookCat]]

Template:Wikijunior:Solar System/coolfacts

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ထႅမ်းပလဵတ်ႉ:Wikijunior:Solar System|coolfacts ]][[Category:Pages passing page name to BookCat]]

User:Pi zero/Conlang/Beginner/Sounds

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ၽူႈၸႂ်ႉတိုဝ်း:Pi zero|Conlang/Beginner/Sounds ]][[Category:Pages passing page name to BookCat]]

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

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ၽူႈၸႂ်ႉတိုဝ်း:Pi zero|sandbox/Conlang/Beginner/Sounds ]][[Category:Pages passing page name to BookCat]]

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

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ပိူင်ထၢၼ်ႈ:User:Pi zero|sandbox/Conlang/Beginner/Sounds ]][[Category:Pages passing page name to BookCat]]

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

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ထႅမ်းပလဵတ်ႉ:User:Pi zero|sandbox/Conlang/Beginner/Sounds ]][[Category:Pages passing page name to BookCat]]

Shelf:Physical sciences

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:Shelf:Physical sciences| ]][[Category:Pages passing page name to BookCat]]

Template:Shelf:Page

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ထႅမ်းပလဵတ်ႉ:Shelf:Page| ]][[Category:Pages passing page name to BookCat]]

Template:Shelf:Page/display

[[ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ထႅမ်းပလဵတ်ႉ:Shelf:Page|display ]][[Category:Pages passing page name to BookCat]]

This template itself only contains the logic to sort out the identity of the target page; deducing the appropriate categorization is then delegated to {{BookCat/core}}. As of this writing, parameters assembled here are namespace, pagename, fullpagename, and sortkey; the first unnamed parameter is removed, and all other parameters are passed through to the subtemplate.

တူၺ်းပႃး

မႄးထတ်း