Template:Shelf:Check page/doc

This template checks the status of an expected shelf page.

Usage
Place this template on a page that expects the shelf to exist. This template expects one parameter, as of this writing: Alternatively, if  is omitted, the information may instead be provided as an unnamed parameter.
 * &mdash; required &mdash; the name of the shelf, without the  prefix.

Internals
Checks that the associated shelf exists and appears to be properly set up, per Shelf:Page?. If not, adds the current page to /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  query with a non-empty list.