Jump to content

Template:Documentation: Difference between revisions

From SeptemWiki
No edit summary
mNo edit summary
Line 1: Line 1:
<nowiki><includeonly>
<includeonly>{|class="wikitable" style="background-color:#ddddff;"
{|class="wikitable" style="background-color:#ddddff;"
|-
|-
|{{{{FULLPAGENAME}}/doc}}
|{{{{FULLPAGENAME}}/doc}}
|-
|-
|align="center"|<span class="plainlinks">[http://www.septempontia.org/mw/index.php?title={{FULLPAGENAME}}/doc&action=edit [Edit this documentation]]</span>
|align="center"|<span class="plainlinks">[http://www.septempontia.org/mw/index.php?title={{FULLPAGENAME}}/doc&action=edit [Edit this documentation]]</span>
|}
|}</includeonly><noinclude>{{Documentation}}</noinclude>
</includeonly></nowiki>
 
<noinclude>{{Documentation}}</noinclude>

Revision as of 18:06, 18 March 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 ...
[Edit this documentation]