Template:Subjects/leaf/doc
Appearance
This is a documentation subpage for Template:Subjects/leaf It contains usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 5,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template adds the current page (presumed to be the main page of a book) to a specified subject category, and tries to add it to the allbooks categories of that subject and all that subject's ancestors.
Usage
[edit source]There are two parameters, one required and non-blank, the other optional.
1
— Required. Names the subject to add the book to.diagnose
— Optional. If blank, error conditions result only in addition of the book to hidden Category:Attention needed (allbooks). If non-blank, diagnostic messages are also generated, with suggested remedies and buttons for effecting them.
Only addition to the named subject, Category:{{{1}}}
, is done within this template; population of allbooks categories is delegated to {{Subjects/0}}.
This template is also responsible for populating Category:Books with book name as subject.