FANDOM


Info1 Template information here
This is a documentation subpage for Template:Documentation. It contains usage information, categories and other content that is not part of the original template page.

Functions

This template creates a uniform style for template documentation. The actual documentation is transcluded from the /doc subpage of the template. It also includes direct editing-links for the template documentation page.

Usage

First of all a documentation subpage has to be created at the /doc subpage. This page contains usage information, categories and other content that is not part of the original template. The location of this subpage is Template:Templatename/doc. Also include the Documentation/docpage messagebox template at the top of this documentation page with the following code:

code
<noinclude>{{Documentation/docpage}}</noinclude>

Mind the noinclude tags, otherwise this messagebox will also be transcluded.

To transclude the documentation subpage with this template simply add the following code:

code
<noinclude>{{documentation}}</noinclude>

Once again, mind the noinclude tags.

The template page code should look like this:

code
<includeonly><!-- The actual template  --></includeonly>
<noinclude>{{documentation}}
<!-- template categories -->
</noinclude>
Community content is available under CC-BY-SA unless otherwise noted.