Template:Documentation: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{/doc}}</includeonly><noinclude> {{Documentation}} </noinclude>") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{/doc}}</includeonly><noinclude> | <includeonly>{{/doc}}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
== Template Documentation == | |||
This template is used to add documentation to other templates. It allows you to keep the template code and its documentation separate, making the template code cleaner and easier to maintain. | |||
=== Usage === | |||
To use this documentation template, place <code><nowiki>{{Documentation}}</nowiki></code> at the end of the template code. Then, create a subpage named "/doc" for the template where you can include detailed documentation. | |||
=== Example === | |||
If you have a template named <code>Template:Example</code>, you should: | |||
1. Add <code><nowiki>{{Documentation}}</nowiki></code> at the end of <code>Template:Example</code>. | |||
2. Create a page named <code>Template:Example/doc</code> and add your documentation there. | |||
=== See Also === | |||
* [[Help:Template documentation]] | |||
</noinclude> | </noinclude> |
Latest revision as of 22:15, 22 July 2024
This template is used to add documentation to other templates.
It includes the subpage "/doc" of the template where detailed documentation should be placed.
Template Documentation
This template is used to add documentation to other templates. It allows you to keep the template code and its documentation separate, making the template code cleaner and easier to maintain.
Usage
To use this documentation template, place {{Documentation}}
at the end of the template code. Then, create a subpage named "/doc" for the template where you can include detailed documentation.
Example
If you have a template named Template:Example
, you should:
1. Add {{Documentation}}
at the end of Template:Example
.
2. Create a page named Template:Example/doc
and add your documentation there.
See Also