Template:Documentation/doc
From Hercules Wiki
Revision as of 02:44, 13 January 2013 by Mysterious (Talk | contribs)
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 }}