Template:Documentation/doc

From MegaDrumWiki
Jump to: navigation, search

In order to make documentation for a template, add a "/doc" subpage for the template. For example, you are currently reading the documentation for the "Documentation" template. Then add this to the end of your template:

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

The <noinclude> tags are used so that the documentation doesn't show up at the page where you are using your template. If you write the documentation in another language, use the "title" parameter to set the documentation header (which is "Documentation" by default). An example:

<noinclude>{{documentation|title=Документация}}</noinclude>

Also, it is sometimes necessary to add the tag directly after the template text (i.e. not on a new line).