Difference between revisions of "Template:Documentation"
m  | 
				m  | 
				||
| Line 1: | Line 1: | ||
<includeonly>  | <includeonly>  | ||
| − | <div style="border:1px solid #aaa;background:#F2F2FC;width=100%;padding:0.5em  | + | <div style="border:1px solid #aaa;background:#F2F2FC;width=100%;padding:0.5em; margin-bottom: 5px;">  | 
<div style="float: right;">[[[{{{1|{{NAMESPACE}}:{{PAGENAME}}/doc}}}|view]]] [[{{SERVER}}{{localurl:{{{1|{{NAMESPACE}}:{{PAGENAME}}}}}/doc|action=edit}} edit]]  | <div style="float: right;">[[[{{{1|{{NAMESPACE}}:{{PAGENAME}}/doc}}}|view]]] [[{{SERVER}}{{localurl:{{{1|{{NAMESPACE}}:{{PAGENAME}}}}}/doc|action=edit}} edit]]  | ||
</div>  | </div>  | ||
Revision as of 01:46, 29 June 2010
This template is used to show documentation that explains other templates.
Usage
Add this template to the end of other templates while wrapped in <noinclude> tags to show the documentation. It will show the /doc subpage of the template in a green box.
<!--Last line of your template code--><noinclude>
{{Documentation}}
<!-- Add categories to the /doc subpage, not here -->
</noinclude>
Alternatively, you can use a parameter for documentation instead of creating a /doc page:
<!--Last line of your template code--><noinclude>
{{Documentation|
<!--Documentation goes here-->
}}
</noinclude>