Jump to content

Template:Documentation: Difference between revisions

From SeptemWiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{|style="width:100%; background:#ecfcf4; padding: 5px; border: 1px solid #aaa;"
<includeonly>
|-
<div id="template-documentation" style="width:100%; background:#ecfcf4; padding: 5px; border: 1px solid #aaa;">
|style="border-bottom: 1px solid #aaa;margin-bottom:2ex;padding:5px;text-align: left;font-weight: bold;font-size: 125%;"|[[File:Template info.png|40px]] '''{{FULLPAGENAMEE}}'''
<div style="border-bottom: 1px solid #aaa;margin-bottom:2ex;padding:5px;text-align: left;font-weight: bold;font-size: 125%;">[[File:Template info.png|40px]] '''{{FULLPAGENAMEE}}'''</div>
|-
 
|{{#ifexist: {{FULLPAGENAMEE}}/doc|{{{{FULLPAGENAMEE}}/doc}}|This template has no documentation.  Someone should fix that.}}
{{#ifexist: {{FULLPAGENAMEE}}/doc|{{{{FULLPAGENAMEE}}/doc}}|This template has no documentation.  Someone should fix that.}}
|-
 
|style="padding:5px; background:#b3b3ff; text-align: center; font-weight: bold; font-size: 110%;"|Pages that use this Template
<div style="border-bottom: 1px solid #aaa;margin-bottom:2ex;padding:5px;text-align: left;font-weight: bold;font-size: 110%;">Pages that use this Template</div>
|-
{{Special:WhatLinksHere/{{FULLPAGENAMEE}}}}
|{{Special:WhatLinksHere/{{FULLPAGENAMEE}}}}
 
|-
<span class="plainlinks">[http://www.septempontia.org/mw/index.php?title={{FULLPAGENAMEE}}/doc&action=edit [Edit this documentation]]</span>
|align="center"|<span class="plainlinks">[http://www.septempontia.org/mw/index.php?title={{FULLPAGENAMEE}}/doc&action=edit [Edit this documentation]]</span>
</div></includeonly><noinclude>{{Documentation}}</noinclude>
|}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 02:00, 28 March 2016

Template:Documentation


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

[Edit this documentation]