Template:Documentation

From MegaDrumWiki
Revision as of 14:53, 27 June 2010 by Firelord (Talk | contribs) (Created page with '<div style="background: #ECFCF4; padding: 0.5em;"> =={{{title|Documentation}}}== {{{{PAGENAME}}/doc}} </div>')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Documentation

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).