Difference between revisions of "Template:Documentation"
Line 5: | Line 5: | ||
<span style="font-size:188%">Documentation for ''{{{1|{{PAGENAME}}}}}''</span> | <span style="font-size:188%">Documentation for ''{{{1|{{PAGENAME}}}}}''</span> | ||
---- | ---- | ||
− | {{ #ifexist: {{{1|{{NAMESPACE}}:{{PAGENAME}}/doc}}} | <!-- /doc exists -->::[[Image:Template_info.png| | + | {{ #ifexist: {{{1|{{NAMESPACE}}:{{PAGENAME}}/doc}}} | <!-- /doc exists -->::[[Image:Template_info.png|40px|link={{NAMESPACE}}:{{PAGENAME}}/doc]] ''This [[:Category:Template documentation|documentation]] is transcluded from [[{{{1|{{NAMESPACE}}:{{PAGENAME}}/doc}}}]]''. |<!-- no /doc --> }} |
{{ #ifexist: {{{content|{{NAMESPACE}}:{{PAGENAME}}/doc}}} | {{{{{content|{{NAMESPACE}}:{{PAGENAME}}/doc}}}}} | }} | {{ #ifexist: {{{content|{{NAMESPACE}}:{{PAGENAME}}/doc}}} | {{{{{content|{{NAMESPACE}}:{{PAGENAME}}/doc}}}}} | }} | ||
</div> | </div> |
Revision as of 01:43, 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>