Template:Documentation/doc


 * Description
 * This template is used to insert descriptions on template pages.


 * Syntax
 * Type  at the top of the template page.

On the Template page
Template code Categories applied to pages using the template

The line break before  is included here for formatting purposes, and should not appear in actual templates. Depending on the template, it may be beneficial to move the  to immediately after , hiding the template from view.

On the Template/doc page

 * Description
 * This template is used to do something.


 * Syntax
 * Type  somewhere.


 * Sample output
 * gives...

Any categories for the template itself

Use any or all of the above description/syntax/sample output sections. You may also want to add "see also" or further usage information sections.

Note that the above example also uses the Template:T and Template:T/piece templates.