Jump to content

සැකිල්ල:Subjects/උපදෙස්

Wikibooks වෙතින්

This template categorizes a book in up to 10 subject categories, plus the book category (this is automatic). The book category can be modified by setting the bookcategory variable. You can also use this on subpages of a book and it will only add the book category; however, {{BookCat}} is recommended for subpages.

For non-subject categories (typically, descendants of Category:Books by type), use template {{categories}} instead of this template.

භාවිතය

[සංස්කරණය]

{{subjects|mathematics|science|etc}}

අභ්‍යන්තර ක්‍රියාකාරීත්වය

[සංස්කරණය]

This template is responsible for adding books to the hidden allbooks categories, which allow automatic generation of lists of books belonging to a given subject or any of its sub-subjects. When this template detects that it is being used on the main page of a book, for each subject specified it calls {{subjects/leaf}}. This is why this template should only be used for subject categories: {{subjects/leaf}} uses subject pages to figure out which allbooks categories to add the book to, and if there are no subject pages to consult, it reports the problem to Category:Attention needed (allbooks). By using {{categories}} for non-subject categories, one avoids nuisance reports to Category:Attention needed (allbooks).

This template can be induced to display diagnostic messages, explaining why it has put the page in Category:Attention needed (allbooks), 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
"https://si.wikibooks.org/w/index.php?title=සැකිල්ල:Subjects/උපදෙස්&oldid=20919" වෙතින් සම්ප්‍රවේශනය කෙරිණි