Difference between revisions of "Template:Documentation"
m (fix create link) |
|||
| (10 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em;"> | + | <div id="template-documentation" style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em; font-family: sans-serif"> |
| − | <div style=" | + | <div style="padding-bottom:3px; border-bottom:1px solid #aaa; margin-bottom:1ex"> |
| + | <span style="font-weight:bold; font-size:125%">Template documentation</span> | ||
| + | <span id="doc-editlinks" class="plainlinks">{{#ifexist:{{FULLPAGENAME}}/doc|[[[{{FULLPAGENAME}}/doc|view]]] [[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit]] [[{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history]] [[{{fullurl:{{FULLPAGENAME}}|action=purge}} purge]]|{{#if:{{{1|}}}||[[[{{FULLPAGENAME}}/doc|create]]]}}}}</span> | ||
| + | </div> | ||
| + | {{#ifexist:{{FULLPAGENAME}}/doc|{{{{FULLPAGENAME}}/doc}}|{{{1|}}}}} | ||
</div> | </div> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 00:53, 4 March 2025
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>