This template categorizes a book in up to 10 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.

{{Subjects|math|science|etc}}
{{Subjects|bookcategory=book (book)|math|science|etc}}