Jump to content

Template:Documentation/doc: Difference between revisions

From SeptemWiki
Created page with "To use this template, include <nowiki>{{Documentation}}</nowiki> at the bottom of the template or module page."
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
To use this template, include
{{Metatemplate}}
<nowiki>{{Documentation}}</nowiki>
 
at the bottom of the template or module page.
This template is used to display the documentation for templates, including itself.
 
To write documentation for the template {{c|Template:Foobar}}, edit the document {{c|Template:Foobar/doc}}.
 
Then to use this template, include
 
<nowiki><noinclude>{{Documentation}}</noinclude></nowiki>
 
at the bottom of the template itself.
 
So {{c|Template:Foobar}} looks like:
 
(... all the actual template code ...)
  <nowiki><noinclude>{{Documentation}}</noinclude></nowiki>
 
And {{c|Template:Foobar/doc}} looks like:
 
Here's some helpful instructions on using the Foobar template ...

Latest revision as of 19:43, 9 April 2016


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