This template is in need of a clean-up. You can help out Templates Wiki by re-organizing parts of the article, checking grammar and spelling, and doing other helpful things to correct the article.
  • Reason: This template is way too complicated without comments to show where ifs and switches start and end.
This template is used to insert descriptions on template pages.
Type {{documentation}} at the end of the template page.

On the Template page

Template code<includeonly>
Any categories to be inserted into articles by the template</includeonly><noinclude>

Note that, depending on the template, you may need to add a clear or complete a table/div just before <includeonly>… is inserted. The line break is also useful as it helps prevent the documentation template "running into" previous code.

On the Template/doc page

{{documentation subpage}}
:This template is used to do something.
:Type <code>{{t|templatename|parameter}}</code> somewhere.

{| class="wikitable"
|+ Examples

<includeonly>Any categories for the template itself</includeonly>
Community content is available under CC-BY-SA unless otherwise noted.