Template:Doc

To use, create a sub-page from the template called doc, put at the start of your documentation, and  at the end.

Go back to your main template page and put &lt;noinclude&gt;&lt;/noinclude&gt; on a newline after the end of the template. /doc pages will automatically be added to Category:Template documentation.

clear
If your main template page has floating content and you would like to stop it going over the documentation, put instead of  on your documentation page. This is also useful for templates not using &lt;includeonly&gt;, as it will put some space between the template and the documentation box.