Difference between revisions of "Template:Documentation/doc"
From MegaDrumWiki
m |
|||
Line 4: | Line 4: | ||
<pre><noinclude>{{documentation|title=Документация}}</noinclude></pre> | <pre><noinclude>{{documentation|title=Документация}}</noinclude></pre> | ||
− | Also, it is sometimes necessary to add the | + | Also, it is sometimes necessary to add the <noinclude> tag directly after the template text (i.e. not on a new line). |
Latest revision as of 20:58, 27 June 2010
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 <noinclude> tag directly after the template text (i.e. not on a new line).