Template:Documentation subpage/doc

Documentation
This template should be placed at the top of "/doc" pages. It displays a box explaining template documentation and links to the template page.

It handles everything if placed on a /doc page under the documented page. If placed on a subpage with a different name, the subpage name to display on should be specified with display on. To change the view-template link, use the first unnamed parameter.