Difference between revisions of "Template:Doc-begin"
Jump to navigation
Jump to search
(template is created) |
(the design is made similar to the one of {{[[Template:Doc|doc}}, the documentation is on a subpage) |
||
Line 1: | Line 1: | ||
− | <includeonly><div |
+ | <includeonly><div style="padding:5px; background: #ECFCF4; border: 1px solid #8BCBFF; clear: both;"></includeonly><noinclude>{{doc}}</noinclude> |
− | [[Category:Templates]] |
||
− | </noinclude> |
Latest revision as of 11:46, 8 November 2020
The templates {{doc-begin}} and {{doc-end}} are used to write the documentation for some template in the code of that template itself. However, it is better to place the documentation for some template on its doc
subpage and include it with the template {{doc}}.
Usage
Write at the end of the template to be documented:
<noinclude>{{doc-begin}}The documentation you want to write.{{doc-end}}
[[Category:Category name]]</noinclude>
Do not edit this template if you do not understand its code!