Template:Documentation
This template uses Lua. Its code can be found under Module:Documentation. |
This template transcludes documentation from any template's /doc subpage onto its actual template page. This provides editors with easy visibility of template documentation while maintaining separation between template functionality vs documentation and examples. No parameters are required.
Typically, this template should be called above or below the template's actual functional wikitext, surrounded by noinclude
tags to prevent the documentation from appearing on articles which use the template:
<noinclude> {{Documentation}} <!-- Add categories for this template on the documentation page, not here. --> </noinclude>
If the template has no /doc subpage, a link is provided to create one. The default content for such new documentation pages can be viewed or edited at Template:Documentation/preload.
It also links to sandbox and testcase pages. These are rarely used on this wiki and their preload content (sandbox, testcases) is currently blank.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories and interwikis to the /doc subpage. Subpages of this template.