Template:Documentation: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
{{#ifexist: {{FULLPAGENAME}}/doc|{{{{FULLPAGENAME}}/doc}}|This template has no documentation. Someone should fix that.}} | {{#ifexist: {{FULLPAGENAME}}/doc|{{{{FULLPAGENAME}}/doc}}|This template has no documentation. Someone should fix that.}} | ||
<br style="clear: both;"> | |||
</div> | </div> | ||
Revision as of 12:13, 28 March 2016
![]() |
This is a metatemplate; that is, a template that will rarely be used directly in articles, but rather used in other templates which will be used directly. |
This template is used to display the documentation for templates, including itself.
To write documentation for the template Template:Foobar
, edit the document Template:Foobar/doc
.
Then to use this template, include
<noinclude>{{Documentation}}</noinclude>
at the bottom of the template itself.
So Template:Foobar
looks like:
(... all the actual template code ...) <noinclude>{{Documentation}}</noinclude>
And Template:Foobar/doc
looks like:
Here's some helpful instructions on using the Foobar template ...