Jump to content

ထႅမ်းပလဵတ်ႉ:Shelves/doc

လုၵ်ႉတီႈ ဝီႇၶီႇပပ်ႉ မႃး

This template categorizes a book on one or more shelves in the ၶဵင်ႇႁၢၼ်ႉ:, plus the book category.

Use this template only on the book's main page. Specify the names of the shelves as unnamed parameters, such as {{shelves|mathematics|science|etc}}.

For non-shelf categories, such as descendants of Category:Books by type, use template {{Categories}}.

On subpages of a book, use {{BookCat}}.

This template is responsible for adding books to the hidden allbooks categories, which allow automatic generation of lists of books belonging either to a given shelf or to any of its sub-shelves. When this template detects that it is being used on the main page of a book, for each shelf specified it calls {{shelves/leaf}}, via မေႃႇၵျူး:TScope#map. This is why this template should only be used for shelf categories: {{shelves/leaf}} uses shelf pages to figure out which allbooks categories to add the book to, and if there are no shelf pages to consult, it reports the problem to ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ၶဵင်ႇႁၢၼ်ႉ:/တိုၵ်ႉလူဝ်ႇဝႆႉ လွင်ႈသူၼ်ၸႂ်. By using {{categories}} for non-subject categories, one avoids nuisance reports to ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ၶဵင်ႇႁၢၼ်ႉ:/တိုၵ်ႉလူဝ်ႇဝႆႉ လွင်ႈသူၼ်ၸႂ်.

The book is also added to hidden ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ၶဵင်ႇႁၢၼ်ႉ:/Books; and, if no shelves are specified, to ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ၶဵင်ႇႁၢၼ်ႉ:/Books/Unshelved.

If the template detects that it was called on a page that isn't the main page of a book, it does nothing.

This template can be induced to display diagnostic messages, explaining why it has put the page in ပိူင်ထၢၼ်ႈ:ပပ်ႉ:ၶဵင်ႇႁၢၼ်ႉ:/တိုၵ်ႉလူဝ်ႇဝႆႉ လွင်ႈသူၼ်ၸႂ်, by specifying parameter diagnose=true.

တူၺ်းပႃး

[မႄးထတ်း]
  • {{Categories}} — adds book to non-subject categories
  • {{Alphabetical}} — adds book to alphabetical classification
  • {{Status}} — classifies book by completion status
  • {{BOOKNAME}} — Returns the name of the book including the namespace