This template allows you to document templates by including it in the template inside a set of <noinclude> tags. It transcludes TEMPLATENAME/doc (where TEMPLATENAME is the name of the template) into itself. For example, this blue box is displayed by using this template. The actual contents of this page are located at Template:Documentation/doc.
To include this template (and therefore, a given template's documentation) in the template to be documented, all you have to do is insert these lines of code at the bottom of the template: