Difference between revisions of "Template:Documentation/doc"

From Hercules Wiki
Jump to: navigation, search
(Created page with "This template is used for separating template documentation from actual templates, enabling to lock critical templates, while allowing to modify their documentation, categorie...")
 

Latest revision as of 02:44, 13 January 2013

This template is used for separating template documentation from actual templates, enabling to lock critical templates, while allowing to modify their documentation, categories etc. The documentation is usually read from /doc sub-page, but this can be overridden.

Usage

To use, add the following into the <noinclude> part of a template:

{{documentation}}

If the template is named Template:Test, then the documentation is included from Template:Test/doc. This is the full version of the template, which allows to specify the page name, and the name space it resides in or enter documentation content in-place.

{{documentation
|namespace=NameSpace:
|page=PageName
|content=DocumentationInPlace
}}