{{ Info1 }} Template documentation: Documentation [edit] [purge]

This documentation is transcluded from Template:Documentation/doc.


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.


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:


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

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


Once again, mind the noinclude tags.

The template page code should look like this:

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