Jump to content

Template:Documentation: Difference between revisions

From SeptemWiki
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:


<div style="border-bottom: 1px solid #aaa;margin-bottom:2ex;padding:3px;text-align: left;">[[File:Template info.png|text-bottom|x18px]]<span style="font-weight: bold;font-size: 125%;">
<div style="border-bottom: 1px solid #aaa;margin-bottom:2ex;padding:3px;text-align: left;">[[File:Template info.png|text-bottom|x18px]]<span style="font-weight: bold;font-size: 125%;">
'''{{FULLPAGENAME}}'''</span><span id="doc_editlinks" class="mw-editsection-like plainlinks">[[{{FULLPAGENAMEE}}/doc|[view]]] [http://www.septempontia.org/mw/index.php?title={{FULLPAGENAMEE}}/doc&action=edit [edit]] [http://www.septempontia.org/mw/index.php?title={{FULLPAGENAMEE}}/doc&action=history [history]]</span></div>
'''Documentation for ''{{FULLPAGENAME}}'''''</span><span id="doc_editlinks" class="mw-editsection-like plainlinks">[[{{FULLPAGENAMEE}}/doc|[view]]] [http://www.septempontia.org/mw/index.php?title={{FULLPAGENAMEE}}/doc&action=edit [edit]] [http://www.septempontia.org/mw/index.php?title={{FULLPAGENAMEE}}/doc&action=history [history]]</span></div>


{{#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>


{|style="width: 100%; margin:0; background:none; border-spacing: 0px;"
{|style="width: 100%; margin:0; margin-top: 2ex; background:none; border-spacing: 0px;"
|style="width:50%;vertical-align:top;" |
|class="template-documentation" style="width:50%;vertical-align:top;background:#ecf4fc;" |
<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>
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0}}
</div>
| style="border:7px solid transparent;" |
| style="border:7px solid transparent;" |
|style="width:100%; vertical-align:top;" |
|class="template-documentation" style="width:50%;vertical-align:top;background:#fceded;" |
<div style="width:90%; background:#fcf4f4; padding:1em; border: 1px solid #aaa;;margin-top:2ex;">
<div style="border-bottom: 1px solid #aaa;margin-bottom:2ex;padding:3px;text-align: left;font-weight: bold;font-size: 110%;">Templates 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%;">Templates that use this Template</div>
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}}
</div>
|}
|}
 
</includeonly><noinclude>{{Documentation}}</noinclude>
<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>
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0}}
</div>
 
<div style="width:90%; background:#fcf4f4; padding:1em; border: 1px solid #aaa;;margin-top:2ex;">
<div style="border-bottom: 1px solid #aaa;margin-bottom:2ex;padding:3px;text-align: left;font-weight: bold;font-size: 110%;">Templates that use this Template</div>
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}}
</div></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 11:42, 9 April 2016

Documentation for 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