Jump to content

Template:Documentation: Difference between revisions

From SeptemWiki
No edit summary
No edit summary
Line 9: Line 9:


{|id="mp-help" style="width: 100%; margin:10px 0; background:none; border-spacing: 0px;"
{|id="mp-help" style="width: 100%; margin:10px 0; background:none; border-spacing: 0px;"
|style="width:50%; border:1px solid #f2cee0; background:#ffe5e5; vertical-align:top; color:#000;" |
|style="width:50%;vertical-align:top;" |
{| id="mp-left" style="width:100%; vertical-align:top; background:#ffe5e5;"
{| id="mp-left" style="width:100%; vertical-align:top;"
| <div class="template-documentation" style="background:#ecf4fc;margin-top:2ex;">
| <div class="template-documentation" style="background:#ecf4fc;margin-top:2ex;">
<div style="border-bottom: 1px solid #aaa;margin-bottom:2ex;padding:3px;text-align: left;font-weight: bold;font-size: 110%;">Pages that use this Template</div>
<div style="border-bottom: 1px solid #aaa;margin-bottom:2ex;padding:3px;text-align: left;font-weight: bold;font-size: 110%;">Pages that use this Template</div>

Revision as of 03:59, 28 March 2016

Template:Documentation[view] [edit] [history]


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 ...
Pages that use this Template
Templates that use this Template
Pages that use this Template
Templates that use this Template