Template:Magic word templates/book page examples/doc

Usage
Transclude this on the documentation page of a magic word template relating a page to its associated book, 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:BOOKNAME/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.