Template:Documentation/doc

From MegaDrumWiki
< Template:Documentation
Revision as of 13:57, 27 June 2010 by Firelord (Talk | contribs) (Created page with 'In order to make documentation for a template (or anything else for that matter), add a "/doc" subpage for the template. For example, you are currently reading the documentation …')

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

In order to make documentation for a template (or anything else for that matter), 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).