• Home
  • Random
  • Log in
  • Settings
  • Donations
  • About Wikibooks
  • Disclaimers
Wikibooks

Template:Subjects/leaf

  • Language
  • Watch
  • Edit
< Template:Subjects
Template documentation[view] [edit] [history] [purge]
WarningThis 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

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.

The above documentation is transcluded from Template:Subjects/leaf/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikibooks.org/w/index.php?title=Template:Subjects/leaf&oldid=3364230"
Last edited on 19 January 2018, at 23:09

Languages

    • العربية
    • বাংলা
    • हिन्दी
    • ਪੰਜਾਬੀ
    • ၽႃႇသႃႇတႆး
    • ไทย
    • 中文
    Wikibooks
    • This page was last edited on 19 January 2018, at 23:09.
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikibooks
    • Disclaimers
    • Code of Conduct
    • Terms of Use
    • Desktop
    • Developers
    • Statistics
    • Cookie statement