Template:Doc

 Documentation []

Use this template within a template page to transclude its documentation. If the template shares the same documentation as another template, pass the other template's name as parameter 1. If the template documentation seems outdated or insufficient, pass the baddoc parameter to the doc template.
 * Shamelessly stolen from the Terraria Mods Wiki. Kudos to them.

Examples of Usage
The doc transclusion should be placed at the end of the template code:

Sub-templates

 * doc/preload - Preload text shown in the edit box when the "create" link is clicked on templates with no existing /doc sub-page.

Categories

 * Category:Template documentation
 * Category:Templates with no documentation