Template:Template doc page transcluded/doc

Usage
Assuming you have your template at "Template:name", and you want to make a separate template documentation subpage that you will transclude in your template:


 * You create "Template:name/doc" with your documentation (the standardized subpage /doc is required because all doc-related templates use it as default), and you place at its top:




 * If you need to also transclude your "Template:name/doc" into other pages than "Template:name", you will need to provide the original base page name so that "edit" links can find their way back to it:



Test cases
If subpages named /sandbox and /testcases exist, this template generates links to them. See Template test cases for more detail.

CSS
Since there is some duplication with links provided by template doc, and not all users need the explanation provided, this template has id="template_doc_page_transcluded", so that with CSS one can specify not to display it.