Template:Magic word templates/shelf page examples/doc

Usage
Transclude this on the documentation page of a magic word template relating a page to its intrinsically associated shelf, to produce a table of examples of the template's behavior on various page names. The template is expected to accept an unnamed parameter overriding the current page name. See for example Template:SHELFNAME/doc.

This template itself accepts an unnamed parameter specifying the name of the template to be demonstrated; otherwise it uses OBJECTPAGENAME. For example,

would produce

Internals
The examples are in subtemplate /core; this template only chooses the target for demonstration and delegates there.

c