Template:Shelf:Check page
This template checks the status of an expected shelf page.
Usage
[edit source]Place this template on a page that expects the shelf to exist. This template expects one parameter, as of this writing:
shelf
— required — the name of the shelf, without theShelf:
prefix.
Alternatively, if shelf
is omitted, the information may instead be provided as an unnamed parameter.
Internals
[edit source]Checks that the associated shelf exists and appears to be properly set up, per {{Shelf:Page?}}. If not, adds the current page to Category:Book:Wikibooks Stacks/Attention needed, generates a text message, and provides a button to create/repair the shelf page via ordinary editing of a wikipage. A contemplated upgrade would detect availability of dialog and replace the editing button with one for a dialog-based assistant.
Another contemplated upgrade is to check that the shelf page responds to a parents
query with a non-empty list.
See also
[edit source]- {{Shelf:Editintro format}}
- {{Shelf:Editintro}}
- {{Shelf:Preload}}